.devise-container {
    min-height: 100vh;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 1.5rem;
  }
  
  .devise-form-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 28rem;
  }
  
  .devise-brand {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .devise-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
  }
  
  .devise-form-container {
    background-color: white;
    padding: 2rem 1rem;
    box-shadow: none;
  }
  
  @media (min-width: 640px) {
    .devise-form-container {
      border-radius: 0.5rem;
      padding: 2rem 2.5rem;
    }
  }
  
  .devise-title {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .devise-title h2 {
    font-size: 1.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
  }
  
  .devise-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .devise-field {
    position: relative;
  }
  
  .devise-field label {
    position: absolute;
    left: -9999px;
  }
  
  .devise-input {
    appearance: none;
    border-radius: 1rem;
    position: relative;
    display: block;
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    color: #111827;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
  }
  
  .devise-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    z-index: 10;
  }
  
  .devise-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
  }
  
  .devise-input-with-toggle {
    padding-right: 4rem;
  }
  
  .devise-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-right: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
  }
  
  .devise-password-toggle:hover {
    color: #374151;
  }
  
  .devise-password-toggle:focus {
    outline: none;
  }
  
  .devise-password-toggle span {
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  
  .devise-forgot-password {
    text-align: center;
  }
  
  .devise-forgot-password a {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ef4444;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease-in-out;
  }
  
  .devise-forgot-password a:hover {
    color: #dc2626;
  }
  
  .devise-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 1rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
  }
  
  .devise-submit:disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
  }
  
  .devise-submit:not(:disabled) {
    background-color: #6366f1;
    color: white;
  }
  
  .devise-submit:not(:disabled):hover {
    background-color: #5b21b6;
  }
  
  .devise-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  }
  
  .devise-links {
    text-align: center;
  }
  
  .devise-links span {
    font-size: 1rem;
    color: #6b7280;
  }
  
  .devise-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #ef4444;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s ease-in-out;
  }
  
  .devise-links a:hover {
    color: #dc2626;
  }
  
  .devise-footer {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .devise-footer a {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
  }
  
  .devise-footer a:hover {
    color: #6b7280;
  }
  
  .devise-help-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #000;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease-in-out;
  }
  
  .devise-help-button:hover {
    background-color: #374151;
  }
  
  .devise-help-button span {
    font-size: 1.125rem;
    font-weight: 700;
  }
  
  .devise-errors {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .devise-errors p {
    font-size: 0.875rem;
    color: #dc2626;
    margin: 0;
  }
  
  .devise-errors p:not(:last-child) {
    margin-bottom: 0.5rem;
  }
  
  /* Responsive adjustments */
  @media (max-width: 640px) {
    .devise-container {
      padding: 1.5rem 1rem;
    }
    
    .devise-form-wrapper {
      max-width: none;
    }
  }
/* Existing Quiz Styles */
.quiz-container-width {
  width: 80%;
}

@media screen and (max-width: 576px) {
  .quiz-container-width {
    width: 100%;
  }
}

.quiz-option {
  @apply bg-white border-2 border-gray-200 rounded-xl p-4 cursor-pointer block transition-all duration-200 hover:border-red-500 hover:transform hover:-translate-y-0.5 hover:shadow-lg;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-option.selected {
  border-color: #ef4444;
  background-color: #fef2f2;
  transform: scale(1.02);
}

.radio-indicator, .checkbox-indicator {
  transition: all 0.2s ease;
}

.radio-indicator.selected {
  background-color: #ef4444;
  border-color: #ef4444;
}

.checkbox-indicator.selected {
  background-color: #ef4444;
  border-color: #ef4444;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse {
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.radio-indicator {
  @apply w-5 h-5 border-2 border-gray-300 rounded-full transition-all duration-200 flex items-center justify-center;
}

.checkbox-indicator {
  @apply w-5 h-5 border-2 border-gray-300 rounded transition-all duration-200 flex items-center justify-center;
}

.radio-indicator.selected,
.checkbox-indicator.selected {
  @apply border-red-500 bg-red-500;
}

.quiz-next-button {
  @apply bg-red-500 text-white border-none rounded-xl px-8 py-4 font-semibold transition-all duration-200 cursor-pointer hover:bg-red-600 hover:transform hover:-translate-y-0.5 hover:shadow-lg;
}

.quiz-next-button:hover:not(:disabled) {
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.quiz-next-button:disabled {
  @apply bg-gray-300 text-gray-500 cursor-not-allowed transform-none shadow-none hover:transform-none hover:shadow-none;
}

.quiz-back-button {
  @apply bg-transparent text-gray-600 border border-gray-300 rounded-xl px-6 py-3 font-medium transition-all duration-200 cursor-pointer hover:bg-gray-50 hover:border-gray-400;
}

.quiz-progress-bar {
  @apply bg-red-500 h-1 rounded-full transition-all duration-500;
}

.quiz-error {
  @apply bg-red-50 border border-red-200 text-red-700 rounded-lg px-4 py-3 text-center;
  animation: shake 0.5s ease-in-out;
}

.quiz-loading-overlay {
  @apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50;
  backdrop-filter: blur(4px);
}

/* Fact Screen Components */
.fact-screen {
  @apply bg-gradient-to-br from-yellow-100 to-yellow-200 rounded-2xl p-8 text-center;
}

.fact-screen h2 {
  @apply text-yellow-800 mb-4;
}

.fact-screen p {
  @apply text-yellow-900 leading-relaxed;
}

/* ========================================
   LOADING SCREEN FIXES
   ======================================== */

/* Override any conflicting loading styles */
.loading-overlay .absolute {
  position: absolute !important;
}

/* Basketball Bounce Animation */
@keyframes basketballBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.basketball-bounce {
  animation: basketballBounce 3s ease-in-out infinite !important;
}

/* Circular Progress */
.circular-progress {
  transition: stroke-dashoffset 0.8s ease-out !important;  
}

.circular-percentage {
  font-variant-numeric: tabular-nums !important;
  transition: all 0.3s ease !important;
}

/* Text Transitions */
.loading-title,
.loading-subtitle,
.testimonial-text,
.testimonial-author {
  transition: opacity 0.3s ease !important;
}

/* Social Proof */
.social-proof-section {
  transition: opacity 1s ease-in-out !important;
}

.social-proof-section svg {
  transition: transform 0.2s ease !important;
  filter: drop-shadow(0 1px 2px rgba(34, 197, 94, 0.3)) !important;
}

.social-proof-section svg:hover {
  transform: scale(1.1) !important;
}

/* Ensure loading overlay works */
.loading-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
  background: white !important;
  overflow: hidden !important;
}

/* Loading Fade In Animation */
@keyframes loadingFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-overlay {
  animation: loadingFadeIn 0.5s ease-out !important;
}

/* ========================================
   SUBSCRIPTION PLANS STYLES
   ======================================== */

   .pricing-card {
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .pricing-card.popular-plan {
    border-color: #ef4444;    
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
  }
  
  .pricing-card.popular-plan:hover {
    transform: scale(1.05) translateY(-4px);
  }
  
  .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  }
  
  .plan-content {
    text-align: center;
    flex: 1;
    margin-bottom: 24px;
  }
  
  .plan-title {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 8px;
  }
  
  .plan-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    min-height: 16px;
  }
  
  .pricing-section {
    margin-bottom: 24px;
  }
  
  .original-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .current-price {
    font-size: 32px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 8px;
  }
  
  .per-day-price {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
  }
  
  .per-day-price span {
    font-size: 14px;
    font-weight: normal;
    color: #6b7280;
  }
  
  .plan-selector {
    display: flex;
    justify-content: center;
  }
  
  .radio-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .countdown-timer {
    font-variant-numeric: tabular-nums;
  }
  
  .subscription-get-plan-btn:disabled {
    background-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
  }
  
  /* Selected state for pricing cards */
  .pricing-card.selected {
    border-color: #ef4444;
    background-color: #fef2f2;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
  }
  
  .pricing-card.selected .radio-indicator {
    background-color: #ef4444;
    border-color: #ef4444;
  }
  
  .pricing-card.selected .radio-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Mobile responsive adjustments */
  @media (max-width: 768px) {
    .pricing-card.popular-plan {
      transform: none;
      margin: 0;
    }
    
    .pricing-card.popular-plan:hover {
      transform: translateY(-4px);
    }
  }

  /* Payment Processing Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* app/assets/stylesheets/profile.css */

/* Clean, minimal styling to match BetterMe */
.profile-layout {
    background-color: #f9fafb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  
  /* Sidebar Styling */
  .profile-sidebar {
    background: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }
  
  .profile-sidebar .nav-item {
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 2px;
  }
  
  .profile-sidebar .nav-item:hover {
    background-color: #f3f4f6;
  }
  
  .profile-sidebar .nav-item.active {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 500;
  }
  
  /* Premium Card Styling */
  .premium-card {
    background: linear-gradient(135deg, #fef3e2 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
  }
  
  .premium-badge {
    background-color: #f59e0b;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Form Input Styling */
  .form-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
  }
  
  .form-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }
  
  .form-input:disabled,
  .form-input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
  }
  
  /* Tab Navigation */
  .tab-nav {
    border-bottom: 1px solid #e5e7eb;
  }
  
  .tab-nav .tab-item {
    padding: 16px 4px;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #6b7280;
  }
  
  .tab-nav .tab-item:hover {
    color: #374151;
  }
  
  .tab-nav .tab-item.active {
    color: #ef4444;
    border-bottom-color: #ef4444;
  }
  
  /* Personal Data List Items */
  .personal-data-item {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    cursor: pointer;
  }
  
  .personal-data-item:hover {
    background-color: #f9fafb;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .personal-data-item:last-child {
    border-bottom: none;
  }
  
  .personal-data-icon {
    width: 32px;
    height: 32px;
    background-color: #fef2f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .personal-data-icon svg {
    width: 16px;
    height: 16px;
    color: #ef4444;
  }
  
  /* Subscription Cards */
  .subscription-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
  }
  
  .subscription-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
  }
  
  .subscription-card.cancelled {
    background-color: #f9fafb;
    opacity: 0.8;
  }
  
  .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .status-badge.cancelled {
    background-color: #f3f4f6;
    color: #6b7280;
  }
  
  .status-badge.active {
    background-color: #dcfce7;
    color: #166534;
  }
  
  /* Payment History Items */
  .payment-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .payment-item:hover {
    background-color: #f9fafb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  }
  
  /* Modal Styling */
  .modal-overlay {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
  }
  
  .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.2s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* Button Styling */
  .btn-primary {
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .btn-primary:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
  }
  
  .btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
  }
  
  /* Right Sidebar Upsell */
  .upsell-card {
    background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .upsell-card .product-image {
    border-radius: 12px;
    overflow: hidden;
  }
  
  .upsell-card .cta-button {
    background-color: #111827;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .upsell-card .cta-button:hover {
    background-color: #000000;
    transform: translateY(-1px);
  }
  
  /* Empty States */
  .empty-state {
    text-align: center;
    padding: 48px 24px;
  }
  
  .empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
  }
  
  .empty-state p {
    color: #6b7280;
    margin-bottom: 24px;
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .profile-sidebar {
      display: none;
    }
    
    .upsell-card {
      display: none;
    }
  }
  
  @media (max-width: 768px) {
    .subscription-card,
    .payment-item {
      padding: 16px;
    }
    
    .modal-content {
      margin: 16px;
    }
    
    .form-input {
      font-size: 16px; /* Prevents zoom on iOS */
    }
  }
  
  /* Loading and Success States */
  .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .success-message {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
  }
  
  .error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
  }
  
  /* Smooth Transitions */
  * {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 0.15s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Focus States for Accessibility */
  button:focus,
  input:focus,
  [tabindex]:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
  }   
  
  /* Reset and Base Styles */
  .profile-container * {
    box-sizing: border-box;
  }
  
  .profile-container {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 */

/* Import your Tailwind CSS build */

/* Any additional custom styles can go here */




/* Custom scrollbar styles for sidebar */
.scrollbar-thin::-webkit-scrollbar {
  width: 8px; /* Slightly wider for better visibility */
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Firefox scrollbar styles */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Mobile sidebar specific styles */
#mobileSidebar {
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overscroll-behavior: contain; /* Prevent scroll chaining */
  max-height: 100vh; /* Ensure it doesn't exceed viewport height */
  overflow-y: auto; /* Force vertical scrolling */
  height: 100vh; /* Full viewport height */
  position: fixed; /* Ensure it stays fixed */
  top: 0;
  left: 0;
  z-index: 30;
}

/* Desktop sidebar specific styles */
#sidebar {
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on desktop too */
  overscroll-behavior: contain; /* Prevent scroll chaining */
  max-height: 100vh; /* Ensure it doesn't exceed viewport height */
  overflow-y: auto; /* Force vertical scrolling */
  height: 100vh; /* Full viewport height */
}

/* Ensure mobile sidebar content is scrollable */
#mobileSidebar .p-6 {
  min-height: 100%;
  padding-bottom: 2rem; /* Extra padding at bottom */
}

/* Ensure desktop sidebar content is scrollable */
#sidebar .p-6 {
  min-height: 100%;
  padding-bottom: 2rem; /* Extra padding at bottom */
}

/* Main content area styles */
.main-content-scrollable {
  height: calc(100vh - 80px); /* Subtract navigation height */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Mobile-specific scrollbar styles */
@media (max-width: 1024px) {
  #mobileSidebar::-webkit-scrollbar {
    width: 4px; /* Thinner scrollbar on mobile */
  }
  
  #mobileSidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  
  #mobileSidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
  }
}

/* Desktop-specific scrollbar styles */
@media (min-width: 1024px) {
  #sidebar::-webkit-scrollbar {
    width: 6px; /* Standard scrollbar width on desktop */
  }
  
  #sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  
  #sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  #sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

/* Prevent background scrolling when mobile sidebar is open */
body.sidebar-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
