/* Custom Alert Modal */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-alert {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.custom-alert h3 {
  margin-top: 0;
  color: #f97316;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.custom-alert p {
  margin-bottom: 24px;
  color: #4b5563;
  line-height: 1.5;
}

.custom-alert-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.save-button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.discard-button {
  background-color: #f3f4f6;
  color: #4b5563;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.cancel-button {
  background-color: white;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}.unsaved-indicator {
  color: #f97316; /* Orange */
  font-size: 0.8em;
  animation: pulse 2s infinite;
  display: inline-block;
  margin-left: 8px;
  font-weight: bold;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Unsaved changes warning dialog (for browsers that show custom dialog text) */
dialog.unsaved-warning {
  border-radius: 12px;
  border: 1px solid #f97316;
  padding: 24px;
  max-width: 400px;
  text-align: center;
}

dialog.unsaved-warning h3 {
  color: #f97316;
  margin-top: 0;
}

dialog.unsaved-warning .warning-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

dialog.unsaved-warning button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

dialog.unsaved-warning .stay-button {
  background-color: #4f46e5;
  color: white;
}

dialog.unsaved-warning .leave-button {
  background-color: #f3f4f6;
  color: #4b5563;
}/* Dashboard-specific styles */
.dashboard-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.hero-section::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  right: 20%;
  bottom: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: #4f46e5;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Stats Cards Section */
.stats-section {
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.stat-card {
  background-color: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-title {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-radius: 12px;
  font-size: 1.2rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
}

.stat-description {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 8px;
}

.positive {
  color: #10b981;
}

.negative {
  color: #ef4444;
}

/* Analyzer Card */
.analyzer-card {
  background-color: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.analyzer-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  text-align: left;
  padding-bottom: 0;
}

.analyzer-card h2::after {
  display: none;
}

.upload-area {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  padding: 30px;
  border-radius: 12px;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  margin-bottom: 24px;
  transition: all 0.3s ease;
  text-align: center;
}

.upload-area:hover {
  border-color: #6366f1;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
}

.upload-icon {
  font-size: 3rem;
  color: #6366f1;
  margin-bottom: 16px;
}

.upload-instructions {
  margin-bottom: 24px;
  color: #4b5563;
}

.upload-instructions h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #1f2937;
}

.upload-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.upload-controls input[type="file"] {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: white;
  flex-grow: 1;
  max-width: 300px;
}

.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.button-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.button-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Progress Container */
.progress-container {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Data Display Grid */
.data-grid {
    display: grid;
    grid-template-columns: 25% 75%; /* Changed from 50%/50% to 25%/75% */
    gap: 20px;
    margin-bottom: 30px;
}

.data-card {
  background-color: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.5);
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.data-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

/* Make sure chart is responsive in the smaller container */
.chart-wrapper {
    width: 100%;
    height: 300px; /* You can adjust this height as needed */
    position: relative;
}

.transactions-wrapper {
    width: 100%;
    overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.transactions-table th,
.transactions-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.transactions-table th {
  position: sticky;
  top: 0;
  background-color: white;
  font-weight: 600;
  color: #6b7280;
  padding: 12px 16px 12px 12px;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.transactions-table th:after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.3;
}

.transactions-table th.sort-asc:after {
  border-bottom: 4px solid #6366f1;
  border-top: none;
  opacity: 1;
}

.transactions-table th.sort-desc:after {
  border-top: 4px solid #6366f1;
  border-bottom: none;
  opacity: 1;
}

.transactions-table th:hover:after {
  opacity: 0.7;
}

.transactions-table tbody tr:hover {
  background-color: #f9fafb;
}

/* Pagination controls */
.pagination-controls {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.pagination-info {
  font-size: 0.85rem;
  color: #6b7280;
}

.pagination-buttons {
  display: flex;
  gap: 8px;
}

.page-button {
  background-color: #f3f4f6;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #4b5563;
  transition: all 0.2s;
}

.page-button:hover {
  background-color: #e5e7eb;
}

.page-button.active {
  background-color: #6366f1;
  color: white;
}

.page-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quick Actions Section */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .hero-section {
    padding: 30px;
  }

  .data-grid {
      grid-template-columns: 1fr;
  }
  .chart-wrapper {
      height: 250px; /* Slightly smaller on mobile */
  }
}

/* Add these new styles to the existing dashboard.css file */

/* Statement Format Selector Styles */
.statement-format-selector {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.statement-format-selector label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.format-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.format-select {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2937;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-select:hover {
    border-color: #6366f1;
}

.format-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Help Tooltip Styles */
.format-help-tooltip {
    position: relative;
    display: inline-block;
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.help-icon:hover {
    background: #e5e7eb;
    color: #4b5563;
}

.tooltip-content {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 280px;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    z-index: 10;
    display: none;
    border: 1px solid #e5e7eb;
}

.format-help-tooltip:hover .tooltip-content {
    display: block;
}

/* Error state for format select */
.format-select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.format-select.error + .format-error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .format-options {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .tooltip-content {
        width: 240px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* Format validation styles */
.format-select[required]:invalid {
    border-color: #ef4444;
}

.format-select option[value="default"] {
    color: #9ca3af;
}

.format-select option {
    color: #1f2937;
    padding: 8px;
}

/* Enhanced focus states for accessibility */
.format-select:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.help-icon:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    background: #e5e7eb;
}
.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.format-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-select {
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
    background-color: white;
    min-width: 200px;
}

.format-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.format-select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.format-help-tooltip {
    position: relative;
    display: inline-block;
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}

.tooltip-content {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 250px;
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.4;
    z-index: 10;
    display: none;
    border: 1px solid #e5e7eb;
}

.format-help-tooltip:hover .tooltip-content {
    display: block;
}

@media (max-width: 640px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .format-select {
        width: 100%;
    }
}
/* Category dropdown styling */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Action button styling */
.category-edit-btn {
    background-color: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-edit-btn:hover {
    background-color: #d1d5db;
    color: #111827;
}

/* Badge styling for categories */
.category-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Modal form styling - add to existing modal styles */
.custom-alert {
    max-width: 400px;
    width: 90%;
}

.custom-alert .form-group {
    text-align: left;
}

/* Add a separator between select and input */
.category-separator {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.category-separator:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.category-separator span {
    position: relative;
    background-color: white;
    padding: 0 10px;
    color: #6b7280;
    font-size: 0.8rem;
}
/* Add to your existing CSS */
.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.category-separator {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.category-separator:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.category-separator span {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background-color: white;
    color: #6b7280;
    font-size: 0.8rem;
}

/* Make the modal a bit larger to accommodate the new field */
.custom-alert {
    max-width: 450px;
}

/* Suggestion display for keywords */
.keyword-suggestion {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #4b5563;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s;
}

.keyword-suggestion:hover {
    background: #e5e7eb;
}

/* Category Modal Styles */
.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.category-separator {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.category-separator:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.category-separator span {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background-color: white;
    color: #6b7280;
    font-size: 0.8rem;
}

/* Make the modal a bit larger to accommodate the new field */
.custom-alert {
    max-width: 450px;
}

/* Suggestion display for keywords */
.keyword-suggestion {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #4b5563;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s;
}

.keyword-suggestion:hover {
    background: #e5e7eb;
}

/* Checkbox styling */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    margin-bottom: 5px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #e5e7eb;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #d1d5db;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Category Modal Styles */
.keyword-suggestions {
    margin-top: 8px;
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
}

.suggested-keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.keyword-suggestion {
    display: inline-block;
    padding: 4px 10px;
    background-color: #e0e7ff;
    border: 1px solid #a5b4fc;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #4f46e5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyword-suggestion:hover {
    background-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-separator {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-separator::before,
.category-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.category-separator::before {
    margin-right: 8px;
}

.category-separator::after {
    margin-left: 8px;
}

/* Form group styling */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-container input {
    margin-right: 8px;
}

/* Modal action buttons */
.custom-alert-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.save-button, .cancel-button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-button {
    background-color: #4f46e5;
    color: white;
}

.save-button:hover {
    background-color: #4338ca;
}

.cancel-button {
    background-color: #f3f4f6;
    color: #374151;
}

.cancel-button:hover {
    background-color: #e5e7eb;
}
/* Fixed Category Modal Styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.custom-alert {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.keyword-suggestions {
    margin-top: 8px;
    background-color: #f9fafb;
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
}

.suggested-keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.keyword-suggestion {
    display: inline-block;
    padding: 4px 10px;
    background-color: #e0e7ff;
    border: 1px solid #a5b4fc;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #4f46e5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyword-suggestion:hover {
    background-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-separator {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-separator::before,
.category-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.category-separator::before {
    margin-right: 8px;
}

.category-separator::after {
    margin-left: 8px;
}

/* Form styling */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-container input {
    margin-top: 3px;
    margin-right: 8px;
}

/* Button styling */
.custom-alert-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.save-button {
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-button:hover {
    background-color: #4f46e5;
}

.cancel-button {
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cancel-button:hover {
    background-color: #e5e7eb;
}
/* Checkbox styling */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 8px;
    min-width: 16px;
    min-height: 16px;
}

.checkbox-wrapper label {
    font-weight: normal;
    margin-bottom: 2px;
    cursor: pointer;
}

/* Make it match the reference image more closely */
#applyToAllCheckbox {
    accent-color: #6366f1;
}

/* Adjust button styling to better match the reference */
#applyCategoryBtn {
    background-color: #6366f1;
    padding: 8px 20px;
    font-weight: 500;
}

#cancelCategoryBtn {
    padding: 8px 20px;
    font-weight: 500;
}

/* Video Modal Styles */
.hero-cta-container {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-cta {
    margin: 0; /* Remove any default margin */
}

.tutorial-btn {
    background-color: rgba(255, 255, 255, 0.85);
    color: #4f46e5;
    border: none;
    cursor: pointer;
}

.video-modal {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.video-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
}

.video-container {
    padding: 0;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

/* For mobile responsiveness */
@media (max-width: 640px) {
    .hero-cta-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta, .tutorial-btn {
        width: 100%;
        text-align: center;
    }

    .video-modal {
        width: 95%;
    }
}