
/* RegisterPage-specific styles only */

/* Top Navigation */
.top-navigation[data-v-3eb42dc7] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}
.login-nav-button[data-v-3eb42dc7] {
  --color: rgba(255, 255, 255, 0.8);
  --color-hover: white;
  font-size: 0.9rem;
  text-transform: none;
  font-weight: 500;
  --padding-start: 12px;
  --padding-end: 12px;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.login-nav-button[data-v-3eb42dc7]:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Selection Indicator */
.selection-indicator[data-v-3eb42dc7] {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.selection-indicator.active[data-v-3eb42dc7] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.plan-card.premium .selection-indicator.active[data-v-3eb42dc7] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}
.selection-indicator ion-icon[data-v-3eb42dc7] {
  color: white;
  font-size: 1rem;
}

/* Loading Spinner */
.loading-spinner[data-v-3eb42dc7] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-spinner ion-spinner[data-v-3eb42dc7] {
  --color: white;
  width: 20px;
  height: 20px;
}

/* Toast Notification Styles */
.toast-notification[data-v-3eb42dc7] {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight-3eb42dc7 0.3s ease-out;
}
.toast-notification.success[data-v-3eb42dc7] {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%);
  border-color: rgba(76, 175, 80, 0.3);
}
.toast-notification.error[data-v-3eb42dc7] {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(211, 47, 47, 0.9) 100%);
  border-color: rgba(244, 67, 54, 0.3);
}
.toast-content[data-v-3eb42dc7] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.toast-icon[data-v-3eb42dc7] {
  font-size: 1.2rem;
  color: white;
  min-width: 20px;
}
.toast-message[data-v-3eb42dc7] {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.toast-close[data-v-3eb42dc7] {
  --color: white;
  --color-hover: rgba(255, 255, 255, 0.8);
  margin-left: 12px;
  min-width: 24px;
  height: 24px;
}
@keyframes slideInRight-3eb42dc7 {
from {
    transform: translateX(100%);
    opacity: 0;
}
to {
    transform: translateX(0);
    opacity: 1;
}
}

/* Responsive adjustments for toast */
@media (max-width: 768px) {
.toast-notification[data-v-3eb42dc7] {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
}
}


/* Light Theme Styles for Register Page */
body.light-theme .background-scene {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
}
body.light-theme .stars {
  opacity: 0 !important;
}
body.light-theme .register-title {
  background: linear-gradient(135deg, #6f3cc4 0%, #5a2da3 25%, #4a1d8a 50%, #3a1470 75%, #2a0f56 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
body.light-theme .register-input-group ion-label {
  color: #333 !important;
}
body.light-theme .register-custom-input {
  background: #fff !important;
  background-color: #fff !important;
  border: 2px solid #ddd !important;
  border-color: #ddd !important;
  color: #333 !important;
  --border-color: #ddd !important;
}
body.light-theme .register-custom-input::-moz-placeholder {
  color: #999 !important;
}
body.light-theme .register-custom-input::placeholder {
  color: #999 !important;
}
body.light-theme .register-custom-input:focus {
  border-color: #6f3cc4 !important;
  border: 2px solid #6f3cc4 !important;
  background: #fff !important;
  background-color: #fff !important;
  --border-color: #6f3cc4 !important;
  box-shadow: 0 8px 25px rgba(111, 60, 196, 0.15) !important;
}
body.light-theme .register-custom-input:focus::-moz-placeholder {
  color: #666 !important;
}
body.light-theme .register-custom-input:focus::placeholder {
  color: #666 !important;
}

/* Light theme plan cards */
body.light-theme .plan-card {
  background: #fff !important;
  border: 2px solid #ddd !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .plan-card:hover {
  border-color: #6f3cc4 !important;
  box-shadow: 0 20px 40px rgba(111, 60, 196, 0.15) !important;
}
body.light-theme .plan-card.active {
  border-color: #6f3cc4 !important;
  background: #f0e6ff !important;
  box-shadow: 0 20px 40px rgba(111, 60, 196, 0.2) !important;
}
body.light-theme .plan-card.premium {
  border-color: #f093fb !important;
}
body.light-theme .plan-card.premium:hover {
  border-color: #f093fb !important;
  box-shadow: 0 20px 40px rgba(240, 147, 251, 0.15) !important;
}
body.light-theme .plan-card.premium.active {
  border-color: #f093fb !important;
  background: #fef0ff !important;
  box-shadow: 0 20px 40px rgba(240, 147, 251, 0.2) !important;
}
body.light-theme .plan-title {
  color: #333 !important;
}
body.light-theme .price-amount {
  background: linear-gradient(135deg, #6f3cc4 0%, #5a2da3 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
body.light-theme .plan-card.premium .price-amount {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
body.light-theme .price-period {
  color: #666 !important;
}
body.light-theme .feature-item {
  color: #333 !important;
}
body.light-theme .feature-icon {
  color: #34c759 !important;
}

/* Light theme step indicators */
body.light-theme .step-label {
  color: #333 !important;
}
body.light-theme .step-item.completed .step-label,
body.light-theme .step-item.active .step-label {
  color: #333 !important;
  opacity: 1 !important;
}
body.light-theme .step-connector {
  background: linear-gradient(90deg, #34c759 0%, #6f3cc4 100%) !important;
}

/* Light theme buttons */
body.light-theme .continue-button {
  --background: #6f3cc4 !important;
  --background-hover: #5a2da3 !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(111, 60, 196, 0.3) !important;
}
body.light-theme .continue-button:not(.ion-disabled):hover {
  box-shadow: 0 8px 25px rgba(111, 60, 196, 0.4) !important;
}
body.light-theme .continue-button.ion-disabled {
  --background: #f5f5f5 !important;
  --color: #999 !important;
}
body.light-theme .register-button {
  --background: #6f3cc4 !important;
  --background-hover: #5a2da3 !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(111, 60, 196, 0.3) !important;
}
body.light-theme .register-button:not(.loading):hover {
  box-shadow: 0 8px 25px rgba(111, 60, 196, 0.4) !important;
}
body.light-theme .login-link {
  color: #555 !important;
}
body.light-theme .login-link a {
  color: #6f3cc4 !important;
}
body.light-theme .login-link a:hover {
  color: #5a2da3 !important;
}

/* Light theme toast adjustments */
body.light-theme .toast-notification {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .toast-notification.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.95) 0%, rgba(56, 142, 60, 0.95) 100%) !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
}
body.light-theme .toast-notification.error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.95) 0%, rgba(211, 47, 47, 0.95) 100%) !important;
  border-color: rgba(244, 67, 54, 0.3) !important;
}


/* Google Calendar Mobile Styles */
.google-calendar-mobile[data-v-944be506] {
  width: 100%;
  min-height: 100vh;
  background: #202124;
  color: #ffffff;
  overflow-x: hidden;
  box-sizing: border-box;
  max-width: 100vw;
  padding-top: 3rem;
}

/* Ensure calendar layout doesn't overflow */
.calendar-layout[data-v-944be506] {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Top Bar */
.calendar-top-bar[data-v-944be506] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #202124;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-left[data-v-944be506] {
  flex: 1;
}
.current-time[data-v-944be506] {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}
.top-bar-center[data-v-944be506] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}
.year-nav-button[data-v-944be506] {
  --color: #ffffff;
  --padding-start: 0.25rem;
  --padding-end: 0.25rem;
  margin: 0;
  height: auto;
}
.current-year[data-v-944be506] {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}
.top-bar-actions[data-v-944be506] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(60, 60, 60, 0.6);
  padding: 0.35rem 0.75rem;
  border-radius: 24px;
  flex: 1;
  justify-content: flex-end;
}
.action-button[data-v-944be506] {
  --color: #ffffff;
  --padding-start: 0.5rem;
  --padding-end: 0.5rem;
  margin: 0;
  height: auto;
}

/* Month Name Header */
.month-name-header[data-v-944be506] {
  padding: 1rem 1rem 0.75rem 1rem;
  background: #202124;
}
.month-title-large[data-v-944be506] {
  font-size: 2.25rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Calendar Container */
.calendar-container[data-v-944be506] {
  background: #202124 !important;
  padding: 0.5rem 0.3rem 1rem 0.3rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Weekday Headers */
.calendar-weekday-headers[data-v-944be506] {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.07rem;
  margin-bottom: 0.4rem;
  width: 100%;
  box-sizing: border-box;
}
.weekday-header[data-v-944be506] {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0;
}

/* Calendar Grid */
.calendar-grid[data-v-944be506] {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.07rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile calendar day styles - only apply on mobile Google Calendar layout */
@media (max-width: 768px) {
.google-calendar-mobile .calendar-day[data-v-944be506] {
    min-height: 110px;
    padding: 0.45rem 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
}

/* Mobile-only styles - scoped to Google Calendar mobile layout */
@media (max-width: 768px) {
.google-calendar-mobile .calendar-day.current-month[data-v-944be506] {
    background: rgba(255, 255, 255, 0.05);
}
.google-calendar-mobile .calendar-day[data-v-944be506]:not(.current-month) {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.02);
}
.google-calendar-mobile .day-number[data-v-944be506] {
    font-size: 0.8rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.15rem;
    align-self: flex-start;
    line-height: 1;
}
.google-calendar-mobile .calendar-day.today[data-v-944be506] {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}
.google-calendar-mobile .calendar-day.today .day-number[data-v-944be506] {
    background: #ea4335;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
}
}

/* Event Tags */
.event-tags[data-v-944be506] {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  margin-top: 0.1rem;
  box-sizing: border-box;
}
.event-tag[data-v-944be506] {
  font-size: 0.55rem;
  padding: 0.08rem 0.25rem;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.15;
  max-width: 100%;
  box-sizing: border-box;
}
.event-tag-positive[data-v-944be506] {
  background: #22c55e;
  color: #ffffff;
}
.event-tag-negative[data-v-944be506] {
  background: #ea4335;
  color: #ffffff;
}
.event-tag-more[data-v-944be506] {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.event-tag-collapse[data-v-944be506] {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

/* Bottom Bar */
.calendar-bottom-bar[data-v-944be506] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #202124;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  bottom: 0;
}
.today-button[data-v-944be506] {
  --background: rgba(255, 255, 255, 0.1);
  --color: #ffffff;
  --border-radius: 20px;
  --padding-start: 1.5rem;
  --padding-end: 1.5rem;
  --padding-top: 0.75rem;
  --padding-bottom: 0.75rem;
  font-weight: 500;
  text-transform: none;
}
.bottom-nav-left[data-v-944be506] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}
.nav-button-small[data-v-944be506] {
  --color: #ffffff;
  --padding-start: 0.25rem;
  --padding-end: 0.25rem;
  margin: 0;
  height: auto;
}
.next-month-preview[data-v-944be506] {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Desktop - Hide Google Calendar Mobile Styles */
@media (min-width: 769px) {
.google-calendar-mobile[data-v-944be506] {
    display: none;
}
.desktop-calendar[data-v-944be506] {
    display: block;
}
  
  /* Hide mobile menu toggle on desktop */
.mobile-menu-toggle[data-v-944be506] {
    display: none !important;
}
  
  /* Hide mobile header on desktop and ensure it doesn't overlap */
.calendar-layout ion-header[data-v-944be506] {
    display: none !important;
    position: absolute !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
  
  /* Ensure calendar-layout doesn't overlap sidebar */
.calendar-layout[data-v-944be506] {
    position: relative !important;
}
  
  /* Ensure sidebar is on top and not blocked */
.glass-card.sidebar[data-v-944be506] {
    position: fixed !important;
    z-index: 1001 !important;
    top: 0 !important;
    left: 0 !important;
}
  
  /* Hide "Back to Calendar" button on desktop */
.glass-card.sidebar .back-to-calendar-button[data-v-944be506] {
    display: none !important;
}
  
  /* Ensure back button container is visible and accessible */
.glass-card.sidebar .back-button-container[data-v-944be506] {
    position: relative !important;
    z-index: 1002 !important;
    pointer-events: auto !important;
}
.glass-card.sidebar .back-button[data-v-944be506] {
    position: relative !important;
    z-index: 1003 !important;
    pointer-events: auto !important;
}
  
  /* Ensure nothing overlaps the sidebar area */
.welcome-content[data-v-944be506],
  ion-content[data-v-944be506] {
    overflow: visible !important;
}
.calendar-layout[data-v-944be506] {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
  
  /* Desktop calendar - ensure mobile styles don't apply */
.desktop-calendar .calendar-container[data-v-944be506] {
    background: transparent !important;
    padding: 1rem !important;
}
  
  /* Reset any mobile calendar day styles for desktop */
.desktop-calendar .calendar-day[data-v-944be506] {
    min-height: auto !important;
    max-height: none !important;
    padding: 0.2rem !important;
    overflow: visible !important;
    /* Let global.css handle the rest */
}
  
  /* Ensure desktop uses original event display */
.desktop-calendar .event-details[data-v-944be506] {
    display: block !important;
}
.desktop-calendar .event-tags[data-v-944be506] {
    display: none !important;
}
.desktop-calendar .day-number[data-v-944be506] {
    display: none !important;
}
  
  /* Ensure sidebar is accessible */
.glass-card.sidebar[data-v-944be506] {
    z-index: 1000 !important;
}
  
  /* Fix back button text rendering on desktop */
.glass-card.sidebar .back-button[data-v-944be506] {
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}
.glass-card.sidebar .back-button[data-v-944be506] * {
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
}
.glass-card.sidebar .back-button .button-native[data-v-944be506] {
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
    backface-visibility: hidden !important;
}
.glass-card.sidebar .back-button ion-label[data-v-944be506] {
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
}
}

/* Mobile - Hide Desktop Calendar */
@media (max-width: 768px) {
.desktop-calendar[data-v-944be506] {
    display: none;
}
}

/* Mobile - Show Google Calendar Mobile Styles */
@media (max-width: 768px) {
.google-calendar-mobile[data-v-944be506] {
    display: block;
}
  
  /* Hide original calendar header */
.calendar-header[data-v-944be506] {
    display: none !important;
}
  
  /* Adjust calendar container */
.glass-card.calendar-container[data-v-944be506] {
    background: #202124 !important;
    padding: 0.5rem 0.3rem 1rem 0.3rem !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
  
  /* Override existing calendar day styles for mobile */
.calendar-day[data-v-944be506] {
    min-height: 105px !important;
    padding: 0.45rem 0.1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.calendar-grid[data-v-944be506] {
    gap: 0.06rem !important;
    max-width: 100% !important;
}
.calendar-weekday-headers[data-v-944be506] {
    gap: 0.06rem !important;
    max-width: 100% !important;
}
.google-calendar-mobile[data-v-944be506] {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
.calendar-layout[data-v-944be506] {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}
ion-content.welcome-content[data-v-944be506] {
    --padding-start: 0 !important;
    --padding-end: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.calendar-day.current-month[data-v-944be506] {
    background: rgba(255, 255, 255, 0.05) !important;
}
.calendar-day[data-v-944be506]:not(.current-month) {
    opacity: 0.3 !important;
    background: rgba(255, 255, 255, 0.02) !important;
}
.calendar-day.today[data-v-944be506] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
}
.calendar-day-header[data-v-944be506] {
    display: none !important;
}
  
  /* Hide event details in favor of event tags */
.event-details[data-v-944be506] {
    display: none !important;
}
  
  /* Reduce spacing between back buttons */
.glass-card.sidebar .back-button-container[data-v-944be506] {
    gap: 0.1rem !important;
}
.glass-card.sidebar .back-button[data-v-944be506] {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
  
  /* Show "Back to Calendar" button on mobile */
.glass-card.sidebar .back-to-calendar-button[data-v-944be506] {
    display: flex !important;
}
}


/* Sidebar-specific responsive behavior */
.sidebar-collapsed[data-v-151ded39] {
  width: 70px;
  min-width: 70px;
}

/* Sidebar-specific animations */
.nav-section-toggle.rotated[data-v-151ded39] {
  transform: rotate(180deg);
}


/* App Title Container - Custom spacing for feedback page */
.app-title-container[data-v-76360f60] {
  margin-bottom: 0;
  padding-top: 0;
}

/* Title Subtitle - Custom spacing for feedback page */
.title-subtitle[data-v-76360f60] {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Login Subtitle */
.login-subtitle[data-v-76360f60] {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 300;
}

/* Feedback Textarea */
.feedback-textarea[data-v-76360f60] {
  resize: vertical;
  min-height: 300px;
  font-family: inherit;
  line-height: 1.5;
}

/* Dark theme dropdown styling */
.login-custom-input option[data-v-76360f60] {
  background-color: #2a2a2a;
  color: #ffffff;
  padding: 8px;
}
.login-custom-input[data-v-76360f60]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Back Link */
.register-link[data-v-76360f60] {
  text-align: center;
  margin-top: 1rem;
}
.register-link a[data-v-76360f60] {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.register-link a[data-v-76360f60]:hover {
  color: rgba(255, 255, 255, 1);
}
.back-icon[data-v-76360f60] {
  font-size: 1rem;
}

/* ========================================
   GLOBAL CSS - BUDGETEER THEME SYSTEM
   ======================================== */
/* 
   THEME SYSTEM:
   - Dark theme is the DEFAULT for new users
   - Purple theme is available as an option
   - Light theme is available as an option
*/

/* ========================================
   ROOT VARIABLES & BASE STYLES
   ======================================== */
:root {
    --ion-background-color: #ffffff;
    --ion-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-bg-active: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    --border-radius: 10px;
}

/* ========================================
   GLOBAL LAYOUT & SCROLLBAR STYLES
   ======================================== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #2C2C2C;
}

/* Hide scrollbars globally */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

* {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* Ensure ion-app doesn't add margins */
ion-app {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

ion-app::-webkit-scrollbar {
    display: none;
}

ion-app {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbars on Ionic components */
ion-content, ion-page, ion-router-outlet {
    overflow-x: hidden;
}

ion-content::-webkit-scrollbar, ion-page::-webkit-scrollbar, ion-router-outlet::-webkit-scrollbar {
    display: none;
}

ion-content, ion-page, ion-router-outlet {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========================================
   PURPLE THEME - SHADOW DOM ELEMENTS
   ======================================== */
ion-content::part(background) {
  background-color: #1a1a1a !important;
}

ion-content::part(scroll) {
  background-color: #1a1a1a !important;
}

/* Removed chained pseudo-element after ::part() - causes minifier issues */
ion-content::part(scroll) {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Use inner-scroll for webkit scrollbar instead */
ion-content .inner-scroll::-webkit-scrollbar {
  display: none !important;
}

ion-content .inner-scroll {
  background-color: #1a1a1a !important;
}

ion-content .inner-scroll::-webkit-scrollbar {
  display: none !important;
}

ion-content .inner-scroll {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

ion-content #background-content {
  background-color: #1a1a1a !important;
}

/* ========================================
   PURPLE THEME - BACKGROUND SCENE
   ======================================== */
.background-scene {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #9c5bdb 0%, #6f3cc4 100%);
    overflow: hidden;
}

.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background:
        linear-gradient(180deg, transparent 0%, #2a1b47 100%),
        linear-gradient(-45deg, #432874 0%, #2a1b47 100%);
    clip-path: polygon(0% 100%,
            0% 45%,
            15% 55%,
            30% 40%,
            45% 60%,
            60% 35%,
            75% 55%,
            90% 40%,
            100% 50%,
            100% 100%);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ========================================
   PURPLE THEME - GLASS COMPONENTS
   ======================================== */
.glass-card {
    background: rgba(42, 27, 71, 0.8);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-input {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    color: white;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    --padding-start: 1rem;
    --padding-end: 1rem;
    --placeholder-color: rgba(255, 255, 255, 0.7);
    --highlight-color-focused: rgba(255, 255, 255, 0.5);
    --highlight-color-valid: rgba(255, 255, 255, 0.5);
    --highlight-color-invalid: rgba(255, 255, 255, 0.5);
    caret-color: white;
}

.glass-input::part(native) {
    caret-color: white;
}

.glass-button {
  --background: rgba(255, 255, 255, 0.1);
  --background-hover: rgba(255, 255, 255, 0.2);
  --background-activated: rgba(255, 255, 255, 0.2);
  --background-focused: rgba(255, 255, 255, 0.2);
  --color: white;
  --border-radius: 10px;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-style: solid;
  --border-width: 1px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --ripple-color: rgba(255, 255, 255, 0.1);
  height: 42px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.glass-button:hover {
  --background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   SHARED PAGE STYLES - LOGIN & FEEDBACK
   ======================================== */

/* Mathematical Equations Background */
.math-equations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.equation {
  position: absolute;
  font-family: 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 300;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: scale(0.8);
  white-space: nowrap;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.4), 0 0 50px rgba(240, 147, 251, 0.3);
}

/* Equation positioning and animations */
.equation-1 {
  top: 15%;
  left: 10%;
  animation: equationFade 8s ease-in-out infinite 0s;
}

.equation-2 {
  top: 25%;
  right: 15%;
  animation: equationFade 8s ease-in-out infinite 1s;
}

.equation-3 {
  top: 35%;
  left: 20%;
  animation: equationFade 8s ease-in-out infinite 2s;
}

.equation-4 {
  top: 45%;
  right: 25%;
  animation: equationFade 8s ease-in-out infinite 3s;
}

.equation-5 {
  top: 55%;
  left: 15%;
  animation: equationFade 8s ease-in-out infinite 4s;
}

.equation-6 {
  top: 65%;
  right: 20%;
  animation: equationFade 8s ease-in-out infinite 5s;
}

.equation-7 {
  top: 75%;
  left: 25%;
  animation: equationFade 8s ease-in-out infinite 6s;
}

.equation-8 {
  top: 85%;
  right: 15%;
  animation: equationFade 8s ease-in-out infinite 7s;
}

.equation-9 {
  top: 20%;
  left: 60%;
  animation: equationFade 8s ease-in-out infinite 0.5s;
}

.equation-10 {
  top: 70%;
  left: 50%;
  animation: equationFade 8s ease-in-out infinite 1.5s;
}

/* App Title Container */
.app-title-container {
  text-align: center;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1s ease-out;
  padding-top: 2rem;
}

.app-title {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  letter-spacing: 6px;
  position: relative;
  z-index: 10;
  animation: glow 2s ease-in-out infinite alternate;
}

.app-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 6px;
  background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, transparent);
  border-radius: 3px;
  animation: shimmer 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.title-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* Beta Badge */
.beta-badge {
  display: inline-block;
  margin-top: 0.3rem;
  margin-bottom: 0;
  padding: 0.1rem 0;
  animation: fadeInUp 1s ease-out 0.7s both;
}

.beta-text {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b 0%, #9c27b0 25%, #673ab7 50%, #3f51b5 75%, #2196f3 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4), 0 0 20px rgba(156, 39, 176, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  animation: betaPulse 2s ease-in-out infinite;
}

.beta-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: betaShimmer 3s ease-in-out infinite;
}

/* Shared Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
  }
  to {
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.2);
  }
}

@keyframes equationFade {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8) rotate(-2deg);
  }
  10%, 90% {
    opacity: 0.4;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1) rotate(1deg);
  }
}

@keyframes betaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4), 0 0 20px rgba(156, 39, 176, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.6), 0 0 30px rgba(156, 39, 176, 0.4);
  }
}

@keyframes betaShimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Design for Shared Elements */
@media (max-width: 768px) {
  .app-title {
    font-size: 5.5rem;
    letter-spacing: 3px;
  }
  
  .title-subtitle {
    font-size: 1rem;
  }
  
  .beta-text {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
  
  .equation {
    font-size: 1rem;
  }
  
  .equation-1, .equation-2, .equation-9 {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-title {
    font-size: 3.75rem;
    letter-spacing: 1.5px;
  }
  
  .beta-text {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
  }
  
  .equation {
    font-size: 0.9rem;
  }
  
  .equation-3, .equation-4, .equation-7, .equation-8, .equation-10 {
    display: none;
  }
}

/* ========================================
   REGISTER PAGE STYLES
   ======================================== */

/* Register Container */
.register-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

.register-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.register-title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Plan Selection Styles */
.plan-selection-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.plan-selection-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  opacity: 0.9;
}

.plans-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  width: 280px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card.active {
  border-color: rgba(102, 126, 234, 0.8);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.plan-card.active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.plan-card.premium {
  border-color: rgba(240, 147, 251, 0.3);
}

.plan-card.premium:hover {
  border-color: rgba(240, 147, 251, 0.6);
}

.plan-card.premium.active {
  border-color: rgba(240, 147, 251, 0.8);
  box-shadow: 0 20px 40px rgba(240, 147, 251, 0.3);
}

.plan-card-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 1.5rem;
}

.premium-badge {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
  text-align: center;
  display: inline-block;
}

.plan-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  position: relative;
  z-index: 2;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  position: relative;
  z-index: 2;
}

.price-amount {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-card.premium .price-amount {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 500;
}

.plan-features {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.feature-icon {
  color: #34c759;
  font-size: 1.2rem;
  min-width: 20px;
}

.plan-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.plan-selection-actions {
  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
}

.continue-button {
  --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --background-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --color: white;
  height: 56px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.continue-button:not(.ion-disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.continue-button.ion-disabled {
  --background: rgba(255, 255, 255, 0.2);
  --color: rgba(255, 255, 255, 0.5);
}

/* Registration Form Styles */
.registration-form-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  justify-content: center;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.step-item.completed .step-number {
  background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4);
}

.step-item.active .step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step-label {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

.step-item.completed .step-label,
.step-item.active .step-label {
  opacity: 1;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #34c759 0%, #667eea 100%);
  border-radius: 1px;
}

.register-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2rem;
}

.form-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Form Rows */
.form-row {
  display: flex;
  gap: 1rem;
}

/* Input Groups */
.register-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 5 !important;
  flex: 1;
}

.register-input-group ion-label {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
  position: relative !important;
  z-index: 5 !important;
}

/* Custom input styling */
.register-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px;
  padding: 16px;
  color: white !important;
  width: 100%;
  font-size: 1rem;
  outline: none !important;
  transition: all 0.3s ease;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  --border-width: 2px !important;
  --border-style: solid !important;
  min-height: 52px;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

.register-custom-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.register-custom-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.register-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.8) !important;
  outline: none !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.register-custom-input:focus::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.register-custom-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Form Actions */
.register-form-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

.register-button {
  --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --background-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --color: white;
  height: 56px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.register-button:not(.loading):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.register-button.loading {
  --background: rgba(255, 255, 255, 0.2);
  --color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

/* Login Link */
.login-link {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.login-link a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-link a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* Responsive Design for Register Page */
@media (max-width: 768px) {
  .register-container {
    padding: 1rem;
  }
  
  .register-title {
    font-size: 2.5rem;
  }
  
  .plans-container {
    flex-direction: column;
    align-items: center;
  }
  
  .plan-card {
    width: 100%;
    max-width: 320px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .step-indicator {
    gap: 0.5rem;
  }
  
  .step-connector {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .register-title {
    font-size: 2rem;
  }
  
  .register-container {
    padding: 0.5rem;
  }
  
  .plan-card {
    padding: 1.5rem;
  }
  
  .plan-selection-title {
    font-size: 1.3rem;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .step-label {
    font-size: 0.8rem;
  }
}

/* ========================================
   PURPLE THEME - LOGIN FORM STYLES
   ======================================== */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 35vh;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 2rem;
  padding: 0 2rem;
  overflow: visible;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.login-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2rem;
}

.form-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 5 !important;
}

.login-input-group ion-label {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
  position: relative !important;
  z-index: 5 !important;
}

/* Custom input styling */
.login-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px;
  padding: 16px;
  color: white !important;
  width: 100%;
  font-size: 1rem;
  outline: none !important;
  transition: all 0.3s ease;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  --border-width: 2px !important;
  --border-style: solid !important;
  min-height: 52px;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

.login-custom-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.login-custom-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.login-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.8) !important;
  outline: none !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.login-custom-input:focus::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.login-custom-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Options Group */
.options-group {
  margin-top: 0.5rem;
}

.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  accent-color: rgba(255, 255, 255, 0.8);
}

.forgot-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: white;
}

/* Input Error Styles */
.login-input-group.error {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-custom-input.input-error {
  border-color: rgba(244, 67, 54, 0.5) !important;
  border: 2px solid rgba(244, 67, 54, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

.input-error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ff6b6b;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Actions */
.login-form-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
  min-height: auto;
  overflow: visible;
}

.login-button {
  --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --background-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --color: white;
  height: 56px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-button:not(.loading):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.login-button.loading {
  --background: rgba(255, 255, 255, 0.2);
  --color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner ion-spinner {
  --color: white;
  width: 20px;
  height: 20px;
}

/* Register Link */
.register-link {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.register-link a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.register-link a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.toast-notification.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%);
  border-color: rgba(76, 175, 80, 0.3);
}

.toast-notification.error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(211, 47, 47, 0.9) 100%);
  border-color: rgba(244, 67, 54, 0.3);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  font-size: 1.2rem;
  color: white;
  min-width: 20px;
}

.toast-message {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  --color: white;
  --color-hover: rgba(255, 255, 255, 0.8);
  margin-left: 12px;
  min-width: 24px;
  height: 24px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================
   PURPLE THEME - FORM STYLES
   ======================================== */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group ion-label {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.9;
}

ion-input.ion-focused {
    --highlight-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   PURPLE THEME - SIDEBAR STYLES
   ======================================== */
.sidebar {
  position: relative;
  height: 100vh;
  width: 100%;
  background: #333333;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 2rem 1rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  margin-top: -0.5rem;
}

.profile-icon {
  font-size: 2rem;
  color: white;
  min-width: 2rem;
}

.profile-details h3 {
  color: white;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.profile-details p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.8rem;
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.nav-section:last-of-type {
  margin-bottom: 1rem;
}

.nav-section.collapsed {
  margin-bottom: 0.25rem;
  padding-bottom: 0.125rem;
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0 0.5rem 0.75rem 0.5rem;
}

.nav-section-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.nav-section-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.nav-section-toggle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}

.nav-items {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  min-height: 52px;
  background: transparent;
  margin-bottom: 0.25rem;
  border-radius: 0 6px 6px 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.2);
}

.nav-item.active {
  background: rgba(139, 92, 246, 0.3);
  border-left-color: rgba(139, 92, 246, 0.8);
  color: white;
}

.profile-list {
  margin-top: 0.5rem;
  margin-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  font-size: 0.85rem;
}

.profile-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.profile-item.active-profile {
  background: rgba(139, 92, 246, 0.2);
  color: white;
  border-left: 2px solid rgba(139, 92, 246, 0.8);
}

.profile-item-icon {
  font-size: 1rem;
  min-width: 1rem;
  color: inherit;
}

.profile-item-label {
  font-weight: 500;
  white-space: nowrap;
  color: inherit;
}

.no-profiles {
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-size: 0.8rem;
}

.no-profiles-text {
  color: inherit;
}
.nav-icon {
  font-size: 1.2rem;
  min-width: 1.2rem;
  color: inherit;
  display: block;
}

.nav-label {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: white;
  display: block;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-item {
  color: #ff6b6b;
}

.logout-item:hover {
  background: rgba(255, 107, 107, 0.1);
  border-left-color: #ff6b6b;
}

.logout-item .nav-icon {
  color: #ff6b6b;
}

/* Sidebar scrollbar styling */
.sidebar-content::-webkit-scrollbar {
  width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   PURPLE THEME - CALENDAR STYLES
   ======================================== */
.calendar-layout {
    display: flex;
    gap: 3rem;
    justify-content: flex-start;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    height: -moz-fit-content;
    height: fit-content;
    margin-left: 2rem;
    background-color: #2a1b47;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 1rem;
}

/* Sidebar header with profile */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.sidebar-profile-info h3 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-profile-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.8rem;
}

/* Navigation sections */
.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section-header ion-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-section-header.collapsed ion-icon {
    transform: rotate(-90deg);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: white;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: white;
    border-radius: 0 2px 2px 0;
}

.nav-item ion-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Profile list */
.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: white;
    cursor: pointer;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.profile-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.profile-item.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.profile-item ion-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Sign out button */
.sign-out-button {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-out-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.sign-out-button ion-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.calendar-container {
    flex-grow: 1;
    width: auto;
    height: -moz-fit-content;
    height: fit-content;
    max-width: calc(100% - 380px);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-day.today {
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.9);
    font-weight: bold;
    font-size: 1.3rem;
}

.calendar-day.has-events {
    border: 1px solid rgba(67, 56, 202, 0.4);
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.2);
}

/* ========================================
   PURPLE THEME - DASHBOARD STYLES
   ======================================== */
.dashboard-content {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  z-index: 1;
  position: relative;
}

.dashboard-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent !important;
}

.stat-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 1rem;
}

.stat-value {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0 0 0;
}

.stat-value.positive {
  color: #00ff00;
}

.stat-value.negative {
  color: #DC143C !important;
}

.chart-card {
  margin: 0 auto 1.5rem auto;
  padding: 1.5rem;
  max-width: 600px;
  background: transparent !important;
}

.chart-title {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.chart-container {
  height: 300px;
  position: relative;
  margin: 0 auto;
  max-width: 400px;
}

/* Welcome content */
.welcome-content {
  min-height: 100%;
}

/* Dashboard Styles - Restored from original */
.dashboard-content {
  margin: 2% auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  padding: 0 2rem 0 2rem;
  margin-left: 0;
}

.dashboard-content .stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  margin-left: 0;
  padding-left: 0;
}

.dashboard-content .glass-card {
  background: transparent !important;
  padding: 1.5rem;
  color: white;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

.dashboard-content .stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

.dashboard-content .stat-icon {
  font-size: 2rem;
  color: #4c8dff;
}

.dashboard-content .stat-content h3 {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  color: white;
}

.dashboard-content .stat-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.dashboard-content .stat-value.positive {
  color: #34c759;
}

.dashboard-content .stat-value.negative {
  color: #DC143C;
}

.dashboard-content .charts-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.dashboard-content .chart-card {
  flex: 1;
  margin-bottom: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

.dashboard-content .chart-container {
  height: 300px;
  width: 100%;
}

.dashboard-content .chart-title {
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}

.dashboard-content .scenarios-card {
  flex: 1;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

.dashboard-content .data-table-card {
  margin-top: 1rem;
  background: transparent !important;
  width: 100%;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

.dashboard-content .data-table-card.full-width {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

/* Theme-specific dashboard overrides */
body.light-theme .dashboard-content .glass-card,
body.light-theme .dashboard-content .stat-card,
body.light-theme .dashboard-content .chart-card,
body.light-theme .dashboard-content .scenarios-card,
body.light-theme .dashboard-content .data-table-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

body.light-theme .dashboard-content .stat-content h3,
body.light-theme .dashboard-content .chart-title {
  color: #111 !important;
}

body.light-theme .dashboard-content .stat-value {
  color: #111 !important;
}

body.light-theme .dashboard-content .stat-value.positive {
  color: #34c759 !important;
}

body.light-theme .dashboard-content .stat-value.negative {
  color: #DC143C !important;
}

body.dark-theme .dashboard-content .glass-card,
body.dark-theme .dashboard-content .stat-card,
body.dark-theme .dashboard-content .chart-card,
body.dark-theme .dashboard-content .scenarios-card,
body.dark-theme .dashboard-content .data-table-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

body.dark-theme .dashboard-content .stat-content h3,
body.dark-theme .dashboard-content .chart-title {
  color: #e0e0e0 !important;
}

body.dark-theme .dashboard-content .stat-value {
  color: #e0e0e0 !important;
}

body.dark-theme .dashboard-content .stat-value.positive {
  color: #34c759 !important;
}

body.dark-theme .dashboard-content .stat-value.negative {
  color: #DC143C !important;
}

/* Dark theme sidebar profile display */
body.dark-theme .sidebar-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1rem 0 !important;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .sidebar-profile-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-weight: bold !important;
  font-size: 0.9rem !important;
}

body.dark-theme .sidebar-profile-info h3 {
  color: white !important;
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

body.dark-theme .sidebar-profile-info p {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0 !important;
  font-size: 0.8rem !important;
}

body.dark-theme .nav-section-header {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .nav-item {
  color: white !important;
  font-size: 0.6rem !important;
}

body.dark-theme .nav-item.active {
  background: rgba(255, 255, 255, 0.15) !important;
  font-weight: 500 !important;
}

body.dark-theme .nav-item.active::before {
  background: white !important;
}

body.dark-theme .profile-item {
  color: white !important;
  font-size: 0.9rem !important;
}

body.dark-theme .profile-item.active {
  background: rgba(255, 255, 255, 0.15) !important;
  font-weight: 500 !important;
}

body.dark-theme .sign-out-button {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .sign-out-button:hover {
  color: white !important;
}

/* Fix left cutoff for sidebar layout */
.main-content.sidebar-open {
  padding-left: 2rem !important;
  margin-left: 280px !important;
  width: calc(100% - 280px) !important;
}

/* Light theme main content background */
body.light-theme .main-content,
body.light-theme ion-content,
body.light-theme .welcome-content {
  background: white !important;
  --background: white !important;
  padding-left: 2rem !important;
}

/* Ensure charts and date pickers are not hidden behind sidebar */
body.light-theme .main-content.sidebar-open .chart-container,
body.light-theme .main-content.sidebar-open .date-range-filters {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

/* Dark theme-specific spacing tweaks for transaction actions */
body.dark-theme .transaction-form-actions {
  margin-top: 1.6rem !important; /* slightly lower than base 2rem for visual balance */
}

body.dark-theme .right-column .transaction-form-actions {
  margin-top: 1rem !important; /* slightly lower than right-column base 1.5rem */
}





/* ========================================
   PURPLE THEME - TOOLBAR & NAVIGATION
   ======================================== */
ion-toolbar {
    --background: transparent;
    --color: white;
}

ion-title {
    color: white;
}

ion-back-button {
    --color: white;
}

ion-buttons {
    --color: white;
}

/* ========================================
   PURPLE THEME - MODAL & POPOVER
   ======================================== */
.glass-modal {
    --background: transparent;
    --width: 100%;
    --height: 100%;
    --backdrop-opacity: 0.8;
    --backdrop-background: rgba(0, 0, 0, 0.7);
}

.glass-modal::part(content) {
    background: transparent;
}

.glass-modal .background-scene {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(156, 91, 219, 0.9) 0%, rgba(111, 60, 196, 0.9) 100%);
    z-index: -1;
}

.glass-modal .glass-card {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
}

ion-popover {
  --background: rgba(64, 64, 64, 0.95) !important;
  --border-radius: 10px !important;
  --border-color: rgba(255, 255, 255, 0.2) !important;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

ion-popover::part(content) {
  border-color: rgba(42, 27, 71, 0.95) !important;
  background: rgba(42, 27, 71, 0.95) !important;
}

ion-popover ion-content {
  --background: transparent !important;
}

ion-popover ion-list {
  background: transparent !important;
}

ion-popover ion-item {
  --background: transparent;
  --color: white;
  --background-hover: rgba(255, 255, 255, 0.1);
  --background-activated: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  font-weight: 500;
}

ion-popover ion-item ion-icon {
  color: white;
}

/* ========================================
   PURPLE THEME - SELECT INPUTS
   ======================================== */
/* Simplified to avoid minifier issues with class + ::part() */
ion-select.glass-input {
  --color: white;
  --placeholder-color: rgba(255, 255, 255, 0.7);
}

ion-select.glass-input::part(text) {
  color: white;
}

ion-select.glass-input::part(placeholder) {
  color: rgba(255, 255, 255, 0.7);
}

ion-select.glass-input::part(icon) {
  color: white;
  opacity: 0.8;
}

/* Default (dark) theme select styling */
body:not(.light-theme) select.glass-input,
body:not(.light-theme) select.glass-input option {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body:not(.light-theme) select.glass-input:focus,
body:not(.light-theme) select.glass-input:active {
  background: #3C3C3C !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

body:not(.light-theme) select.glass-input::-moz-placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}

body:not(.light-theme) select.glass-input::placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}

/* ========================================
   LIGHT THEME STYLES
   ======================================== */

/* Light theme html and body background */
body.light-theme {
    background-color: white !important;
}

html.light-theme {
    background-color: white !important;
}
/* Light theme Shadow DOM elements */
body.light-theme ion-content::part(background) {
  background-color: white !important;
}

body.light-theme ion-content::part(scroll) {
  background-color: white !important;
}

body.light-theme ion-content .inner-scroll {
  background-color: white !important;
}

body.light-theme ion-content #background-content {
  background-color: white !important;
}

/* Light theme background scene */
body.light-theme .background-scene {
  background: white !important;
}

body.light-theme .stars {
  opacity: 0 !important;
  animation: none !important;
}

/* Light theme base styles */
body.light-theme,
.light-theme .ion-page,
.light-theme .glass-card,
.light-theme .settings-container,
.light-theme .settings-form,
.light-theme .ion-content,
.light-theme .background-scene,
.light-theme .subscription-option,
.light-theme .input-group,
.light-theme .glass-input {
  background: white !important;
  color: #000 !important;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background: #fff !important;
  color: #000 !important;
}

body.light-theme .ion-label,
body.light-theme label {
  color: #000 !important;
}

/* Light theme glass components */
body.light-theme .glass-input,
body.light-theme .glass-input input,
body.light-theme ion-input,
body.light-theme ion-input input,
body.light-theme .input-group ion-label,
body.light-theme ion-label,
body.light-theme label,
body.light-theme .option-title,
body.light-theme .option-price,
body.light-theme .settings-title,
body.light-theme .settings-container,
body.light-theme .glass-card,
body.light-theme .settings-form,
body.light-theme .subscription-option,
body.light-theme .input-group {
  color: #000 !important;
  --color: #000 !important;
  --placeholder-color: #888 !important;
}

body.light-theme .glass-input,
body.light-theme .glass-card,
body.light-theme .settings-container,
body.light-theme .settings-form,
body.light-theme .subscription-option,
body.light-theme .input-group {
  background: #fff !important;
}

body.light-theme .glass-input input::-moz-placeholder {
  color: #888 !important;
  opacity: 1 !important;
}

body.light-theme .glass-input input::placeholder {
  color: #888 !important;
  opacity: 1 !important;
}

/* Light theme toolbar and navigation */
body.light-theme ion-toolbar,
body.light-theme ion-title,
body.light-theme ion-back-button,
body.light-theme ion-buttons {
  --color: #000 !important;
  color: #000 !important;
}

body.light-theme ion-back-button {
  --icon-color: #000 !important;
}

/* Light theme select inputs */
body.light-theme select.glass-input {
  border: 1.5px solid #888 !important;
  border-radius: 8px !important;
  background: #fff url("data:image/svg+xml;utf8,<svg fill=\"%23888\" height=\"20\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>") no-repeat right 0.75rem center/1.2em !important;
  -webkit-appearance: none !important;
     -moz-appearance: none !important;
          appearance: none !important;
  padding-right: 2.5em !important;
  color: #000 !important;
  cursor: pointer;
}

body.light-theme select.glass-input:focus {
  border-color: #6f3cc4 !important;
  outline: none !important;
}

body.light-theme .glass-button,
body.light-theme ion-button.glass-button {
  --color: #000 !important;
  color: #000 !important;
}

/* Light theme dashboard and content */
body.light-theme .dashboard-title,
body.light-theme .chart-title,
body.light-theme .stat-value,
body.light-theme .stat-content h3,
body.light-theme .data-table,
body.light-theme .data-table th,
body.light-theme .data-table td,
body.light-theme .date-label,
body.light-theme .settings-text,
body.light-theme .settings-icon,
body.light-theme .list-icon,
body.light-theme .button-icon,
body.light-theme .date-range-description,
body.light-theme .date-range-header h4,
body.light-theme .date-range-header,
body.light-theme .date-range-filters,
body.light-theme .action-buttons,
body.light-theme .glass-card,
body.light-theme .stat-card,
body.light-theme .chart-card,
body.light-theme .data-table-card,
body.light-theme .table-header,
body.light-theme .table-container {
  color: #111 !important;
  --color: #111 !important;
  background: #fff !important;
}

body.light-theme .positive {
  color: #34c759 !important;
}

body.light-theme .negative {
  color: #ff3b30 !important;
}

body.light-theme .data-table tr:hover {
  background-color: #f3f3f3 !important;
}

/* Light theme popover */
body.light-theme .custom-popover .popover-content,
body.light-theme .custom-popover ion-item {
  --background: #fff !important;
  --color: #111 !important;
  color: #111 !important;
}

body.light-theme .table-header ion-button,
body.light-theme .table-header ion-button[fill="clear"],
body.light-theme .table-header ion-button[fill=clear] {
  --color: #111 !important;
  color: #111 !important;
}

body.light-theme ion-select,
body.light-theme .date-select,
body.light-theme .date-select .select-text,
body.light-theme .date-select .select-placeholder,
body.light-theme .date-select .select-icon,
body.light-theme .glass-input.date-select,
body.light-theme ion-select::part(text),
body.light-theme ion-select::part(placeholder),
body.light-theme ion-select::part(icon) {
  color: #111 !important;
  --color: #111 !important;
  --placeholder-color: #888 !important;
}

body.light-theme ion-select,
body.light-theme .date-select,
body.light-theme .glass-input.date-select {
  background: #fff !important;
  border: 1.5px solid #888 !important;
}

body.light-theme .data-table td.positive,
body.light-theme .data-table .positive,
body.light-theme .stat-value.positive {
  color: #34c759 !important;
}

body.light-theme .data-table td.negative,
body.light-theme .data-table .negative,
body.light-theme .stat-value.negative {
  color: #DC143C !important;
}

/* Light theme charts */
body.light-theme .chartjs-render-monitor,
body.light-theme .chart-legend,
body.light-theme .chartjs-legend,
body.light-theme .legend-labels,
body.light-theme .chartjs-legend li,
body.light-theme .chartjs-legend span,
body.light-theme .chartjs-legend text,
body.light-theme .chart-legend li,
body.light-theme .chart-legend span {
  color: #111 !important;
  fill: #111 !important;
}

body.light-theme .chartjs-legend li {
  color: #111 !important;
}

body.light-theme ion-popover ion-content,
body.light-theme ion-popover ion-list,
body.light-theme ion-popover ion-item {
  --background: #fff !important;
  background: #fff !important;
  --color: #111 !important;
  color: #111 !important;
}

body.light-theme ion-popover ion-item {
  --background-hover: #f3f3f3 !important;
  --background-activated: #e0e0e0 !important;
}

/* Light theme calendar */
body.light-theme .section-title,
body.light-theme .cash-flow-item,
body.light-theme .flow-label,
body.light-theme .calendar-day-header,
body.light-theme .calendar-day,
body.light-theme .event-details,
body.light-theme .event-name,
body.light-theme .event-amount,
body.light-theme .month-title,
body.light-theme .sidebar,
body.light-theme .calendar-container,
body.light-theme .scenarios-card,
body.light-theme .quick-actions,
body.light-theme .calendar-header,
body.light-theme .nav-button,
body.light-theme .scenarios-button,
body.light-theme .list-icon,
body.light-theme .button-icon {
  color: #111 !important;
  --color: #111 !important;
}

body.light-theme .sidebar,
body.light-theme .calendar-container,
body.light-theme .scenarios-card,
body.light-theme .quick-actions,
body.light-theme .glass-card {
  background: #fff !important;
}

body.light-theme .calendar-day {
  background: #f3f3f3 !important;
  border: 1.5px solid #bbb !important;
  color: #111 !important;
}

body.light-theme .calendar-day.current-month {
  background: #e9e9ff !important;
}

body.light-theme .calendar-day.has-events {
  border: 1px solid #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
}

body.light-theme .calendar-day.today {
  border: 3px solid #3b82f6 !important;
  background: rgba(59, 130, 246, 0.1) !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

body.light-theme .calendar-day-header {
  background: #f3f3f3 !important;
  color: #111 !important;
}

body.light-theme .event-item.positive {
  color: #fff !important;
  background: #34c759 !important;
}

body.light-theme .event-item.negative {
  color: #fff !important;
  background: #ff3b30 !important;
}

body.light-theme .event-item {
  color: white !important;
}

body.light-theme .event-item.positive {
  color: white !important;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
}

body.light-theme .event-item.negative {
  color: white !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

body.light-theme .event-name,
body.light-theme .event-amount {
  color: white !important;
}

body.light-theme .quick-actions .login-button {
  --color: white !important;
  color: white !important;
  --background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important;
  border: none !important;
}

/* Light theme calendar page specific styles */
body.light-theme .background-scene {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

body.light-theme .stars {
  opacity: 0 !important;
}

body.light-theme .mountains {
  display: none !important;
}

/* Light theme sidebar */
body.light-theme .sidebar {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .back-button-container {
  border-bottom: none !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  position: relative !important;
}

body.light-theme .back-button-container::after {
  content: '' !important;
  position: absolute !important;
  bottom: -3rem !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .back-button {
  --color: #333 !important;
  --color-hover: rgba(0, 0, 0, 0.7) !important;
}

body.light-theme .back-button:hover {
  --color: rgba(0, 0, 0, 0.7) !important;
}

body.light-theme .section-title {
  color: #333 !important;
}

body.light-theme .cash-flow-item {
  color: #333 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .flow-label {
  color: #555 !important;
}

body.light-theme .flow-amount {
  color: #333 !important;
  text-shadow: none !important;
}

body.light-theme .flow-amount.positive {
  color: #22c55e !important;
}

body.light-theme .flow-amount.negative {
  color: #ef4444 !important;
}

/* Light theme calendar container */
body.light-theme .calendar-container {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
  max-width: calc(100% - 380px) !important;
}

body.light-theme .month-title {
  color: #333 !important;
}

body.light-theme .nav-button {
  --color: #333 !important;
  --color-hover: rgba(0, 0, 0, 0.7) !important;
}

body.light-theme .nav-button:hover {
  --color: rgba(0, 0, 0, 0.7) !important;
}

/* Light theme calendar grid */
body.light-theme .calendar-day-header {
  color: #333 !important;
  background: #f8f9fa !important;
  border-bottom: 1px solid #ddd !important;
}

body.light-theme .calendar-day {
  background: #fff !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
  font-size: 1.1rem !important;
}

body.light-theme .calendar-day.current-month {
  background: #f8f9fa !important;
  border: 1px solid #3b82f6 !important;
}

/* Light theme - use blue highlighting instead of purple */
body.light-theme .calendar-day.has-events {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
  background: rgba(59, 130, 246, 0.05) !important;
}

body.light-theme .calendar-day:not(.current-month) {
  opacity: 0.6 !important;
  background: #f5f5f5 !important;
  color: #999 !important;
}

body.light-theme .calendar-day:not(.current-month):hover {
  opacity: 0.8 !important;
  background: #f0f0f0 !important;
}

/* Light theme event items */
body.light-theme .event-item {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .event-item:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .event-item.positive {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  color: white !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

body.light-theme .event-item.negative {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  color: white !important;
  border-color: rgba(255, 107, 107, 0.3) !important;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
}

body.light-theme .event-name,
body.light-theme .event-amount {
  color: inherit !important;
  text-shadow: none !important;
}

/* Light theme scenarios section */
body.light-theme .scenarios-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .scenarios-icon {
  color: #666 !important;
}

body.light-theme .scenarios-subtitle {
  color: #666 !important;
}

body.light-theme .trigger-label {
  color: #666 !important;
}

body.light-theme .active-scenario-name {
  color: #22c55e !important;
}

body.light-theme .scenario-dropdown-trigger {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .scenario-dropdown-trigger:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .scenario-dropdown-menu {
  background: #fff !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .scenario-dropdown-item {
  color: #333 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .scenario-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .scenario-dropdown-item.active {
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}

body.light-theme .scenario-label {
  color: #333 !important;
}

body.light-theme .active-scenario-icon {
  color: #22c55e !important;
}

body.light-theme .create-scenario-dropdown-item {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px dashed rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .create-scenario-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.3) !important;
}

/* Light theme quick actions */
body.light-theme .quick-actions {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 1.5rem !important;
}

body.light-theme .quick-actions .section-title {
  color: #333 !important;
  font-weight: 500 !important;
  margin-bottom: 0.8rem !important;
}

body.light-theme .login-button {
  --color: white !important;
  color: white !important;
  --background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important;
  border: none !important;
}

body.light-theme .delete-scenario-btn {
  --color: #ff3b30 !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: transparent !important;
  --background-hover: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  --border-radius: 0 !important;
}

body.light-theme .delete-scenario-btn:hover {
  background: transparent !important;
  background-image: none !important;
}

body.light-theme .login-button ion-label,
body.light-theme .login-button span,
body.light-theme .login-button div,
body.light-theme .login-button * {
  color: white !important;
}

body.light-theme .delete-scenario-btn ion-label,
body.light-theme .delete-scenario-btn span,
body.light-theme .delete-scenario-btn div,
body.light-theme .delete-scenario-btn * {
  color: #ff3b30 !important;
}

body.light-theme .quick-actions .login-button {
  color: white !important;
}

body.light-theme .quick-actions .login-button * {
  color: white !important;
}

/* Light theme scrollbars */
body.light-theme .event-details::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .event-details::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3) !important;
}

body.light-theme .event-details::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5) !important;
}

body.light-theme .scenario-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .scenario-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3) !important;
}

body.light-theme .scenario-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Light theme form inputs */
body.light-theme .glass-input,
body.light-theme ion-input.glass-input {
  border: 1.5px solid #888 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111 !important;
}

body.light-theme .glass-input:focus,
body.light-theme ion-input.glass-input:focus {
  border-color: #6f3cc4 !important;
  outline: none !important;
}

body.light-theme .subscription-option {
  border: 1.5px solid #888 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111 !important;
}

body.light-theme .subscription-option.active {
  border: 2px solid #6f3cc4 !important;
  background: #f3eaff !important;
  color: #111 !important;
}

body.light-theme .login-button {
  --color: white !important;
  color: white !important;
  --background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important;
  border: none !important;
}

body.light-theme .login-title {
  color: #111 !important;
}

/* Light theme transaction page */
body.light-theme .transaction-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .transaction-title {
  color: #111 !important;
}

body.light-theme .back-button {
  --color: #111 !important;
  --color-hover: rgba(0, 0, 0, 0.8) !important;
}

body.light-theme .transaction-input-group ion-label {
  color: #111 !important;
}

body.light-theme .transaction-custom-input {
  background: rgba(0, 0, 0, 0.05) !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #111 !important;
  --border-color: rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .transaction-custom-input::-moz-placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

body.light-theme .transaction-custom-input::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

body.light-theme .transaction-custom-input:focus {
  border-color: #6f3cc4 !important;
  border: 2px solid #6f3cc4 !important;
  background: rgba(111, 60, 196, 0.05) !important;
  background-color: rgba(111, 60, 196, 0.05) !important;
  --border-color: #6f3cc4 !important;
}

body.light-theme .transaction-custom-input:focus::-moz-placeholder {
  color: rgba(0, 0, 0, 0.3) !important;
}

body.light-theme .transaction-custom-input:focus::placeholder {
  color: rgba(0, 0, 0, 0.3) !important;
}

body.light-theme .transaction-custom-input option {
  background: #fff !important;
  color: #111 !important;
}

body.light-theme .calculated-field {
  background: rgba(0, 0, 0, 0.05) !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

body.light-theme .calculated-field::-moz-placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

body.light-theme .calculated-field::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

/* Light theme date pickers */
body.light-theme .date-pickers-row ion-datetime {
  --background: #fff !important;
  --background-rgb: 255, 255, 255 !important;
  --wheel-highlight-background: #f0f0f0 !important;
  --wheel-fade-background-rgb: 255, 255, 255 !important;
  --color: #111 !important;
  --title-color: #111 !important;
  --placeholder-color: rgba(0, 0, 0, 0.5) !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  background: #fff !important;
  --wheel-background: #fff !important;
  --wheel-background-rgb: 255, 255, 255 !important;
}

body.light-theme .date-pickers-row ion-datetime::part(native) {
  color: #111 !important;
  background: transparent !important;
}

body.light-theme .date-pickers-row ion-datetime::part(placeholder) {
  color: rgba(0, 0, 0, 0.5) !important;
}

body.light-theme .date-pickers-row ion-datetime::part(calendar-day) {
  color: #111 !important;
}

/* Removed invalid ::part() selectors with spaces - not valid CSS syntax */
body.light-theme .date-pickers-row ion-datetime::part(wheel-container) {
  background: #fff !important;
  --background: #fff !important;
  --background-rgb: 255, 255, 255 !important;
}
body.light-theme .date-pickers-row ion-datetime::part(wheel) {
  background: #fff !important;
  --background: #fff !important;
  --background-rgb: 255, 255, 255 !important;
}

body.light-theme .date-pickers-row ion-datetime::part(wheel-item) {
  color: #111 !important;
  background: #fff !important;
  --background: #fff !important;
  --background-rgb: 255, 255, 255 !important;
}

/* Removed invalid ::part() selector with spaces - not valid CSS syntax */

body.light-theme .date-pickers-row ion-datetime * {
  color: #111 !important;
}

/* Removed ::part() followed by universal selector - causes minifier issues */

body.light-theme .date-pickers-row ion-datetime:focus-within {
  border-color: #6f3cc4 !important;
  background: #f8f5ff !important;
}

/* Light theme non-loan form */
body.light-theme .non-loan-fields-grid .transaction-custom-input {
  background: #fff !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  color: #111 !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}

body.light-theme .non-loan-fields-grid .transaction-custom-input:focus {
  border-color: #6f3cc4 !important;
  background: #f8f5ff !important;
  outline: none !important;
}

body.light-theme .non-loan-fields-grid .transaction-custom-input::-moz-placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

body.light-theme .non-loan-fields-grid .transaction-custom-input::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}


/* Light theme buttons */
body.light-theme .cancel-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  --background-activated: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-focused: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  height: 64px !important;
}

body.light-theme .cancel-button:hover {
  --background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

body.light-theme .save-button {
  --background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important;
  --color: white !important;
  flex: 1;
  height: 64px; /* reduced from 72px */
  font-weight: 700;
  border-radius: 12px;
  font-size: 1.1rem; /* reduced from 1.2rem */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

body.light-theme .delete-button {
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  --color: white !important;
  flex: 0 0 auto;
  height: 64px; /* reduced from 72px */
  font-weight: 700;
  border-radius: 12px;
  font-size: 1.1rem; /* reduced from 1.2rem */
  min-width: 120px; /* reverted from 140px */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Light theme loading and notifications */
body.light-theme .loading-text {
  color: #111 !important;
  opacity: 0.8 !important;
}

body.light-theme .loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1) !important;
  border-left: 4px solid #111 !important;
}

body.light-theme .toast-notification {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
}

body.light-theme .toast-notification.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%) !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
}

body.light-theme .toast-notification.error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(211, 47, 47, 0.9) 100%) !important;
  border-color: rgba(244, 67, 54, 0.3) !important;
}

body.light-theme .toast-message {
  color: white !important;
}

body.light-theme .toast-close {
  --color: white !important;
  --color-hover: rgba(255, 255, 255, 0.8) !important;
}

/* Light theme layout adjustments */
body.light-theme .main-content,
body.light-theme ion-content,
body.light-theme .welcome-content {
  background: white !important;
  --background: white !important;
  padding-left: 2rem !important;
}

body.light-theme .main-content.sidebar-open .chart-container,
body.light-theme .main-content.sidebar-open .date-range-filters {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

body.light-theme .register-link,
body.light-theme .register-link a {
  color: #111 !important;
}

body.light-theme .glass-input input,
body.light-theme ion-input input,
body.light-theme .glass-input,
body.light-theme ion-input {
  caret-color: #111 !important;
}

/* Light theme login form overrides */
body.light-theme .login-title {
  color: #333 !important;
}

body.light-theme .login-input-group ion-label {
  color: #333 !important;
}

body.light-theme .login-custom-input {
  background: #fff !important;
  background-color: #fff !important;
  border: 2px solid #ddd !important;
  border-color: #ddd !important;
  color: #333 !important;
  --border-color: #ddd !important;
}

body.light-theme .login-custom-input::-moz-placeholder {
  color: #999 !important;
}

body.light-theme .login-custom-input::placeholder {
  color: #999 !important;
}

body.light-theme .login-custom-input:focus {
  border-color: #6f3cc4 !important;
  border: 2px solid #6f3cc4 !important;
  background: #fff !important;
  background-color: #fff !important;
  --border-color: #6f3cc4 !important;
  box-shadow: 0 8px 25px rgba(111, 60, 196, 0.15) !important;
}

body.light-theme .login-custom-input:focus::-moz-placeholder {
  color: #666 !important;
}

body.light-theme .login-custom-input:focus::placeholder {
  color: #666 !important;
}

body.light-theme .remember-me {
  color: #555 !important;
}

body.light-theme .remember-me input[type="checkbox"] {
  accent-color: #6f3cc4 !important;
}

body.light-theme .forgot-link {
  color: #6f3cc4 !important;
}

body.light-theme .forgot-link:hover {
  color: #5a2da3 !important;
}

body.light-theme .login-button {
  --background: #6f3cc4 !important;
  --background-hover: #5a2da3 !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(111, 60, 196, 0.3) !important;
}

body.light-theme .login-button:not(.loading):hover {
  box-shadow: 0 8px 25px rgba(111, 60, 196, 0.4) !important;
}

body.light-theme .register-link {
  color: #555 !important;
}

body.light-theme .register-link a {
  color: #6f3cc4 !important;
}

body.light-theme .register-link a:hover {
  color: #5a2da3 !important;
}

/* Light Theme User Settings */
body.light-theme .user-settings-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .user-settings-title {
  color: #333 !important;
}

body.light-theme .user-input-group ion-label {
  color: #333 !important;
}

body.light-theme .user-custom-input {
  background: #fff !important;
  background-color: #fff !important;
  border: 2px solid #ddd !important;
  border-color: #ddd !important;
  color: #333 !important;
  --border-color: #ddd !important;
}

body.light-theme .user-custom-input::-moz-placeholder {
  color: #999 !important;
}

body.light-theme .user-custom-input::placeholder {
  color: #999 !important;
}

body.light-theme .user-custom-input:focus {
  border-color: #6f3cc4 !important;
  border: 2px solid #6f3cc4 !important;
  background: #fff !important;
  background-color: #fff !important;
  --border-color: #6f3cc4 !important;
}

body.light-theme .user-custom-input:focus::-moz-placeholder {
  color: #666 !important;
}

body.light-theme .user-custom-input:focus::placeholder {
  color: #666 !important;
}

body.light-theme .user-custom-input option {
  background: #fff !important;
  color: #333 !important;
}

body.light-theme .subscription-toggle {
  background: #f5f5f5 !important;
}

body.light-theme .subscription-option {
  color: #333 !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
}

body.light-theme .subscription-option.active {
  background: #f0e6ff !important;
  border: 2px solid rgba(102, 126, 234, 0.6) !important;
  color: #333 !important;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5), 
              0 0 40px rgba(118, 75, 162, 0.3),
              0 0 60px rgba(240, 147, 251, 0.2),
              0 0 8px rgba(111, 60, 196, 0.2) !important;
  position: relative !important;
}

body.light-theme .subscription-option.active::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%) !important;
  border-radius: 8px !important;
  z-index: -1 !important;
  opacity: 0.25 !important;
  filter: blur(8px) !important;
}

body.light-theme .subscription-option:hover:not(.active) {
  background: #f8f8f8 !important;
  border-color: #bbb !important;
}

body.light-theme .option-title {
  color: #333 !important;
}

body.light-theme .option-price {
  color: #666 !important;
}

body.light-theme .feature-item {
  color: #555 !important;
}

body.light-theme .feature-icon {
  color: #4CAF50 !important;
}

body.light-theme .feature-icon.warning {
  color: #FF9800 !important;
}

/* Light Theme Profile Settings */
body.light-theme .profile-settings-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .profile-settings-title {
  color: #333 !important;
}

body.light-theme .profile-input-group ion-label {
  color: #333 !important;
}

body.light-theme .profile-custom-input {
  background: #fff !important;
  background-color: #fff !important;
  border: 2px solid #ddd !important;
  border-color: #ddd !important;
  color: #333 !important;
  --border-color: #ddd !important;
}

body.light-theme .profile-custom-input::-moz-placeholder {
  color: #999 !important;
}

body.light-theme .profile-custom-input::placeholder {
  color: #999 !important;
}

body.light-theme .profile-custom-input:focus {
  border-color: #6f3cc4 !important;
  border: 2px solid #6f3cc4 !important;
  background: #fff !important;
  background-color: #fff !important;
  --border-color: #6f3cc4 !important;
}

body.light-theme .profile-custom-input:focus::-moz-placeholder {
  color: #666 !important;
}

body.light-theme .profile-custom-input:focus::placeholder {
  color: #666 !important;
}

body.light-theme .profile-custom-input option {
  background: #fff !important;
  color: #333 !important;
}

/* Light Theme Create Scenario Page */
body.light-theme .create-scenario-card {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .create-scenario-page-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .create-scenario-page-title {
  color: #333 !important;
}

body.light-theme .create-scenario-input-group ion-label {
  color: #333 !important;
}

body.light-theme .create-scenario-custom-input {
  background: #ffffff !important;
  border: 2px solid #d1d5db !important;
  color: #333 !important;
  --border-color: #d1d5db !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  caret-color: #333 !important;
}

body.light-theme .create-scenario-custom-input:not(:focus) {
  color: #333 !important;
  --color: #333 !important;
}

body.light-theme .create-scenario-custom-input:focus {
  border-color: #6f3cc4 !important;
  border-width: 2px !important;
  background: #ffffff !important;
  --border-color: #6f3cc4 !important;
  box-shadow: 0 0 0 3px rgba(111, 60, 196, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  color: #333 !important;
  --color: #333 !important;
  caret-color: #333 !important;
}

body.light-theme .create-scenario-custom-input::-moz-placeholder {
  color: #666 !important;
}

body.light-theme .create-scenario-custom-input::placeholder {
  color: #666 !important;
}

body.light-theme .create-scenario-custom-input:focus::-moz-placeholder {
  color: #999 !important;
}

body.light-theme .create-scenario-custom-input:focus::placeholder {
  color: #999 !important;
}

body.light-theme .create-scenario-cancel-button {
  --color: #333 !important;
  --border-color: #333 !important;
  --border-width: 1px !important;
  --background: rgba(0, 0, 0, 0.1) !important;
  --background-hover: rgba(0, 0, 0, 0.2) !important;
  background: rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #333 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
  height: 56px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
}

body.light-theme .create-scenario-create-button {
  --background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  --color: white !important;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
  border: none !important;
  height: 56px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
}

/* Light Theme Delete Scenario Page */
body.light-theme .delete-scenario-card {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .delete-scenario-page-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .delete-scenario-page-title {
  color: #333 !important;
}

body.light-theme .delete-scenario-info {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .delete-scenario-name {
  color: #333 !important;
}

body.light-theme .delete-scenario-description {
  color: #666 !important;
}

body.light-theme .delete-scenario-warning-section {
  background: rgba(255, 59, 48, 0.1) !important;
  border: 1px solid rgba(255, 59, 48, 0.3) !important;
}

body.light-theme .delete-scenario-warning-icon {
  color: #ff3b30 !important;
}

body.light-theme .delete-scenario-warning-title {
  color: #ff3b30 !important;
}

body.light-theme .delete-scenario-warning-message {
  color: #333 !important;
}

body.light-theme .delete-scenario-warning-question {
  color: #555 !important;
}

body.light-theme .delete-scenario-cancel-button {
  --color: #333 !important;
  --border-color: rgba(0, 0, 0, 0.2) !important;
  --background: transparent !important;
  --background-hover: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .delete-scenario-delete-button {
  --background: #ff3b30 !important;
  --background-hover: #ff453a !important;
  --color: white !important;
}

body.light-theme .toast-notification {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .toast-notification.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.95) 0%, rgba(56, 142, 60, 0.95) 100%) !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
}

body.light-theme .toast-notification.error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.95) 0%, rgba(211, 47, 47, 0.95) 100%) !important;
  border-color: rgba(244, 67, 54, 0.3) !important;
}

/* Light theme sidebar overrides */
body.light-theme .sidebar {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
}

body.light-theme .sidebar-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .profile-icon {
  color: #333 !important;
}

body.light-theme .profile-details h3 {
  color: #333 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

body.light-theme .profile-details p {
  color: #666 !important;
}

body.light-theme .nav-section-header:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .nav-section-title {
  color: #666 !important;
}

body.light-theme .nav-section-toggle {
  color: #666 !important;
}

body.light-theme .nav-item {
  color: #333 !important;
}

body.light-theme .nav-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-left-color: rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .nav-item.active {
  background: rgba(111, 60, 196, 0.1) !important;
  border-left-color: #6f3cc4 !important;
  color: #333 !important;
}

body.light-theme .nav-label {
  color: #333 !important;
}

body.light-theme .nav-icon {
  color: #333 !important;
}

body.light-theme .profile-list {
  border-left: 2px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .profile-item {
  color: #555 !important;
}

body.light-theme .profile-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #333 !important;
}

body.light-theme .profile-item.active-profile {
  background: rgba(111, 60, 196, 0.1) !important;
  color: #333 !important;
  border-left: 2px solid #6f3cc4 !important;
}

body.light-theme .profile-item-icon {
  color: #333 !important;
}

body.light-theme .profile-item-label {
  color: #333 !important;
}

body.light-theme .no-profiles {
  color: #999 !important;
}

body.light-theme .no-profiles-text {
  color: #999 !important;
}

body.light-theme .sidebar-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .logout-item {
  color: #dc3545 !important;
}

body.light-theme .logout-item:hover {
  background: rgba(220, 53, 69, 0.1) !important;
  border-left-color: #dc3545 !important;
}

body.light-theme .logout-item .nav-icon {
  color: #dc3545 !important;
}

body.light-theme .sidebar-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3) !important;
}

body.light-theme .sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* ========================================
   DARK THEME STYLES
   ======================================== */

/* Dark theme base styles */
body.dark-theme,
.dark-theme .ion-page,
.dark-theme .glass-card,
.dark-theme .settings-container,
.dark-theme .settings-form,
.dark-theme .ion-content,
.dark-theme .background-scene,
.dark-theme .subscription-option,
.dark-theme .input-group,
.dark-theme .glass-input {
  background: #1a1a1a !important;
  color: #e0e0e0 !important;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
}

body.dark-theme .ion-label,
body.dark-theme label {
  color: #e0e0e0 !important;
}

/* Dark theme background scene */
body.dark-theme .background-scene {
  background: #1a1a1a !important;
}

body.dark-theme .stars {
  opacity: 0;
  animation: none !important;
}

/* Dark theme dashboard components */
body.dark-theme .main-content {
  background: #1a1a1a !important;
}

body.dark-theme .dashboard-content {
  background: #1a1a1a !important;
}

body.dark-theme .glass-card {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .stat-card {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .chart-card {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .scenarios-card {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .data-table-card {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .stat-content h3,
body.dark-theme .chart-title,
body.dark-theme .scenarios-subtitle,
body.dark-theme .date-label,
body.dark-theme .table-header h3 {
  color: #e0e0e0 !important;
}

body.dark-theme .stat-value {
  color: #f0f0f0 !important;
}

body.dark-theme .scenario-label,
body.dark-theme .nav-label {
  color: #e0e0e0 !important;
}

/* Dark theme data tables */
body.dark-theme .data-table {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
}

body.dark-theme .data-table th {
  background: linear-gradient(135deg, rgba(65, 65, 65, 0.9) 0%, rgba(50, 50, 50, 0.9) 100%) !important;
  color: #e0e0e0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .data-table td {
  color: #e0e0e0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .data-table tr:hover {
  background: rgba(60, 60, 60, 0.5) !important;
}

/* Dark theme select inputs */
body.dark-theme .date-select {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e0e0e0 !important;
  --background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  --color: #e0e0e0 !important;
  --placeholder-color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .date-select::part(text),
body.dark-theme .date-select::part(placeholder),
body.dark-theme .date-select::part(icon) {
  color: #e0e0e0 !important;
}

body.dark-theme .date-select::part(native) {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  color: #e0e0e0 !important;
}

body.dark-theme ion-select {
  --background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  --color: #e0e0e0 !important;
  --placeholder-color: rgba(224, 224, 224, 0.7) !important;
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme ion-select::part(text),
body.dark-theme ion-select::part(placeholder),
body.dark-theme ion-select::part(icon) {
  color: #e0e0e0 !important;
}

body.dark-theme ion-select::part(native) {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  color: #e0e0e0 !important;
}

/* Dark theme scenario items */
body.dark-theme .scenario-item {
  background: rgba(42, 42, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .scenario-item:hover {
  background: rgba(60, 60, 60, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
body.dark-theme .default-scenario {
  background: rgba(60, 60, 60, 0.3) !important;
  border: 1px solid rgba(100, 100, 100, 0.3) !important;
}

body.dark-theme .default-scenario:hover {
  background: rgba(60, 60, 60, 0.3) !important;
}

body.dark-theme .default-scenario-icon {
  color: #4CAF50 !important;
}

body.dark-theme .table-content {
  background: rgba(42, 42, 42, 0.5) !important;
}
/* Dark theme colors */
body.dark-theme .positive {
  color: rgba(144, 238, 144, 1) !important;
}

body.dark-theme .negative {
  color: rgba(255, 160, 122, 1) !important;
}

body.dark-theme .data-table .positive,
body.dark-theme .data-table td.positive {
  color: #34c759 !important;
}

body.dark-theme .data-table .negative,
body.dark-theme .data-table td.negative {
  color: #DC143C !important;
}

/* Dark theme toggles */
body.dark-theme ion-toggle {
  --background: rgba(60, 60, 60, 0.8) !important;
  --background-checked: #667eea !important;
  --handle-background: #e0e0e0 !important;
  --handle-background-checked: #e0e0e0 !important;
}

body.dark-theme ion-toggle:hover {
  --background: rgba(80, 80, 80, 0.8) !important;
  --background-checked: #764ba2 !important;
}

/* Dark theme popovers */
body.dark-theme .custom-popover {
  --background: rgba(64, 64, 64, 0.95) !important;
}

body.dark-theme .custom-popover ion-item {
  --background: transparent !important;
  --color: #e0e0e0 !important;
  --background-hover: rgba(60, 60, 60, 0.5) !important;
}

body.dark-theme ion-popover {
  --background: rgba(64, 64, 64, 0.95) !important;
}

body.dark-theme ion-popover ion-item {
  --background: transparent !important;
  --color: #e0e0e0 !important;
  --background-hover: rgba(60, 60, 60, 0.5) !important;
}

/* Dark theme transaction page */
body.dark-theme .transaction-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .transaction-title {
  color: #e0e0e0 !important;
}

body.dark-theme .back-button {
  --color: #e0e0e0 !important;
  --color-hover: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .transaction-input-group ion-label {
  color: #e0e0e0 !important;
}

/* Force dark theme to use base styling with gradient */
body.dark-theme .left-column .transaction-custom-input,
body.dark-theme .right-column .transaction-custom-input {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  min-height: 60px !important; /* Increased height for wider appearance */
  padding: 20px 24px !important; /* Increased padding for wider appearance */
  font-size: 1.1rem !important; /* Slightly larger font for better proportion */
  border-radius: 12px !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Date input base styling to match custom inputs */
.transaction-custom-input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  position: relative;
}

/* Improve readability of date text */
.transaction-custom-input[type="date"]::-webkit-datetime-edit,
.transaction-custom-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.transaction-custom-input[type="date"]::-webkit-datetime-edit-text,
.transaction-custom-input[type="date"]::-webkit-datetime-edit-month-field,
.transaction-custom-input[type="date"]::-webkit-datetime-edit-day-field,
.transaction-custom-input[type="date"]::-webkit-datetime-edit-year-field {
  color: inherit;
}

/* Calendar icon color to match theme */
.transaction-custom-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.85;
  cursor: pointer;
}

/* Dark theme specific styling for date input */
body.dark-theme .transaction-custom-input[type="date"] {
  color-scheme: dark;
}

body.dark-theme .transaction-custom-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4) contrast(1.2) !important;
  opacity: 1 !important;
}

/* Increase specificity for some browsers to ensure white icon in dark theme */
body.dark-theme .transaction-input-group input.transaction-custom-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4) contrast(1.2) !important;
}

/* Fallback: hide native icon and draw our own white calendar icon in dark theme */
body.dark-theme .transaction-input-group {
  position: relative;
}

/* Revert custom background icon to avoid sizing differences */
body.dark-theme .transaction-input-group input.transaction-custom-input[type="date"] {
  background-image: none !important;
  padding-right: 16px !important;
}

/* Make the native indicator transparent so only our icon shows, but keep click behavior */
/* Force white icon by drawing our own on the native indicator */
body.dark-theme .transaction-input-group input.transaction-custom-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1 !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  filter: none !important;
  -webkit-filter: none !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Crect x=%273%27 y=%274%27 width=%2718%27 height=%2718%27 rx=%272%27 ry=%272%27/%3E%3Cline x1=%2716%27 y1=%272%27 x2=%2716%27 y2=%276%27/%3E%3Cline x1=%278%27 y1=%272%27 x2=%278%27 y2=%276%27/%3E%3Cline x1=%273%27 y1=%2710%27 x2=%2721%27 y2=%2710%27/%3E%3C/svg%3E") !important;
}

/* Light theme specific styling for date input */
body.light-theme .transaction-custom-input[type="date"] {
  color-scheme: light;
}

body.light-theme .transaction-custom-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}

/* Remove dark theme overrides to use base styling with gradient */

body.dark-theme .calculated-field {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(224, 224, 224, 0.6) !important;
}

body.dark-theme .calculated-field::-moz-placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}

body.dark-theme .calculated-field::placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}

/* Dark theme date pickers */
body.dark-theme .date-pickers-row ion-datetime {
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
  --wheel-highlight-background: #3C3C3C !important;
  --wheel-fade-background-rgb: 44, 44, 44 !important;
  --color: #e0e0e0 !important;
  --title-color: #e0e0e0 !important;
  --placeholder-color: rgba(224, 224, 224, 0.7) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  background: #2C2C2C !important;
  --wheel-background: #2C2C2C !important;
  --wheel-background-rgb: 44, 44, 44 !important;
}

body.dark-theme .date-pickers-row ion-datetime::part(native) {
  color: #e0e0e0 !important;
  background: transparent !important;
}

body.dark-theme .date-pickers-row ion-datetime::part(placeholder) {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .date-pickers-row ion-datetime::part(calendar-day) {
  color: #e0e0e0 !important;
}

/* Removed invalid ::part() selectors with spaces - not valid CSS syntax */

body.dark-theme .date-pickers-row ion-datetime::part(wheel-container) {
  background: #2C2C2C !important;
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
}

body.dark-theme .date-pickers-row ion-datetime::part(wheel) {
  background: #2C2C2C !important;
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
}

body.dark-theme .date-pickers-row ion-datetime::part(wheel-item) {
  color: #e0e0e0 !important;
  background: #2C2C2C !important;
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
}

/* Removed invalid ::part() selector with spaces - not valid CSS syntax */

body.dark-theme .date-pickers-row ion-datetime * {
  color: #e0e0e0 !important;
}

/* Removed ::part() followed by universal selector - causes minifier issues */

body.dark-theme .date-pickers-row ion-datetime:focus-within {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: #3C3C3C !important;
}

/* Dark theme non-loan form */
body.dark-theme .non-loan-fields-grid .transaction-custom-input {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
}

body.dark-theme .non-loan-fields-grid .transaction-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: #3C3C3C !important;
  outline: none !important;
}

body.dark-theme .non-loan-fields-grid .transaction-custom-input::-moz-placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}

body.dark-theme .non-loan-fields-grid .transaction-custom-input::placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}


/* Default (dark) theme non-loan form */
body:not(.light-theme) .non-loan-fields-grid .transaction-custom-input {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
}

body:not(.light-theme) .non-loan-fields-grid .transaction-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: #3C3C3C !important;
  outline: none !important;
}

body:not(.light-theme) .non-loan-fields-grid .transaction-custom-input::-moz-placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}

body:not(.light-theme) .non-loan-fields-grid .transaction-custom-input::placeholder {
  color: rgba(224, 224, 224, 0.4) !important;
}


/* Dark theme buttons */
body.dark-theme .cancel-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  --background-activated: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-focused: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
  height: 64px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
}

body.dark-theme .cancel-button:hover {
  --background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

body.dark-theme .save-button {
  --background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  height: 64px !important; /* reduced from 72px */
  font-weight: 600 !important;
  font-size: 1.1rem !important; /* reduced from 1.2rem */
  transition: all 0.3s ease !important;
}

body.dark-theme .delete-button {
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
}

/* Dark theme loading and notifications */
body.dark-theme .loading-text {
  color: #e0e0e0 !important;
  opacity: 0.8 !important;
}

body.dark-theme .loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.1) !important;
  border-left: 4px solid #e0e0e0 !important;
}

body.dark-theme .toast-notification {
  background: rgba(0, 0, 0, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
}

body.dark-theme .toast-notification.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%) !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
}

body.dark-theme .toast-notification.error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(211, 47, 47, 0.9) 100%) !important;
  border-color: rgba(244, 67, 54, 0.3) !important;
}

body.dark-theme .toast-message {
  color: white !important;
}

body.dark-theme .toast-close {
  --color: white !important;
  --color-hover: rgba(255, 255, 255, 0.8) !important;
}

/* Dark theme calendar */
body.dark-theme .background-scene {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

body.dark-theme .stars {
  opacity: 0 !important;
}

body.dark-theme .mountains {
  opacity: 0.3 !important;
}

body.dark-theme .calendar-container {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.05) 0%, rgba(30, 30, 30, 0.05) 100%) !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
  max-width: calc(100% - 380px) !important;
}

body.dark-theme .calendar-day {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .calendar-day.current-month {
  background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .calendar-day.has-events {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

body.dark-theme .calendar-day:not(.current-month) {
  opacity: 0.4 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .calendar-day:not(.current-month):hover {
  opacity: 0.6 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .calendar-day.today {
  border: 3px solid rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .event-item.positive {
  color: rgba(144, 238, 144, 1) !important;
}

body.dark-theme .event-item.negative {
  color: rgba(255, 160, 122, 1) !important;
}

body.dark-theme .flow-amount.positive {
  color: rgba(144, 238, 144, 1) !important;
}

body.dark-theme .flow-amount.negative {
  color: rgba(255, 160, 122, 1) !important;
}

body.dark-theme .section-title {
  color: #e0e0e0 !important;
}

body.dark-theme .flow-label {
  color: #e0e0e0 !important;
}

body.dark-theme .month-title {
  color: #e0e0e0 !important;
}

body.dark-theme .calendar-day-header {
  color: #e0e0e0 !important;
  background: rgba(45, 45, 45, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.dark-theme .nav-button {
  --color: #e0e0e0 !important;
}

body.dark-theme .back-button {
  --color: #e0e0e0 !important;
}

body.dark-theme .back-button:hover {
  --color: rgba(224, 224, 224, 0.8) !important;
}

/* Dark theme login form overrides */
body.dark-theme .login-title {
  color: #e0e0e0 !important;
}

body.dark-theme .login-input-group ion-label {
  color: #e0e0e0 !important;
}

body.dark-theme .login-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #e0e0e0 !important;
  --border-color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-theme .login-custom-input::-moz-placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .login-custom-input::placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .login-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-theme .login-custom-input:focus::-moz-placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .login-custom-input:focus::placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .remember-me {
  color: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .remember-me input[type="checkbox"] {
  accent-color: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .forgot-link {
  color: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .forgot-link:hover {
  color: white !important;
}

body.dark-theme .login-button {
  --background-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

body.dark-theme .login-button:not(.loading):hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

body.dark-theme .register-link {
  color: rgba(224, 224, 224, 0.9) !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .register-link a {
  color: #667eea !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

body.dark-theme .register-link a:hover {
  color: #764ba2 !important;
  text-decoration: none !important;
}

/* Dark theme sidebar overrides */
body.dark-theme .sidebar {
  background: #333333 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .profile-details h3 {
  color: #ffffff !important;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8) !important;
  font-weight: 700 !important;
}

body.dark-theme .profile-details p {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-theme .profile-icon {
  color: #ffffff !important;
}

/* Dark theme calendar page specific styles */
body.dark-theme .background-scene {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

body.dark-theme .stars {
  opacity: 0 !important;
}

body.dark-theme .mountains {
  opacity: 0.3 !important;
}

/* Dark theme sidebar */
body.dark-theme .sidebar {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .back-button-container {
  border-bottom: none !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  position: relative !important;
}

body.dark-theme .back-button-container::after {
  content: '' !important;
  position: absolute !important;
  bottom: -3rem !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .back-button {
  --color: #e0e0e0 !important;
  --color-hover: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .back-button:hover {
  --color: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .section-title {
  color: #e0e0e0 !important;
}

body.dark-theme .cash-flow-item {
  color: #e0e0e0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .flow-label {
  color: #e0e0e0 !important;
}

body.dark-theme .flow-amount {
  color: #e0e0e0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.dark-theme .flow-amount.positive {
  color: rgba(144, 238, 144, 1) !important;
}

body.dark-theme .flow-amount.negative {
  color: rgba(255, 160, 122, 1) !important;
}

/* Dark theme calendar container */
body.dark-theme .calendar-container {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.05) 0%, rgba(30, 30, 30, 0.05) 100%) !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
  max-width: calc(100% - 380px) !important;
}

body.dark-theme .month-title {
  color: #e0e0e0 !important;
}

body.dark-theme .nav-button {
  --color: #e0e0e0 !important;
  --color-hover: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .nav-button:hover {
  --color: rgba(224, 224, 224, 0.8) !important;
}

/* Dark theme calendar grid */
body.dark-theme .calendar-day-header {
  color: #e0e0e0 !important;
  background: rgba(45, 45, 45, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .calendar-day {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e0e0e0 !important;
}

body.dark-theme .calendar-day.current-month {
  background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%) !important;
}

body.dark-theme .calendar-day.has-events {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

body.dark-theme .calendar-day:not(.current-month) {
  opacity: 0.4 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .calendar-day:not(.current-month):hover {
  opacity: 0.6 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Dark theme event items */
body.dark-theme .event-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .event-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .event-item.positive {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  color: white !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

body.dark-theme .event-item.negative {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  color: white !important;
  border-color: rgba(255, 107, 107, 0.3) !important;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
}

body.dark-theme .event-name,
body.dark-theme .event-amount {
  color: inherit !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Dark theme scenarios section */
body.dark-theme .scenarios-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .scenarios-icon {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-theme .scenarios-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-theme .trigger-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-theme .active-scenario-name {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.dark-theme .scenario-dropdown-trigger {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .scenario-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-theme .scenario-dropdown-menu {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .scenario-dropdown-item {
  color: #e0e0e0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .scenario-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .scenario-dropdown-item.active {
  background: rgba(76, 175, 80, 0.1) !important;
  border-color: rgba(76, 175, 80, 0.2) !important;
}

body.dark-theme .scenario-label {
  color: #e0e0e0 !important;
}

body.dark-theme .active-scenario-icon {
  color: #4caf50 !important;
}

body.dark-theme .create-scenario-dropdown-item {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .create-scenario-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark theme quick actions */
body.dark-theme .quick-actions {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 1.5rem !important;
}

body.dark-theme .quick-actions .section-title {
  color: #e0e0e0 !important;
  font-weight: 500 !important;
  margin-bottom: 0.8rem !important;
}
body.dark-theme .login-button {
  --color: white !important;
  color: white !important;
  --background: linear-gradient(180deg, #9c5bdb 0%, #6f3cc4 100%) !important;
  --background-hover: linear-gradient(180deg, #8a4bc8 0%, #5e2da3 100%) !important;
  border: none !important;
}
body.dark-theme .delete-scenario-btn {
  --color: #ff3b30 !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: transparent !important;
  --background-hover: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  --border-radius: 0 !important;
}

body.dark-theme .delete-scenario-btn:hover {
  background: transparent !important;
  background-image: none !important;
}

body.dark-theme .login-button ion-label,
body.dark-theme .login-button span,
body.dark-theme .login-button div,
body.dark-theme .login-button * {
  color: white !important;
}

body.dark-theme .delete-scenario-btn ion-label,
body.dark-theme .delete-scenario-btn span,
body.dark-theme .delete-scenario-btn div,
body.dark-theme .delete-scenario-btn * {
  color: white !important;
}

/* Dark theme delete scenario button icon */
body.dark-theme .delete-scenario-btn ion-icon {
  color: #ff3b30 !important;
  --color: #ff3b30 !important;
}

/* Dark theme scrollbars */
body.dark-theme .event-details::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .event-details::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .event-details::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

body.dark-theme .scenario-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .scenario-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .scenario-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

body.dark-theme .nav-item.active {
  background: rgba(100, 100, 100, 0.3) !important;
  border-left-color: rgba(150, 150, 150, 0.8) !important;
}

body.dark-theme .profile-item.active-profile {
  background: rgba(100, 100, 100, 0.2) !important;
  border-left: 2px solid rgba(150, 150, 150, 0.8) !important;
}

/* Remove mountains background in dark theme */
body.dark-theme .mountains {
  display: none !important;
}

/* Calendar sidebar styling to match dashboard sidebar */
body.dark-theme .calendar-layout .sidebar {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(60, 60, 60, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  height: 100vh !important;
  margin: 0 !important;
}

/* Dark Theme User Settings */
body.dark-theme .user-settings-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .user-settings-title {
  color: #e0e0e0 !important;
}

body.dark-theme .user-input-group ion-label {
  color: #e0e0e0 !important;
}

body.dark-theme .user-custom-input,
body.dark-theme .user-custom-input[type="text"],
body.dark-theme .user-custom-input[type="email"],
body.dark-theme .user-custom-input[type="password"] {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #e0e0e0 !important;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.1) !important;
  -webkit-box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .user-custom-input::-moz-placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .user-custom-input::placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .user-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-theme .user-custom-input:focus::-moz-placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .user-custom-input:focus::placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .user-custom-input option {
  background: #2C2C2C !important;
  color: #e0e0e0 !important;
}

/* Dark theme specific overrides for password fields - use box-shadow inset trick */
body.dark-theme .user-custom-input[type="password"],
body.dark-theme .user-custom-input.password-input,
body.dark-theme input.user-custom-input[type="password"],
body.dark-theme input.password-input,
body.dark-theme input[type="password"].user-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
       appearance: none !important;
  box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.1) !important;
  -webkit-box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.1) !important;
  background-image: none !important;
}

body.dark-theme .user-custom-input[type="password"]:-webkit-autofill,
body.dark-theme .user-custom-input[type="password"]:-webkit-autofill:hover,
body.dark-theme .user-custom-input[type="password"]:-webkit-autofill:focus,
body.dark-theme .user-custom-input[type="password"]:-webkit-autofill:active,
body.dark-theme .user-custom-input.password-input:-webkit-autofill,
body.dark-theme .user-custom-input.password-input:-webkit-autofill:hover,
body.dark-theme .user-custom-input.password-input:-webkit-autofill:focus,
body.dark-theme .user-custom-input.password-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .user-custom-input[type="password"]:focus,
body.dark-theme .user-custom-input.password-input:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.15) !important;
  -webkit-box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.15) !important;
}

body.dark-theme .subscription-toggle {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .subscription-option {
  color: #e0e0e0 !important;
  background: rgba(50, 50, 50, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .subscription-option.active {
  background: rgba(60, 60, 60, 0.9) !important;
  border: 2px solid rgba(102, 126, 234, 0.6) !important;
  color: #e0e0e0 !important;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 
              0 0 40px rgba(118, 75, 162, 0.4),
              0 0 60px rgba(240, 147, 251, 0.3),
              0 0 8px rgba(255, 255, 255, 0.2) !important;
  position: relative !important;
}

body.dark-theme .subscription-option.active::before {
  content: '' !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  right: -2px !important;
  bottom: -2px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%) !important;
  border-radius: 8px !important;
  z-index: -1 !important;
  opacity: 0.3 !important;
  filter: blur(8px) !important;
}

body.dark-theme .subscription-option:hover:not(.active) {
  background: rgba(70, 70, 70, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .option-title {
  color: #e0e0e0 !important;
}

body.dark-theme .option-price {
  color: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .feature-item {
  color: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .feature-icon {
  color: #4CAF50 !important;
}

body.dark-theme .feature-icon.warning {
  color: #FF9800 !important;
}

/* Dark Theme Profile Settings */
body.dark-theme .profile-settings-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .profile-settings-title {
  color: #e0e0e0 !important;
}

body.dark-theme .profile-input-group ion-label {
  color: #e0e0e0 !important;
}

body.dark-theme .profile-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #e0e0e0 !important;
  --border-color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-theme .profile-custom-input::-moz-placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .profile-custom-input::placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .profile-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-theme .profile-custom-input:focus::-moz-placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .profile-custom-input:focus::placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .profile-custom-input option {
  background: #2C2C2C !important;
  color: #e0e0e0 !important;
}

/* Dark Theme Profile Settings Buttons */
body.dark-theme .add-button {
  --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  --background-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 56px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
}

body.dark-theme .add-button:hover {
  --background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  background-image: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

body.dark-theme .save-button {
  --background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  --color: white !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  background-image: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 64px !important; /* reduced from 72px */
  font-weight: 600 !important;
  font-size: 1.1rem !important; /* reduced from 1.2rem */
  transition: all 0.3s ease !important;
}

body.dark-theme .save-button:hover {
  --background: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  background-image: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4) !important;
}

body.dark-theme .cancel-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  --background-activated: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-focused: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
  height: 64px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
}

body.dark-theme .cancel-button:hover {
  --background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

body.dark-theme .delete-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 64px !important; /* reduced from 72px */
  font-weight: 700 !important;
  font-size: 1.1rem !important; /* reduced from 1.2rem */
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

body.dark-theme .delete-button:hover {
  --background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

/* Sign Out Button Styling - Same as Delete Button */
.logout-item {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  --background-activated: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-focused: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 64px !important; /* reduced from 72px */
  font-weight: 700 !important;
  font-size: 1.1rem !important; /* reduced from 1.2rem */
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0.5rem 0.5rem !important;
  padding: 0.875rem 1.5rem !important;
  width: calc(100% - 1rem) !important;
  min-width: 200px !important;
}

.logout-item:hover {
  --background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

.logout-item .nav-icon {
  color: white !important;
  font-size: 1.2rem !important;
  min-width: 1.2rem !important;
}

.logout-item .nav-label {
  color: white !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Force red gradient for delete button in all themes */
.delete-button,
ion-button.delete-button,
.profile-settings-form .delete-button,
.action-buttons-group .delete-button,
.profile-form-actions .delete-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  --background-activated: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-focused: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 64px !important; /* reduced from 64px */
  font-weight: 700 !important;
  font-size: 1.1rem !important; /* reduced from 1.2rem */
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  flex: 1 !important;
}

.delete-button:hover,
ion-button.delete-button:hover,
.profile-settings-form .delete-button:hover,
.action-buttons-group .delete-button:hover,
.profile-form-actions .delete-button:hover {
  --background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

/* Ultra-specific override to ensure red background */
/* Split into separate selectors to avoid minifier issues */
.delete-button::part(native) {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

ion-button.delete-button::part(native) {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

/* Dark Theme Create Scenario Page */
body.dark-theme .create-scenario-card {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

body.dark-theme .create-scenario-page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .create-scenario-page-title {
  color: #e0e0e0 !important;
}

body.dark-theme .create-scenario-input-group ion-label {
  color: #e0e0e0 !important;
}

body.dark-theme .create-scenario-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #e0e0e0 !important;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  caret-color: #e0e0e0 !important;
}

body.dark-theme .create-scenario-custom-input:not(:focus) {
  color: #e0e0e0 !important;
  --color: #e0e0e0 !important;
}

body.dark-theme .create-scenario-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.8) !important;
  border-width: 2px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  color: #e0e0e0 !important;
  --color: #e0e0e0 !important;
  caret-color: #e0e0e0 !important;
}

body.dark-theme .create-scenario-custom-input::-moz-placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .create-scenario-custom-input::placeholder {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .create-scenario-custom-input:focus::-moz-placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .create-scenario-custom-input:focus::placeholder {
  color: rgba(224, 224, 224, 0.5) !important;
}

body.dark-theme .create-scenario-cancel-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 56px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
}

body.dark-theme .create-scenario-cancel-button:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
}

body.dark-theme .create-scenario-create-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  background-image: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 56px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease !important;
}

body.dark-theme .create-scenario-create-button:hover {
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  background-image: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
}

/* Dark Theme Delete Scenario Page */
body.dark-theme .delete-scenario-card {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

body.dark-theme .delete-scenario-page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .delete-scenario-page-title {
  color: #e0e0e0 !important;
}

body.dark-theme .delete-scenario-info {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .delete-scenario-name {
  color: #e0e0e0 !important;
}

body.dark-theme .delete-scenario-description {
  color: rgba(224, 224, 224, 0.7) !important;
}

body.dark-theme .delete-scenario-warning-section {
  background: rgba(255, 59, 48, 0.1) !important;
  border: 1px solid rgba(255, 59, 48, 0.3) !important;
}

body.dark-theme .delete-scenario-warning-icon {
  color: #ff3b30 !important;
}

body.dark-theme .delete-scenario-warning-title {
  color: #ff3b30 !important;
}

body.dark-theme .delete-scenario-warning-message {
  color: #e0e0e0 !important;
}

body.dark-theme .delete-scenario-warning-question {
  color: rgba(224, 224, 224, 0.8) !important;
}

body.dark-theme .delete-scenario-cancel-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 52px !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

body.dark-theme .delete-scenario-cancel-button:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
}

body.dark-theme .delete-scenario-delete-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  background-image: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  --border-radius: 12px !important;
  height: 52px !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

body.dark-theme .delete-scenario-delete-button:hover {
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  background-image: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 480px) {
    .glass-card {
        padding: 2rem;
    }

    .login-title {
        font-size: 1.75rem;
    }
    
    .login-container {
        padding: 0 1rem;
    }
    
    .options-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* User Settings Small Screen */
    .user-settings-title {
        font-size: 1.75rem;
    }
    
    /* Profile Settings Small Screen */
    .profile-settings-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 0 1.5rem;
        min-height: 50vh;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    /* User Settings Responsive */
    .form-fields-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .user-settings-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .back-button {
        position: static;
        align-self: flex-start;
    }
    
    .user-settings-title {
        font-size: 2rem;
    }
    
    .user-form-actions {
        flex-direction: column;
    }
    
    .cancel-button,
    .save-button {
        flex: none;
    }
    
    /* Profile Settings Responsive */
    .profile-settings-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-settings-title {
        font-size: 2rem;
    }
    
    .profile-form-actions {
        flex-direction: column;
    }
    
    .cancel-button,
    .add-button,
    .save-button {
        flex: none;
    }
}

@media (max-width: 1200px) {
    .calendar-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .calendar-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .calendar-container {
        width: 100%;
    }
}

@media (max-width: 1400px) {
    .register-layout {
        padding: 4rem;
    }
}

@media (max-width: 1200px) {
    .register-layout {
        flex-direction: column;
        padding: 2rem;
        align-items: center;
        margin-top: 0;
    }

    .login-form {
        margin-top: 0;
    }

    .plan-card {
        width: 100%;
        max-width: 400px;
        margin-top: 2rem;
    }
}

/* ========================================
   DASHBOARD LAYOUT & COMPONENTS
   ======================================== */

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
/* Sidebar Container */
.sidebar-container {
  width: 280px;
  min-width: 280px;
  background-color: #333333;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .sidebar-container {
    z-index: 999;
  }
}
/* Main Dashboard Content */
.main-dashboard-content {
  flex: 1;
  margin-left: 280px;
  background-color: #2C2C2C;
  min-height: 103.5vh;
  position: relative;
  overflow-x: hidden;
}

/* Dashboard Content */
.dashboard-content {
  padding: 0 2rem;
  min-height: 100vh;
  background-color: #2C2C2C;
  margin-top: 0;
  padding-top: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  --color: white;
  --background: transparent;
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
}

/* Mobile Sidebar Backdrop */
.mobile-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 997;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  .mobile-sidebar-backdrop {
    z-index: 997;
  }
}

/* Dashboard Grid Layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Dashboard Cards */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
  color: white;
  opacity: 0.8;
}

.stat-content h3 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-value.positive {
  color: #34c759;
  text-shadow: 0 2px 4px rgba(52, 199, 89, 0.3);
}

.stat-value.negative {
  color: #DC143C;
  text-shadow: 0 2px 4px rgba(220, 20, 60, 0.3);
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
}

.chart-container {
  flex: 1;
  min-height: 200px;
  border-radius: 12px;
  position: relative;
}

/* Date Range Filters */
.date-range-filters {
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-left: 2rem;
  margin-right: -0.5rem;
}

.date-range-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.date-field {
  flex: 1;
  min-width: 200px;
}

.date-label {
  color: white;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.date-selects {
  display: flex;
  gap: 0.5rem;
}

.date-select {
  flex: 1;
  --background: rgba(255, 255, 255, 0.1);
  --color: white;
  --border-radius: 8px;
  --border-style: solid;
  --border-width: 1px;
  --border-color: rgba(255, 255, 255, 0.2);
  --padding-start: 0.75rem;
  --padding-end: 0.75rem;
  --padding-top: 0.5rem;
  --padding-bottom: 0.5rem;
}

/* Transaction History */
.transaction-history-section {
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-left: 2rem;
  margin-right: -0.5rem;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.table-header h3 {
  color: white;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.hide-button {
  --color: white;
  margin: 0;
}

.hide-button ion-icon {
  margin-right: 5px;
}

.table-content {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.no-data {
  text-align: center;
  opacity: 0.7;
  color: white;
  padding: 2rem;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
}

.data-table th {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.data-table .positive,
.data-table td.positive {
  color: #34c759 !important;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(52, 199, 89, 0.3);
}

.data-table .negative,
.data-table td.negative {
  color: #DC143C !important;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(220, 20, 60, 0.3);
}

/* Scenarios */
.scenarios-card {
  display: flex;
  flex-direction: column;
}

.scenarios-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 300px;
}

@media (max-width: 768px) {
  .scenarios-container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }
}

.scenarios-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.scenarios-icon {
  font-size: 1.2rem;
  color: white;
}

.scenarios-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-style: italic;
}

.scenarios-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .scenarios-list {
    overflow-y: visible !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    flex: none !important;
  }
}

.scenario-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.scenario-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scenario-label {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
}

.no-scenarios {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.default-scenario {
  background: rgba(76, 175, 80, 0.1) !important;
  border: 1px solid rgba(76, 175, 80, 0.3);
  cursor: default;
  opacity: 0.8;
}

.default-scenario:hover {
  background: rgba(76, 175, 80, 0.1) !important;
}

.default-scenario-icon {
  color: #4CAF50;
  font-size: 1.2rem;
}

/* Toggle Styles */
.scenario-item ion-toggle {
  --background: rgba(255, 255, 255, 0.2) !important;
  --background-checked: #4CAF50 !important;
  --handle-background: white !important;
  --handle-background-checked: white !important;
  --handle-width: 18px;
  --handle-height: 18px;
  --handle-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --width: 44px;
  --height: 24px;
  margin: 0;
  transition: all 0.2s ease;
}

.scenario-item ion-toggle:hover {
  --background: rgba(255, 255, 255, 0.3) !important;
  --background-checked: #45a049 !important;
  transform: scale(1.05);
}

.scenario-item ion-toggle::part(track) {
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.scenario-item ion-toggle::part(handle) {
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Scrollbar Styling */
.table-content::-webkit-scrollbar,
.scenarios-list::-webkit-scrollbar {
  width: 6px;
}

.table-content::-webkit-scrollbar-track,
.scenarios-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.table-content::-webkit-scrollbar-thumb,
.scenarios-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.table-content::-webkit-scrollbar-thumb:hover,
.scenarios-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}


/* ========================================
   DASHBOARD THEME OVERRIDES
   ======================================== */

/* Light Theme Dashboard */
body.light-theme .main-dashboard-content {
  background-color: white;
}

body.light-theme .dashboard-content {
  background-color: white;
}

body.light-theme .stat-icon {
  color: #000;
  opacity: 0.7;
}

body.light-theme .stat-content h3 {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .stat-value {
  color: #000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-theme .chart-title {
  color: #000;
}

body.light-theme .date-range-filters,
body.light-theme .transaction-history-section {
  background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .date-label {
  color: #000;
}

body.light-theme .date-select {
  --background: transparent !important;
  --border-color: transparent !important;
  background: transparent !important;
  border: none !important;
  color: #000 !important;
  --color: #000 !important;
}

body.light-theme .table-header h3,
body.light-theme .hide-button {
  color: #000;
}

body.light-theme .hide-button {
  --color: #000;
}

body.light-theme .no-data {
  color: #000;
}

body.light-theme .data-table {
  color: #000;
}

body.light-theme .data-table th {
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .data-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .data-table tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .scenarios-header {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .scenarios-icon {
  color: #000;
}

body.light-theme .scenarios-subtitle {
  color: rgba(0, 0, 0, 0.7);
}

body.light-theme .scenario-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .scenario-item:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .scenario-label {
  color: #000;
}

body.light-theme .no-scenarios {
  color: rgba(0, 0, 0, 0.6);
}

/* Dark Theme Dashboard */
body.dark-theme .main-dashboard-content {
  background-color: #2C2C2C;
}

body.dark-theme .dashboard-content {
  background-color: #2C2C2C;
}

body.dark-theme .date-range-filters,
body.dark-theme .transaction-history-section {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .date-select {
  --background: transparent !important;
  --border-color: transparent !important;
  background: transparent !important;
  border: none !important;
  color: white !important;
  --color: white !important;
}

body.dark-theme .table-content {
  background: rgba(45, 45, 45, 0.6) !important;
}

body.dark-theme .data-table th {
  background: rgba(60, 60, 60, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .data-table {
  background: rgba(45, 45, 45, 0.6) !important;
}

body.dark-theme .scenario-item ion-toggle {
  --background: rgba(60, 60, 60, 0.8) !important;
  --background-checked: #4CAF50 !important;
  --handle-background: #e0e0e0 !important;
  --handle-background-checked: #e0e0e0 !important;
}

body.dark-theme .scenario-item ion-toggle:hover {
  --background: rgba(80, 80, 80, 0.8) !important;
  --background-checked: #45a049 !important;
}


/* ========================================
   DASHBOARD RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  /* Prevent horizontal scroll on mobile */
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Dashboard Layout - ensure full width on mobile */
  .dashboard-layout {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }
  
  .sidebar-container {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100vw;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: #333333;
  }
  
  .sidebar-container.open {
    transform: translateX(0);
  }
  
  /* Ensure sidebar fills container properly and doesn't show background */
  /* Use very specific selector to override Vue scoped styles */
  .sidebar-container .sidebar,
  .sidebar-container .sidebar[data-v-*],
  .dashboard-layout .sidebar-container .sidebar,
  .dashboard-layout .sidebar-container .sidebar[data-v-*] {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin-left: 0 !important;
    position: relative !important;
    background-color: #333333 !important;
    background: #333333 !important;
    padding: 0.75rem 0.75rem 2rem 0.75rem !important;
    padding-bottom: env(safe-area-inset-bottom, 2rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    transform: none !important; /* Override any scoped transform */
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Override any calendar-specific sidebar styles on dashboard */
  .dashboard-layout .sidebar-container .sidebar {
    background-color: #333333 !important;
    background: #333333 !important;
    background-image: none !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
    border: none !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    margin-left: 0 !important;
    left: 0 !important;
    top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important; /* Override any scoped transform styles */
  }
  
  /* Ensure sidebar content is visible and properly styled */
  /* Override Vue scoped styles with very specific selectors */
  .sidebar-container .sidebar,
  .sidebar-container .sidebar[data-v-*],
  .dashboard-layout .sidebar-container .sidebar,
  .dashboard-layout .sidebar-container .sidebar[data-v-*] {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
  }
  
  .sidebar-container .sidebar .sidebar-header {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 1rem 0.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .sidebar-container .sidebar .sidebar-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1rem 0 !important;
    min-height: 0 !important;
  }
  
  .sidebar-container .sidebar .sidebar-footer {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .sidebar-container .sidebar .profile-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  .sidebar-container .sidebar .profile-icon {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .sidebar-container .sidebar .profile-details {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.25rem !important;
  }
  
  .sidebar-container .sidebar .profile-info h3,
  .sidebar-container .sidebar .profile-details h3 {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }
  
  .sidebar-container .sidebar .profile-info p,
  .sidebar-container .sidebar .profile-details p {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }
  
  .sidebar-container .sidebar .nav-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .sidebar-container .sidebar .nav-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .sidebar-container .sidebar .nav-section-title {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding-right: 0.5rem !important;
  }
  
  .sidebar-container .sidebar .nav-section-header {
    padding: 0 0.75rem 0.5rem 0.75rem !important;
    margin: 0 0.25rem 0.5rem 0.25rem !important;
  }
  
  .sidebar-container .sidebar .nav-items {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .sidebar-container .sidebar .nav-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.625rem 0.75rem !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }
  
  .sidebar-container .sidebar .nav-icon {
    font-size: 1rem !important;
    min-width: 1rem !important;
    margin-right: 0.5rem !important;
  }
  
  .sidebar-container .sidebar .nav-label {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
  }
  
  .sidebar-container .sidebar .profile-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .sidebar-container .sidebar .profile-item-label {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .sidebar-container .sidebar .profile-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .sidebar-container .sidebar .profile-icon {
    font-size: 1.5rem !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .sidebar-container .sidebar .profile-item-icon {
    font-size: 0.9rem !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .sidebar-container .sidebar .nav-section-toggle {
    font-size: 0.8rem !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    flex-shrink: 0 !important;
  }
  
  .sidebar-container .sidebar .sidebar-content {
    padding: 0.5rem 0 !important;
  }
  
  .sidebar-container .sidebar .nav-section {
    margin-bottom: 1rem !important;
  }
  
  .sidebar-container .sidebar .profile-item {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
  
  .sidebar-container .sidebar .sidebar-footer {
    padding-top: 0.75rem !important;
    margin-top: auto !important;
    padding-bottom: 1rem !important;
    padding-bottom: env(safe-area-inset-bottom, 1rem) !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Ensure logout item is visible and clickable on iOS */
  .sidebar-container .sidebar .sidebar-footer .logout-item {
    margin-bottom: 0.5rem !important;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem) !important;
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .sidebar-container .sidebar .logout-item {
    padding: 0.625rem 1rem !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    font-size: 0.85rem !important;
    min-height: 48px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    margin: 0 !important;
    color: white !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
  }
  
  .sidebar-container .sidebar .logout-item .nav-icon {
    font-size: 1rem !important;
    min-width: 1rem !important;
    margin-right: 0.5rem !important;
    color: white !important;
    flex-shrink: 0 !important;
  }
  
  .sidebar-container .sidebar .logout-item .nav-label {
    color: white !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Prevent text overflow on mobile */
  .sidebar-container .sidebar * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .sidebar-container .sidebar .nav-item,
  .sidebar-container .sidebar .nav-section-header,
  .sidebar-container .sidebar .profile-item,
  .sidebar-container .sidebar .profile-info {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .sidebar-container .sidebar .profile-details {
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .sidebar-container .sidebar .no-profiles-text {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Force visibility for all sidebar children - use universal selector with high specificity */
  .sidebar-container.open .sidebar > *,
  .dashboard-layout .sidebar-container.open .sidebar > * {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .sidebar-container.open .sidebar .sidebar-header,
  .sidebar-container.open .sidebar .sidebar-content,
  .sidebar-container.open .sidebar .sidebar-footer {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .sidebar-container.open .sidebar .profile-info,
  .sidebar-container.open .sidebar .profile-details {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Ensure ion-icon elements are visible */
  .sidebar-container.open .sidebar ion-icon {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
    --color: white !important;
  }
  
  /* Make sure all text elements are visible */
  .sidebar-container.open .sidebar span,
  .sidebar-container.open .sidebar div,
  .sidebar-container.open .sidebar h3,
  .sidebar-container.open .sidebar h4,
  .sidebar-container.open .sidebar p {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Ensure nav items are visible */
  .sidebar-container.open .sidebar .nav-item,
  .sidebar-container.open .sidebar .nav-items,
  .sidebar-container.open .sidebar .nav-section,
  .sidebar-container.open .sidebar .nav-section-header {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
  }
  
  /* Profile items */
  .sidebar-container.open .sidebar .profile-item,
  .sidebar-container.open .sidebar .profile-list {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: white !important;
  }
  
  .main-dashboard-content {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow-x: hidden;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Hide main content when sidebar is open - using body class */
  body.sidebar-open .main-dashboard-content {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  .mobile-menu-toggle {
    display: block;
    top: 0rem;
    left: 0.75rem;
    z-index: 1001;
    position: fixed;
  }
  
  ion-header {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: transparent !important;
    z-index: 1001;
  }
  
  .main-dashboard-content ion-content {
    --padding-top: 0 !important;
    --padding-bottom: 1rem;
    --background: #2C2C2C !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Use inner-scroll for additional styling - avoids ::part() minifier issues */
  .main-dashboard-content ion-content .inner-scroll {
    padding-top: 0 !important;
  }
  
  .charts-row {
    grid-template-columns: 1fr !important;
    display: grid !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
  }
  
  .charts-row > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  
  .charts-row .chart-card,
  .charts-row .scenarios-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .charts-row .glass-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .dashboard-content {
    padding: 0 0.75rem 1rem 0.75rem !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .stats-grid {
    margin-top: 3rem;
    padding-top: 0;
  }
  
  .date-range-filters {
    padding: 1rem 0.75rem;
    margin: 1rem 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
  }
  
  .date-range-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .date-field {
    width: 100%;
  }
  
  .date-selects {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }
  
  .date-select {
    flex: 1;
    min-height: 48px;
  }
  
  .transaction-history-section {
    padding: 0 0.75rem;
    margin: 1rem 0;
  }
  
  .table-header h3 {
    font-size: 1rem;
  }
  
  /* Prevent body scroll when sidebar is open */
  body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .charts-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   DASHBOARD SCROLLBAR HIDING
   ======================================== */

.main-dashboard-content::-webkit-scrollbar,
.sidebar-container::-webkit-scrollbar,
.dashboard-layout::-webkit-scrollbar {
  display: none;
}

.main-dashboard-content,
.sidebar-container,
.dashboard-layout {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========================================
   DASHBOARD IONIC COMPONENT OVERRIDES
   ======================================== */

/* Ensure ion-content starts from the very top */
ion-content {
  --padding-top: 0 !important;
  --padding-start: 0 !important;
  --padding-end: 0 !important;
  --padding-bottom: 0 !important;
}

/* Update existing styles for better sidebar integration */
ion-header {
  background: transparent;
}

ion-toolbar {
  --background: transparent;
  --border-color: transparent;
}

/* Global toggle override to ensure gradient colors */
ion-toggle {
  --background-checked: #4CAF50 !important;
}

ion-toggle:hover {
  --background-checked: #45a049 !important;
}

ion-toggle.md,
ion-toggle.ios {
  --background-checked: #4CAF50 !important;
}

ion-toggle.md:hover,
ion-toggle.ios:hover {
  --background-checked: #45a049 !important;
}

ion-toggle::part(track) {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Simplified ::part() selectors to avoid minifier issues */
ion-toggle::part(track) {
  background: rgba(255, 255, 255, 0.2) !important;
}

.scenario-item ion-toggle::part(track) {
  background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme ion-toggle::part(track) {
  background: rgba(60, 60, 60, 0.8) !important;
}

body.dark-theme .scenario-item ion-toggle::part(track) {
  background: rgba(60, 60, 60, 0.8) !important;
}

/* Use CSS variables for checked state instead of ::part() with class selector */
ion-toggle.ion-checked,
.scenario-item ion-toggle.ion-checked,
body.dark-theme ion-toggle.ion-checked,
body.dark-theme .scenario-item ion-toggle.ion-checked {
  --background: #4CAF50 !important;
  --background-checked: #4CAF50 !important;
}

/* Ultra-specific override for scenario toggles to force green */
.scenario-item ion-toggle.ion-checked,
body.dark-theme .scenario-item ion-toggle.ion-checked {
  --background: #4CAF50 !important;
  --background-checked: #4CAF50 !important;
  --background-hover: #4CAF50 !important;
  --background-activated: #4CAF50 !important;
}

/* ========================================
   DASHBOARD POPOVER STYLES
   ======================================== */

/* Force popover grey background - applied globally */
ion-popover {
  --background: rgba(64, 64, 64, 0.95) !important;
  --side: top;
  --alignment: center;
}

ion-popover .popover-content {
  background: rgba(64, 64, 64, 0.95) !important;
}

ion-popover::part(content) {
  background: rgba(64, 64, 64, 0.95) !important;
}

ion-popover ::-webkit-scrollbar {
  display: none !important;
}

ion-popover {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

ion-popover.md,
ion-popover.ios,
ion-popover.custom-popover {
  --background: rgba(64, 64, 64, 0.95) !important;
  --side: top;
  --alignment: center;
}

/* Simplified to avoid minifier issues with class selectors + ::part() */
ion-popover::part(content) {
  background: rgba(64, 64, 64, 0.95) !important;
}

/* Enhanced Light Theme Popover Styles */
body.light-theme .custom-popover ion-item {
  --background: #fff !important;
  --color: #333 !important;
  color: #333 !important;
  border-radius: 8px !important;
  margin: 2px 8px !important;
  padding: 8px 12px !important;
  transition: all 0.3s ease !important;
  border: 1px solid transparent !important;
}

body.light-theme .custom-popover ion-item:hover {
  --background: #f0e6ff !important;
  background: #f0e6ff !important;
  color: #333 !important;
  transform: translateX(8px) !important;
  box-shadow: 0 4px 12px rgba(111, 60, 196, 0.2) !important;
  border-left: 3px solid #6f3cc4 !important;
  border-color: #6f3cc4 !important;
}

body.light-theme .custom-popover .item-radio-checked {
  --background: #e6d9ff !important;
  background: #e6d9ff !important;
  color: #333 !important;
  box-shadow: 0 0 15px rgba(111, 60, 196, 0.3) !important;
  border-left: 3px solid #6f3cc4 !important;
  border-color: #6f3cc4 !important;
}

body.light-theme .custom-popover .popover-content {
  background: #fff !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme ion-popover.custom-popover {
  --background: #fff !important;
}

body.light-theme ion-popover.custom-popover .popover-content {
  background: #fff !important;
}
/* Custom popover styles for date selects */
.custom-popover {
  --background: rgba(64, 64, 64, 0.95) !important;
  --backdrop-opacity: 0.6;
  --width: auto;
  --min-width: 200px;
  --border-radius: 10px;
  --box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  --side: top;
  --alignment: center;
}

.custom-popover .popover-content {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 25%, rgba(240, 147, 251, 0.95) 50%, rgba(245, 87, 108, 0.95) 75%, rgba(79, 172, 254, 0.95) 100%) !important;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-popover .popover-viewport {
  background: transparent !important;
}

ion-popover.custom-popover {
  --background: transparent !important;
}

ion-popover.custom-popover .popover-content {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 25%, rgba(240, 147, 251, 0.95) 50%, rgba(245, 87, 108, 0.95) 75%, rgba(79, 172, 254, 0.95) 100%) !important;
}

.custom-popover ::-webkit-scrollbar,
ion-popover.custom-popover ::-webkit-scrollbar {
  display: none !important;
}

.custom-popover,
ion-popover.custom-popover {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.custom-popover ion-item {
  --background: transparent;
  --color: white;
  --border-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 2px 8px;
  padding: 8px 12px;
}

.custom-popover ion-item:hover {
  --background: rgba(255, 255, 255, 0.2);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  border-left: 3px solid rgba(255, 255, 255, 0.6);
}

.custom-popover .item-radio-checked {
  --background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
  border-left: 3px solid rgba(255, 255, 255, 0.8);
}

.custom-popover .popover-content {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

/* Global popover override to ensure no purple backgrounds */
ion-popover,
ion-popover.md,
ion-popover.ios,
ion-popover.custom-popover {
  --background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 25%, rgba(240, 147, 251, 0.95) 50%, rgba(245, 87, 108, 0.95) 75%, rgba(79, 172, 254, 0.95) 100%) !important;
  --backdrop-opacity: 0.6 !important;
}

ion-popover .popover-content,
ion-popover.md .popover-content,
ion-popover.ios .popover-content,
ion-popover.custom-popover .popover-content {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 25%, rgba(240, 147, 251, 0.95) 50%, rgba(245, 87, 108, 0.95) 75%, rgba(79, 172, 254, 0.95) 100%) !important;
}

ion-popover .popover-viewport,
ion-popover.md .popover-viewport,
ion-popover.ios .popover-viewport,
ion-popover.custom-popover .popover-viewport {
  background: transparent !important;
}

ion-popover .popover-arrow,
ion-popover.md .popover-arrow,
ion-popover.ios .popover-arrow,
ion-popover.custom-popover .popover-arrow {
  display: none !important;
}

ion-popover ::-webkit-scrollbar,
ion-popover.md ::-webkit-scrollbar,
ion-popover.ios ::-webkit-scrollbar,
ion-popover.custom-popover ::-webkit-scrollbar {
  display: none !important;
}

ion-popover,
ion-popover.md,
ion-popover.ios,
ion-popover.custom-popover {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

ion-popover *,
ion-popover.md *,
ion-popover.ios *,
ion-popover.custom-popover * {
  background: transparent !important;
}

ion-popover .popover-content *,
ion-popover.md .popover-content *,
ion-popover.ios .popover-content *,
ion-popover.custom-popover .popover-content * {
  background: transparent !important;
}

/* ========================================
   USER SETTINGS LAYOUT & COMPONENTS
   ======================================== */

/* User Settings Header */
.user-settings-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 2rem 2rem 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  position: relative;
}

.user-settings-header .back-button {
  position: absolute;
  left: 0 !important;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0 !important;
}

.user-settings-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* User Settings Form */
.user-settings-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
  padding: 0 2rem 2rem 2rem;
  min-height: calc(100vh - 200px);
}

.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

/* User Input Groups */
.user-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 5 !important;
  min-height: 80px;
}

.user-input-group ion-label {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
  position: relative !important;
  z-index: 5 !important;
}

/* User Custom Input */
.user-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px;
  padding: 16px;
  color: white !important;
  width: 100%;
  font-size: 1rem;
  outline: none !important;
  transition: border-color 0.2s ease;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  --border-width: 2px !important;
  --border-style: solid !important;
  min-height: 52px;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

/* Override browser autofill styles to ensure consistent background */
.user-custom-input:-webkit-autofill,
.user-custom-input:-webkit-autofill:hover,
.user-custom-input:-webkit-autofill:focus,
.user-custom-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
  -webkit-text-fill-color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.user-custom-input[type="text"],
.user-custom-input[type="email"],
.user-custom-input[type="password"] {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Specific override for password fields - browsers often style these differently */
.user-custom-input[type="password"] {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
       appearance: none !important;
}

.user-custom-input[type="password"]:-webkit-autofill,
.user-custom-input[type="password"]:-webkit-autofill:hover,
.user-custom-input[type="password"]:-webkit-autofill:focus,
.user-custom-input[type="password"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.1) inset !important;
  -webkit-text-fill-color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.user-custom-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.user-custom-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.user-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  outline: none !important;
}

.user-custom-input:focus::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.user-custom-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.user-custom-input option {
  background: #2C2C2C;
  color: white;
}

/* Subscription Group */
.subscription-group {
  margin: 0.5rem 0;
  grid-column: 1 / -1;
}

.subscription-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  margin-top: 0.5rem;
  min-height: 52px;
  gap: 4px;
}

.subscription-option {
  flex: 1;
  text-align: center;
  padding: 16px;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.subscription-option.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 
              0 0 40px rgba(118, 75, 162, 0.4),
              0 0 60px rgba(240, 147, 251, 0.3),
              0 0 8px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(102, 126, 234, 0.5);
  position: relative;
}

.subscription-option.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
}

.subscription-option:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.option-title {
  font-size: 1.1em;
  font-weight: 500;
}

.option-price {
  font-size: 0.9em;
  opacity: 0.8;
}

.option-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  text-align: left;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
  color: #4CAF50;
  font-size: 0.9em;
  min-width: 16px;
}

.feature-icon.warning {
  color: #FF9800;
}

/* User Form Actions */
.user-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 4rem;
  margin-bottom: -4rem;
  width: 100%;
}

.user-form-actions ion-button {
  flex: 1;
  height: 64px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* ========================================
   PROFILE SETTINGS LAYOUT & COMPONENTS
   ======================================== */

/* Profile Settings Header */
.profile-settings-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 2rem 2rem 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  position: relative;
}

.profile-settings-header .back-button {
  position: absolute;
  left: 0 !important;
  top: 50%;
  transform: translateY(-50%);
  margin-left: -2 !important;
}

.profile-settings-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* Profile Settings Form */
.profile-settings-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
  padding: 0 2rem 2rem 2rem;
  min-height: calc(100vh - 200px);
}

/* Profile Input Groups */
.profile-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 5 !important;
  min-height: 80px;
}

.profile-input-group ion-label {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
  position: relative !important;
  z-index: 5 !important;
}

/* Profile Custom Input */
.profile-custom-input {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px;
  padding: 16px;
  color: white !important;
  width: 100%;
  font-size: 1rem;
  outline: none !important;
  transition: border-color 0.2s ease;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  --border-width: 2px !important;
  --border-style: solid !important;
  min-height: 52px;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

.profile-custom-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.profile-custom-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.profile-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  outline: none !important;
}

.profile-custom-input:focus::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.profile-custom-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.profile-custom-input option {
  background: #2C2C2C;
  color: white;
}

/* Profile Select and Action Groups */
.profile-select-group {
  grid-column: 1 / -1;
}

.action-buttons-group {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

/* Profile Form Actions */
.profile-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 4rem;
  margin-bottom: -4rem;
  width: 100%;
}

.profile-form-actions ion-button {
  flex: 1;
  height: 56px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* ========================================
   DASHBOARD ANIMATIONS
   ======================================== */

@keyframes sparkle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

/* Delete Scenario Page Layout */
.delete-scenario-page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.delete-scenario-card {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.9) 0%, rgba(88, 28, 135, 0.9) 100%);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.delete-scenario-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-scenario-page-title {
  color: white;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.delete-scenario-info {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-scenario-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.delete-scenario-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

.delete-scenario-warning-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 59, 48, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.delete-scenario-warning-icon {
  font-size: 3rem;
  color: #ff3b30;
  margin-bottom: 1rem;
}

.delete-scenario-warning-title {
  color: #ff3b30;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.delete-scenario-warning-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.delete-scenario-warning-question {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

.delete-scenario-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.delete-scenario-cancel-button {
  --color: white;
  --border-color: rgba(255, 255, 255, 0.3);
  --border-width: 1px;
  --background: transparent;
  --background-hover: rgba(255, 255, 255, 0.1);
  flex: 1;
  height: 52px;
  font-weight: 500;
  border-radius: 12px;
  font-size: 1rem;
}

.delete-scenario-delete-button {
  --background: #ff3b30;
  --background-hover: #ff453a;
  --color: white;
  flex: 2;
  height: 52px;
  font-weight: 500;
  border-radius: 12px;
  font-size: 1rem;
}

/* Responsive Design for Delete Scenario */
@media (max-width: 768px) {
  .delete-scenario-page-container {
    padding: 1rem;
  }
  
  .delete-scenario-card {
    padding: 2rem;
  }
  
  .delete-scenario-page-title {
    font-size: 1.75rem;
  }
  
  .delete-scenario-form-actions {
    flex-direction: column;
  }
  
  .delete-scenario-cancel-button,
  .delete-scenario-delete-button {
    flex: none;
  }
}

@media (max-width: 480px) {
  .delete-scenario-page-container {
    padding: 0.5rem;
  }
  
  .delete-scenario-card {
    padding: 1.5rem;
  }
  
  .delete-scenario-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .delete-scenario-page-title {
    font-size: 1.5rem;
  }
}

/* Calendar page responsive styles */
@media (max-width: 768px) {
  .calendar-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: relative !important;
    height: auto !important;
    margin-bottom: 1rem;
  }
  
  .calendar-container {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60vh;
  }
  
  .glass-card.calendar-container {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60vh;
  }
  
  .calendar-grid {
    gap: 4px;
  }
  
  .calendar-day {
    min-height: 60px;
    font-size: 0.8rem;
  }
  
  .event-name {
    font-size: 0.6rem;
  }
  
  .event-amount {
    font-size: 0.6rem;
  }
  
  .scenario-dropdown-menu {
    max-height: 150px;
  }
  
  .cash-flow-summary {
    margin-bottom: 1rem;
  }
  
  .scenarios-section {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .calendar-day {
    min-height: 50px;
    font-size: 0.7rem;
  }
  
  .event-name {
    font-size: 0.55rem;
  }
  
  .event-amount {
    font-size: 0.55rem;
  }
  
  .month-title {
    font-size: 1rem;
  }
  
  .nav-button {
    font-size: 0.8rem;
  }
  
  .section-title {
    font-size: 0.9rem;
  }
  
  .flow-amount {
    font-size: 1rem;
  }
}

/* Create Scenario Page Layout */
.create-scenario-page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.create-scenario-card {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.9) 0%, rgba(88, 28, 135, 0.9) 100%);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Ensure the card content is transparent */
.create-scenario-card > * {
  background: transparent !important;
}
.create-scenario-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.create-scenario-back-button {
  --color: white;
  --color-hover: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}
.create-scenario-page-title {
  color: white;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.create-scenario-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.create-scenario-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.create-scenario-input-group ion-label {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Custom input styling for create scenario */
.create-scenario-custom-input {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px;
  padding: 16px;
  color: white !important;
  width: 100%;
  font-size: 1rem;
  outline: none !important;
  transition: border-color 0.2s ease;
  --border-color: rgba(255, 255, 255, 0.3) !important;
  --border-width: 1px !important;
  --border-style: solid !important;
}

.create-scenario-custom-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.create-scenario-custom-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.create-scenario-custom-input:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
  background-color: transparent !important;
  --border-color: rgba(255, 255, 255, 0.5) !important;
  outline: none !important;
}

.create-scenario-custom-input:focus::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.create-scenario-custom-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Force override any potential browser or framework styles */
.create-scenario-card .create-scenario-custom-input,
.create-scenario-card input.create-scenario-custom-input {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  outline: none !important;
  --border-color: rgba(255, 255, 255, 0.3) !important;
  --background: transparent !important;
  --background-color: transparent !important;
}

.create-scenario-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.create-scenario-cancel-button {
  --color: white;
  --border-color: white;
  --border-width: 1px;
  --background: rgba(255, 255, 255, 0.1);
  --background-hover: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  flex: 1;
  height: 56px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.create-scenario-create-button {
  --background: linear-gradient(180deg, #9c5bdb 0%, #6f3cc4 100%);
  --background-hover: linear-gradient(180deg, #8a4bc8 0%, #5e2da3 100%);
  --color: white;
  box-shadow: 0 4px 15px rgba(111, 60, 196, 0.4);
  background: linear-gradient(180deg, #9c5bdb 0%, #6f3cc4 100%);
  background-image: linear-gradient(180deg, #9c5bdb 0%, #6f3cc4 100%);
  border: none;
  flex: 2;
  height: 56px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* Responsive Design for Create Scenario */
@media (max-width: 768px) {
  .create-scenario-page-container {
    padding: 1rem;
  }
  
  .create-scenario-card {
    padding: 2rem;
  }
  
  .create-scenario-page-title {
    font-size: 1.75rem;
  }
  
  .create-scenario-form-actions {
    flex-direction: column;
  }
  
  .create-scenario-cancel-button,
  .create-scenario-create-button {
    flex: none;
  }
}

@media (max-width: 480px) {
  .create-scenario-page-container {
    padding: 0.5rem;
  }
  
  .create-scenario-card {
    padding: 1.5rem;
  }
  
  .create-scenario-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .create-scenario-page-title {
    font-size: 1.5rem;
  }
}

/* ========================================
   CALENDAR PAGE STYLES
   ======================================== */

.welcome-content {
  --padding-bottom: 2rem;
  --padding-top: 0;
  height: 100%;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  max-width: none;
}

.calendar-layout {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  margin-top: 0;
  margin-left: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  position: relative;
}

.sidebar {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 320px !important;
  height: 100vh !important;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.9) 0%, rgba(88, 28, 135, 0.9) 100%) !important;
  -webkit-backdrop-filter: blur(10px) !important;
          backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  z-index: 1000 !important;
  flex-shrink: unset !important;
  flex-grow: unset !important;
  flex-basis: unset !important;
}

.calendar-container {
  position: fixed !important;
  top: 0 !important;
  left: 350px !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 1rem !important;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.05) 0%, rgba(88, 28, 135, 0.05) 100%) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  overflow: auto !important;
  max-width: calc(100% - 380px) !important;
}

.glass-card.calendar-container {
  position: fixed !important;
  top: 0 !important;
  left: 350px !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 1rem !important;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.05) 0%, rgba(88, 28, 135, 0.05) 100%) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  overflow: auto !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  max-width: calc(100% - 380px) !important;
}

/* Hide scrollbars for calendar container */
.calendar-container::-webkit-scrollbar,
.glass-card.calendar-container::-webkit-scrollbar {
  display: none !important;
}

.back-button-container {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  position: relative;
}

.back-button-container::after {
  content: '';
  position: absolute;
  bottom: -3rem;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-spacer {
  height: 2rem;
  margin: 1rem 0;
}

.back-button {
  --color: white;
  --color-hover: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.back-button:hover {
  --color: rgba(255, 255, 255, 0.8);
}

.section-title {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.cash-flow-summary {
  margin-bottom: 1.2rem;
}

.cash-flow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.cash-flow-item:last-child {
  border-bottom: none;
}

.flow-label {
  opacity: 0.8;
}

.flow-amount {
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.flow-amount.positive {
  color: #22c55e !important;
}

.flow-amount.negative {
  color: #ef4444 !important;
}

/* More specific selectors to override any conflicting styles */
.cash-flow-summary .flow-amount.positive {
  color: #22c55e !important;
}

.cash-flow-summary .flow-amount.negative {
  color: #ef4444 !important;
}

.sidebar .cash-flow-summary .flow-amount.positive {
  color: #22c55e !important;
}

.sidebar .cash-flow-summary .flow-amount.negative {
  color: #ef4444 !important;
}

.positive {
  color: #22c55e !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.negative {
  color: #ef4444 !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.month-title {
  color: white;
  font-size: 1.2rem;
  margin: 0;
}

.nav-button {
  --color: white;
  --color-hover: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  transition: all 0.3s ease;
  padding-bottom: 1rem;
  width: 100%;
}

.calendar-grid.transitioning {
  opacity: 0.7;
  transform: scale(0.98);
}

.calendar-days-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  grid-column: 1 / -1;
}

.calendar-day-header {
  color: white;
  opacity: 0.8;
  height: 30px;
  text-align: center;
  padding: 0.2rem;
  font-weight: 500;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.1) 0%, rgba(88, 28, 135, 0.1) 100%);
  border-radius: 8px;
  padding: 0.2rem;
  color: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.9rem;
  border: 1px solid rgba(67, 56, 202, 0.2);
}

.calendar-day.transitioning {
  transform: scale(0.95);
  opacity: 0.8;
}

.calendar-day-enter-active,
.calendar-day-leave-active {
  transition: all 0.3s ease;
}

.calendar-day-enter-from,
.calendar-day-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

.calendar-day-enter-to,
.calendar-day-leave-from {
  opacity: 1;
  transform: translateY(0);
}

.current-month {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.2) 0%, rgba(88, 28, 135, 0.2) 100%);
}

.has-events {
  border: 1px solid rgba(67, 56, 202, 0.4);
}

/* Dark theme - days with events should look like days without events */
body.dark-theme .calendar-day.has-events {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

.amount {
  font-size: 0.8rem;
  margin-top: 0.3rem;
  opacity: 0.8;
  font-weight: 500;
}

.amount.positive {
  color: rgba(144, 238, 144, 1);
}

.amount.negative {
  color: rgba(255, 160, 122, 1);
}

.entry-form .input-group {
  margin-bottom: 1.5rem;
}

.entry-form ion-label {
  color: white;
  margin-bottom: 0.5rem;
  display: block;
}

.scenarios-button {
  --background: rgba(255, 255, 255, 0.1);
  --background-hover: rgba(255, 255, 255, 0.2);
  --color: white;
  margin-top: 0.5rem;
}

.button-icon {
  margin-right: 8px;
}

ion-popover {
  --width: 320px;
}

ion-popover ion-item-divider {
  --background: rgba(255, 255, 255, 0.1);
  --color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0;
}

ion-popover ion-item {
  --background: transparent;
  --color: white;
  --border-color: rgba(255, 255, 255, 0.1);
}

ion-popover ion-item:hover {
  --background: rgba(255, 255, 255, 0.1);
}

ion-popover ion-radio {
  --color: #34c759;
  --color-checked: #34c759;
}

ion-popover ion-button[color="danger"] {
  --color: #ff3b30;
  --color-hover: #ff453a;
  --background: rgba(255, 59, 48, 0.1);
  --background-hover: rgba(255, 59, 48, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.delete-scenario-btn {
  --color: #ff3b30 !important;
  --color-hover: #ff3b30 !important;
  --background: transparent !important;
  --background-hover: transparent !important;
  --ripple-color: transparent !important;
  --background-activated: transparent !important;
  --background-focused: transparent !important;
  --background-selected: transparent !important;
  --background-rgb: transparent !important;
  --background-opacity: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 8px !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #ff3b30 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  padding: 4px !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.delete-scenario-btn:hover {
  --background: transparent !important;
  --background-hover: transparent !important;
  --background-activated: transparent !important;
  --background-focused: transparent !important;
  --background-selected: transparent !important;
  --background-rgb: transparent !important;
  --background-opacity: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.delete-scenario-btn:active {
  --background: transparent !important;
  --background-activated: transparent !important;
  --background-focused: transparent !important;
  --background-selected: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.delete-scenario-btn:focus {
  --background: transparent !important;
  --background-focused: transparent !important;
  --background-rgb: transparent !important;
  --background-opacity: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.event-details {
  font-size: 0.7rem;
  margin-top: 0.3rem;
  opacity: 0.9;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 10px;
  max-height: calc(100% - 1.5rem);
  overflow-y: auto;
}

/* Scrollbar styling for event details */
.event-details::-webkit-scrollbar {
  width: 3px;
}

.event-details::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.event-details::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.event-details::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.event-item {
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.event-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.event-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.65rem;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  color: #ffffff !important;
}

.event-amount {
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  color: #ffffff !important;
}

.event-item.positive {
  color: #ffffff;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  width: 100%;
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.event-item.negative {
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  width: 100%;
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.calendar-day:not(.current-month) {
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.05);
}

.calendar-day:not(.current-month):hover {
  opacity: 0.6;
  background: rgba(255, 255, 255, 0.08);
}

.confirmation-content {
  text-align: center;
  margin-bottom: 2rem;
}

.warning-icon {
  margin-bottom: 1rem;
}

/* New Scenarios Section Styles */
.scenarios-section {
  margin-bottom: 1.5rem;
}

.scenarios-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scenarios-icon {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.scenarios-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.scenario-trigger-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trigger-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.active-scenario-name {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scenario-dropdown-container {
  position: relative;
}

.scenario-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-icon {
  transition: transform 0.3s ease;
}
.dropdown-icon.rotated {
  transform: rotate(180deg);
}
.scenario-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.95) 0%, rgba(88, 28, 135, 0.95) 100%);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-top: 0.5rem;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: 200px; /* Limit height for scrolling */
  overflow-y: auto;
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling for dropdown menu */
.scenario-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.scenario-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.scenario-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.scenario-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.scenario-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-dropdown-item:last-child {
  border-bottom: none;
}

.scenario-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.scenario-dropdown-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.scenario-label {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
}

.scenario-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.active-scenario-icon {
  color: #34c759;
  font-size: 1.2rem;
}

.create-scenario-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  border-style: dashed;
}

.create-scenario-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.add-icon {
  color: #007aff;
  font-size: 1.1rem;
}

/* ========================================
   TRANSACTION PAGE STYLES
   ======================================== */

.transaction-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  position: relative;
}

.back-button {
  --color: white;
  --color-hover: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  position: absolute;
  left: 0;
}

.transaction-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.transaction-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
  padding: 0 2rem 2rem 2rem;
  min-height: calc(100vh - 200px);
}

.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  align-items: start;
  margin-bottom: 2rem;
}

/* Force both columns to be exactly equal width */
.form-fields-grid > .left-column,
.form-fields-grid > .right-column {
  width: 100% !important;
  max-width: 50% !important;
  flex: 0 0 50% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Make input groups match date picker groups exactly */
.form-fields-grid .transaction-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 80px;
  width: 100%;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Make columns match date picker groups exactly */
.form-fields-grid > .left-column,
.form-fields-grid > .right-column {
  width: 100% !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Ensure grid columns are truly equal */
.form-fields-grid {
  grid-template-columns: 1fr 1fr !important;
  grid-gap: 2rem !important;
}

/* When date pickers are outside the grid, make them span full width */
.form-fields-grid + .date-pickers-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* ========================================
   NON-LOAN FORM LAYOUT STYLES
   ======================================== */

/* Non-loan form layout container */
.non-loan-form-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* Non-loan fields grid - 3-column layout */
.non-loan-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  align-items: start;
  margin-bottom: 1rem;
}

/* All input groups in the grid */
.non-loan-fields-grid .transaction-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 80px;
  width: 100%;
  justify-content: flex-start;
  align-items: stretch;
}

/* Input styling for non-loan form */
.non-loan-fields-grid .transaction-custom-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 60px !important;
  padding: 20px 24px !important;
  font-size: 1.1rem !important;
  border-radius: 12px !important;
  flex: 1 1 0 !important;
}

/* Select dropdowns in non-loan form */
.non-loan-fields-grid select.transaction-custom-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27currentColor%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276,9 12,15 18,9%27%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 20px !important;
  padding-right: 50px !important;
}

/* Date fields are now part of the main grid, no separate styling needed */

/* Form actions for non-loan form */
.non-loan-form-layout .transaction-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0;
  padding: 0;
}

/* Responsive design for non-loan form */
@media (max-width: 768px) {
  .non-loan-fields-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .non-loan-form-layout .transaction-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0; /* Prevent flex items from growing beyond container */
  align-items: stretch;
  justify-content: flex-start;
}

/* Ensure all input groups have consistent spacing and alignment */
.left-column .transaction-input-group,
.right-column .transaction-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-height: 80px;
  justify-content: flex-start;
  align-items: stretch;
}

/* Make all input fields match the base transaction-custom-input styling exactly */
.left-column .transaction-custom-input,
.right-column .transaction-custom-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 60px !important; /* Increased height for wider appearance */
  padding: 20px 24px !important; /* Increased padding for wider appearance */
  font-size: 1.1rem !important; /* Slightly larger font for better proportion */
  border-radius: 12px !important;
  flex: 1 1 0 !important;
}

/* Ensure select dropdowns match text inputs exactly */
.left-column select.transaction-custom-input,
.right-column select.transaction-custom-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276,9 12,15 18,9%27%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 24px center !important; /* Updated to match new padding */
  background-size: 16px 16px !important;
  padding-right: 54px !important; /* Updated to match new padding */
}

/* New loan form layout - stacked vertically */
.loan-form-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  align-items: stretch;
}

.loan-fields-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.loan-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

.loan-fields-grid .span-2 {
  grid-column: span 2;
}

.loan-fields-left, .loan-fields-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.loan-details-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  align-items: stretch;
}

/* Loan preview card - now part of main layout */
.loan-form-layout .loan-preview-card {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.category-scenario-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

/* Align right column items with left column */
@media (min-width: 768px) {
  .right-column {
    margin-top: -0.5rem;
  }
  
  .right-column .transaction-form-actions {
    margin-top: 1.5rem;
  }
}

/* Amount field row - spans full width */
.amount-field-row {
  display: flex;
  width: 100%;
  margin-top: 2rem;
  grid-column: 1 / -1; /* Span across all columns */
}

.date-pickers-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
  grid-column: 1 / -1; /* Span across all columns */
}

.date-pickers-row ion-datetime {
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
  --wheel-highlight-background: #3C3C3C !important;
  --wheel-fade-background-rgb: 44, 44, 44 !important;
  --color: white !important;
  --title-color: white !important;
  --placeholder-color: rgba(255, 255, 255, 0.7) !important;
  --border-radius: 12px !important;
  --padding-start: 16px !important;
  --padding-end: 16px !important;
  min-height: 60px !important;
  height: 60px !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  background: #2C2C2C !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  box-shadow: none !important;
  color: white !important;
  --wheel-background: #2C2C2C !important;
  --wheel-background-rgb: 44, 44, 44 !important;
  transition: all 0.3s ease !important;
  border-radius: 12px !important;
  flex: 1 !important;
}

.date-pickers-row ion-datetime:last-child {
  margin-left: auto !important;
}

.date-pickers-row ion-datetime::part(native) {
  padding: 20px !important;
  color: white !important;
  font-size: 1.1rem !important;
  background: transparent !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
}

.date-pickers-row ion-datetime::part(placeholder) {
  color: rgba(255, 255, 255, 0.7) !important;
}

.date-pickers-row ion-datetime::part(calendar-day) {
  color: white !important;
}

/* Removed invalid ::part() selectors with spaces - not valid CSS syntax */

.date-pickers-row ion-datetime::part(wheel-container) {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  background: #2C2C2C !important;
  border: none !important;
  box-shadow: none !important;
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
  min-height: 140px !important;
}

.date-pickers-row ion-datetime::part(wheel) {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  background: #2C2C2C !important;
  border: none !important;
  box-shadow: none !important;
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
  min-height: 140px !important;
}

.date-pickers-row ion-datetime::part(wheel-item) {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  color: white !important;
  background: #2C2C2C !important;
  --background: #2C2C2C !important;
  --background-rgb: 44, 44, 44 !important;
}

/* Removed invalid ::part() selector with spaces - not valid CSS syntax */

.date-pickers-row ion-datetime * {
  color: white !important;
}

/* Removed ::part() followed by universal selector - causes minifier issues */

.date-pickers-row ion-datetime::after {
  display: none !important;
}

.date-pickers-row ion-datetime:focus-within {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: #3C3C3C !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.date-pickers-row ion-datetime:focus-within::after {
  display: none !important;
}

.transaction-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 5 !important;
  min-height: 80px;
}

.date-picker-group {
  min-height: 80px;
  flex: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

.amount-field-group {
  min-height: 80px;
  flex: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Ensure date picker groups in the full-width row are equal size */
.date-pickers-row .date-picker-group {
  flex: 1 !important;
  width: 100% !important;
}

.date-picker-group .transaction-custom-input {
  width: 100% !important;
}

.transaction-input-group ion-label {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
  position: relative !important;
  z-index: 5 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Custom input styling */
.transaction-custom-input {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px;
  padding: 18px 20px;
  color: white !important;
  width: 100%;
  font-size: 1.05rem;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: rgba(255, 255, 255, 0.25) !important;
  --border-width: 1px !important;
  --border-style: solid !important;
  min-height: 56px;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.transaction-custom-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  font-style: italic;
}

.transaction-custom-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  font-style: italic;
}

.transaction-custom-input:focus {
  border-color: rgba(102, 126, 234, 0.8) !important;
  border: 1px solid rgba(102, 126, 234, 0.8) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  background-color: transparent !important;
  --border-color: rgba(102, 126, 234, 0.8) !important;
  outline: none !important;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 8px 25px rgba(0, 0, 0, 0.2);
}

.transaction-custom-input:focus::-moz-placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.transaction-custom-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.transaction-custom-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Select styling */
.transaction-custom-input option {
  background: #2C2C2C;
  color: white;
}

.calculated-field {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
}

.calculated-field::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic !important;
}

.calculated-field::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic !important;
}

/* Toggle Group */
.toggle-group {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.transaction-toggle {
  --background: rgba(255, 255, 255, 0.1);
  --background-checked: rgba(76, 175, 80, 0.3);
  --handle-background: white;
  --handle-background-checked: #4caf50;
  --border-radius: 20px;
  --handle-border-radius: 50%;
  --handle-width: 20px;
  --handle-height: 20px;
  --handle-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
}

/* Form Actions */
.transaction-form-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  justify-content: stretch;
  padding-top: 0;
}

.save-button {
  --background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  --background-hover: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
  --color: white;
  flex: 1;
  height: 64px; /* reduced from 72px */
  font-weight: 700;
  border-radius: 12px;
  font-size: 1.1rem; /* reduced from 1.2rem */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.save-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.save-button:hover::before {
  left: 100%;
}

.save-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.delete-button {
  --background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  --background-hover: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  --color: white;
  flex: 0 0 auto;
  height: 64px; /* reduced from 72px */
  font-weight: 700;
  border-radius: 12px;
  font-size: 1.1rem; /* reduced from 1.2rem */
  min-width: 120px; /* reverted from 140px */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.delete-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.delete-button:hover::before {
  left: 100%;
}

.delete-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

body.dark-theme .save-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  --background-hover: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  background-image: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  height: 64px !important; /* reduced from 72px */
  font-weight: 600 !important;
  font-size: 1.1rem !important; /* reduced from 1.2rem */
  transition: all 0.3s ease !important;
}

body.dark-theme .save-button:hover {
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
  background-image: linear-gradient(135deg, #45a049 0%, #388e3c 100%) !important;
}

body.dark-theme .delete-button {
  --color: white !important;
  --border-color: transparent !important;
  --border-width: 0 !important;
  --background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  --background-hover: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  background-image: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  height: 64px !important; /* reduced from 72px */
  font-weight: 600 !important;
  font-size: 1.1rem !important; /* reduced from 1.2rem */
  transition: all 0.3s ease !important;
}

body.dark-theme .delete-button:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
  background-image: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
}

body.dark-theme .save-button ion-label,
body.dark-theme .save-button span,
body.dark-theme .save-button div,
body.dark-theme .save-button * {
  color: white !important;
}

body.dark-theme .delete-button ion-label,
body.dark-theme .delete-button span,
body.dark-theme .delete-button div,
body.dark-theme .delete-button * {
  color: white !important;
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.toast-notification.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%);
  border-color: rgba(76, 175, 80, 0.3);
}

.toast-notification.error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(211, 47, 47, 0.9) 100%);
  border-color: rgba(244, 67, 54, 0.3);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  font-size: 1.2rem;
  color: white;
  min-width: 20px;
}

.toast-message {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  --color: white;
  --color-hover: rgba(255, 255, 255, 0.8);
  margin-left: 12px;
  min-width: 24px;
  height: 24px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading indicator styles */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: calc(100vh - 200px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.8;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Responsive Design for Transaction Page */
@media (max-width: 768px) {
  .form-fields-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .category-scenario-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .transaction-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .back-button {
    position: static;
    align-self: flex-start;
  }
  
  .transaction-title {
    font-size: 2rem;
  }
  
  .transaction-form-actions {
    flex-direction: column;
    margin-top: 1rem;
    gap: 1rem;
  }
  
  .save-button,
  .delete-button {
    width: 100%;
    flex: none;
  }
  
  .toast-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}
@media (max-width: 480px) {
  .transaction-title {
    font-size: 1.75rem;
  }
}
/* Loan Preview Card Styles */
.loan-preview-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  padding: 2.5rem 2rem; /* increased vertical padding from 2rem to 2.5rem */
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.loan-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.loan-preview-card h4 {
  color: white;
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.loan-preview-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem; /* increased from 1rem to 1.5rem for more vertical space */
}

.loan-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.loan-preview-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loan-preview-item:hover::before {
  opacity: 1;
}

.loan-preview-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loan-preview-item.total-payment {
  border-top: 2px solid #4CAF50;
  padding-top: 8px;
  margin-top: 8px;
  font-weight: bold;
  min-height: 90px;
  justify-content: center;
  box-sizing: border-box;
}

.loan-preview-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.loan-preview-value {
  font-size: 1.2rem;
  color: white;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Light theme loan preview */
body.light-theme .loan-preview-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  margin-top: 1.9rem !important; /* match dark theme spacing */
}

body.light-theme .loan-preview-card h4 {
  color: #333;
}

body.light-theme .loan-preview-label {
  color: rgba(51, 51, 51, 0.7);
}

body.light-theme .loan-preview-value {
  color: #333;
}

/* Light theme-specific spacing tweaks for transaction actions */
body.light-theme .transaction-form-actions {
  margin-top: 1.6rem !important; /* match dark theme spacing */
}

body.light-theme .right-column .transaction-form-actions {
  margin-top: 1rem !important; /* match dark theme spacing */
}

/* Dark theme loan preview */
body.dark-theme .loan-preview-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border: 1px solid rgba(102, 126, 234, 0.4);
  margin-top: 1.9rem !important; /* moved down from base 1.5rem for dark theme */
}

body.dark-theme .loan-preview-card h4 {
  color: #e0e0e0;
}

body.dark-theme .loan-preview-label {
  color: rgba(224, 224, 224, 0.7);
}

body.dark-theme .loan-preview-value {
  color: #e0e0e0;
}

@media (max-width: 768px) {
  .loan-preview-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Date Range Actions */
.date-range-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.reset-date-button {
  --color: rgba(102, 126, 234, 1);
  --border-color: rgba(102, 126, 234, 0.5);
  font-size: 0.9rem;
}

.reset-date-button:hover {
  --color: rgba(102, 126, 234, 0.8);
  --border-color: rgba(102, 126, 234, 0.8);
}

body.light-theme .reset-date-button {
  --color: rgba(102, 126, 234, 1);
  --border-color: rgba(102, 126, 234, 0.5);
}

body.dark-theme .reset-date-button {
  --color: rgba(102, 126, 234, 1);
  --border-color: rgba(102, 126, 234, 0.5);
}

/* Transaction Step Styles */
.transaction-step {
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.transaction-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.transaction-step.step-completed {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.transaction-step.step-completed::before {
  opacity: 1;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  margin-right: 1.5rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  flex-grow: 0;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.transaction-step:hover .step-number::before {
  opacity: 0.3;
}

.transaction-step.step-completed .step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transform: scale(1.05);
}

.step-header h3 {
  margin: 0;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-content {
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Light theme overrides for transaction steps */
body.light-theme .transaction-step {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .transaction-step.step-completed {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .step-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .step-header h3 {
  color: #333;
}

/* Dark theme overrides for transaction steps */
body.dark-theme .transaction-step {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .transaction-step.step-completed {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Dark theme form layout overrides */
body.dark-theme .form-fields-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  width: 100% !important;
  align-items: start !important;
  margin-bottom: 2rem !important;
}

/* Make input groups match date picker groups exactly in dark theme */
body.dark-theme .form-fields-grid .transaction-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  min-height: 80px !important;
  width: 100% !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Make columns match date picker groups exactly in dark theme */
body.dark-theme .form-fields-grid > .left-column,
body.dark-theme .form-fields-grid > .right-column {
  width: 100% !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Ensure grid columns are truly equal in dark theme */
body.dark-theme .form-fields-grid {
  grid-template-columns: 1fr 1fr !important;
  grid-gap: 2rem !important;
}

body.dark-theme .left-column, 
body.dark-theme .right-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* Ensure all input groups have consistent spacing and alignment in dark theme */
body.dark-theme .left-column .transaction-input-group,
body.dark-theme .right-column .transaction-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-height: 80px !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

body.dark-theme .form-fields-grid + .date-pickers-row {
  display: flex !important;
  gap: 1rem !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}

body.dark-theme .amount-field-row {
  display: flex !important;
  width: 100% !important;
  margin-top: 2rem !important;
  grid-column: 1 / -1 !important; /* Span across all columns */
}

body.dark-theme .date-pickers-row .date-picker-group {
  flex: 1 !important;
  width: 100% !important;
}

/* Remove dark theme overrides to use base styling with gradient */

/* Ensure select dropdowns match text inputs exactly in dark theme */
body.dark-theme .left-column select.transaction-custom-input,
body.dark-theme .right-column select.transaction-custom-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276,9 12,15 18,9%27%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 24px center !important; /* Updated to match new padding */
  background-size: 16px 16px !important;
  padding-right: 54px !important; /* Updated to match new padding */
}

body.dark-theme .step-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .step-header h3 {
  color: #e0e0e0;
}

/* Additional Visual Enhancements */
.transaction-form {
  position: relative;
  overflow: hidden;
}

.transaction-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Enhanced form field focus states */
.transaction-input-group:focus-within {
  transform: translateY(-1px);
}

.transaction-input-group:focus-within ion-label {
  color: #667eea;
  text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

/* Smooth transitions for step visibility */
.transaction-step {
  animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced scrollbar for loan preview */
.loan-preview-details::-webkit-scrollbar {
  width: 6px;
}

.loan-preview-details::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.loan-preview-details::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
}

.loan-preview-details::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Base mobile improvements - ensure proper viewport and touch targets */
@media (max-width: 768px) {
  /* Enhanced touch targets - minimum 44px for better mobile usability */
  ion-button,
  button,
  .nav-item,
  .subscription-option,
  .scenario-item,
  .profile-item {
    min-height: 44px;
    min-width: 44px;
  }

  /* User Settings Mobile Enhancements - Compact spacing like sidebar */
  .user-settings-form,
  .profile-settings-form,
  .transaction-form {
    padding: 0 0.75rem 0.5rem 0.75rem !important;
    margin-top: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure transaction form content uses full width */
  .transaction-form > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .user-settings-form .form-fields-grid,
  .profile-settings-form .form-fields-grid {
    padding: 0;
    margin: 0;
  }

  .user-settings-header,
  .profile-settings-header,
  .transaction-header {
    padding: 1.5rem 0.75rem 1rem 0.75rem;
    margin-bottom: 1rem;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .user-settings-header .back-button,
  .profile-settings-header .back-button,
  .transaction-header .back-button {
    position: fixed;
    left: 0.05rem !important;
    top: 0.05rem !important;
    transform: none;
    margin-right: 0;
    padding: 0.5rem;
    min-height: 44px;
    z-index: 1000;
  }

  .user-settings-title,
  .profile-settings-title,
  .transaction-title {
    font-size: 2rem;
    text-align: center;
    flex: 1;
    width: 100%;
    margin: 0;
  }

  .form-fields-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 1rem;
    max-width: 100%;
    width: 100%;
  }
  
  .form-fields-grid > * {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .user-input-group,
  .profile-input-group,
  .transaction-input-group {
    min-height: 70px;
    gap: 0.5rem;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
  }
  
  .user-input-group ion-label,
  .profile-input-group ion-label,
  .transaction-input-group ion-label {
    font-size: 0.9rem;
  }
  
  .user-custom-input,
  .profile-custom-input,
  .transaction-custom-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    min-height: 56px;
    padding: 18px 20px;
    font-size: 1rem;
  }
  
  .subscription-group {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Subscription Toggle - Stack vertically on mobile with spacing between cards */
  .subscription-toggle {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
    width: 100%;
  }

  .subscription-option {
    width: 100%;
    padding: 1rem;
    min-height: auto;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
  }
  
  .subscription-option:last-child {
    margin-bottom: 0;
  }
  
  /* Ensure subscription group matches input field width */
  .subscription-group {
    width: 100%;
    max-width: 100%;
  }

  .option-features {
    margin-top: 0.5rem;
  }

  .feature-item {
    font-size: 0.85em;
    padding: 0.25rem 0;
  }

  /* User Form Actions - Stack buttons vertically with compact spacing */
  .user-form-actions,
  .profile-form-actions,
  .transaction-form-actions {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
  }

  .user-form-actions ion-button,
  .profile-form-actions ion-button,
  .transaction-form-actions ion-button {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    font-size: 1rem;
    box-sizing: border-box;
    padding: 0;
  }
  
  .user-form-actions .cancel-button,
  .user-form-actions .save-button,
  .profile-form-actions .cancel-button,
  .profile-form-actions .add-button,
  .profile-form-actions .save-button,
  .transaction-form-actions .cancel-button,
  .transaction-form-actions .save-button {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
  }
  
  /* Transaction page grids - stack on mobile */
  .non-loan-fields-grid,
  .loan-fields-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 1rem !important;
  }
  
  .loan-fields-column {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Loan form layout - ensure vertical stacking on mobile */
  .loan-form-layout {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  .loan-form-layout .loan-preview-card {
    width: 100% !important;
    margin-top: 0 !important;
    order: 2;
  }
  
  .loan-form-layout .transaction-form-actions {
    order: 3;
    width: 100% !important;
  }
  
  /* Transaction page container - ensure full width */
  .welcome-content .transaction-form,
  ion-content .transaction-form {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
  }
  
  /* Transaction step mobile fixes - full width and proper spacing */
  .transaction-step {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Step header mobile fixes */
  .step-header {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }
  
  /* Step number circle - ensure it stays circular on mobile */
  .step-number {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 40px !important;
    align-self: flex-start !important;
    margin-right: 1rem !important;
    margin-top: 0 !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  
  /* Step header title - adjust font size and allow wrapping */
  .step-header h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    flex: 1 !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
  }
  
  /* Step content mobile spacing */
  .step-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Enhanced input fields for mobile */
  .user-custom-input,
  .profile-custom-input,
  .transaction-custom-input {
    min-height: 56px;
    padding: 18px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Dashboard Mobile Enhancements */
  .dashboard-content {
    padding: 0.75rem 0.75rem 1rem 0.75rem !important;
    margin-top: 0 !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  /* Calendar Page Mobile Enhancements */
  .calendar-layout {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  
  /* Hide calendar sidebar on mobile by default - override desktop styles */
  .glass-card.sidebar,
  ion-page .glass-card.sidebar,
  .welcome-content .glass-card.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 999 !important;
    background-color: #333333 !important;
    background: #333333 !important;
    background-image: none !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
    border: none !important;
    padding: 0.75rem 0.75rem 2rem 0.75rem !important;
    overflow-y: auto !important;
    padding-bottom: env(safe-area-inset-bottom, 2rem) !important;
  }
  
  .glass-card.sidebar.open,
  ion-page .glass-card.sidebar.open,
  .welcome-content .glass-card.sidebar.open {
    transform: translateX(0) !important;
  }
  
  /* Reduce spacing in calendar sidebar on mobile */
  .glass-card.sidebar .back-button-container {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  .glass-card.sidebar .back-button-container::after {
    bottom: -0.5rem !important;
  }
  
  .glass-card.sidebar .sidebar-spacer {
    height: 0.75rem !important;
    margin: 0.5rem 0 !important;
  }
  
  /* Stack back buttons vertically on mobile */
  .glass-card.sidebar .back-button-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }
  
  .glass-card.sidebar .back-button {
    margin-bottom: 0 !important;
    padding: 0.5rem 0 !important;
    font-size: 0.85rem !important;
  }
  
  /* Hide "Back to Calendar" button on desktop, show on mobile */
  .back-to-calendar-button {
    display: none;
  }
  
  .glass-card.sidebar .back-to-calendar-button {
    display: flex !important;
  }
  
  /* Add bottom spacing to quick-actions on mobile to prevent cutoff */
  .glass-card.sidebar .quick-actions {
    margin-bottom: 1.5rem !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
  }
  
  /* Override desktop calendar container positioning on mobile */
  .calendar-container {
    left: 0 !important;
    max-width: 100vw !important;
  }
  
  .glass-card.calendar-container {
    left: 0 !important;
    max-width: 100vw !important;
  }
  
  /* Show mobile menu toggle for calendar page */
  .calendar-layout ion-header .mobile-menu-toggle {
    display: block !important;
    top: 0rem !important;
    left: 0.75rem !important;
    z-index: 1001 !important;
    position: fixed !important;
  }
  
  /* Calendar mobile sidebar backdrop */
  .calendar-layout ~ .mobile-sidebar-backdrop,
  .mobile-sidebar-backdrop {
    z-index: 998 !important;
  }
  
  .calendar-container,
  .glass-card.calendar-container {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - 60px) !important;
    margin: 0 !important;
    padding: 0.75rem 0.75rem 1rem 0.75rem !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
  }
  
  .calendar-header {
    padding: 0.5rem 0 !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
  }
  
  .month-title {
    font-size: 1.25rem !important;
  }
  
  .calendar-grid {
    gap: 0.25rem !important;
  }
  
  .calendar-day-header {
    font-size: 0.7rem !important;
    padding: 0.25rem 0 !important;
  }
  
  .calendar-day {
    min-height: 60px !important;
    padding: 0.25rem !important;
    font-size: 0.85rem !important;
  }
  
  .event-item {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.3rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .event-name {
    font-size: 0.65rem !important;
  }
  
  .event-amount {
    font-size: 0.7rem !important;
  }
  
  /* Remove top spacing from calendar page */
  .welcome-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  
  ion-content.welcome-content {
    --padding-top: 0 !important;
    padding-top: 0 !important;
  }

  .stat-card {
    padding: 1rem;
    min-height: auto;
    border-radius: 12px;
  }
  
  .stat-card .glass-card {
    padding: 1rem !important;
  }

  .stat-icon {
    font-size: 1.5rem;
    min-width: 1.5rem;
    flex-shrink: 0;
  }
  
  .stat-content {
    flex: 1;
    min-width: 0;
  }

  .stat-content h3 {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    line-height: 1.2;
  }

  .stat-value {
    font-size: 1.15rem;
    line-height: 1.2;
    word-break: break-word;
  }
  
  .stat-value.positive {
    font-size: 1.15rem;
  }
  
  .stat-value.negative {
    font-size: 1.15rem;
  }
  
  /* Glass card mobile adjustments */
  .glass-card {
    border-radius: 12px;
    padding: 1rem;
  }

  /* Charts Row - Single column on mobile */
  .charts-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
  }
  
  .charts-row > * {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 !important;
  }

  .chart-card,
  .scenarios-card {
    padding: 1rem;
    border-radius: 12px;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .chart-card .glass-card,
  .scenarios-card .glass-card {
    padding: 1rem !important;
    width: 100% !important;
  }

  .chart-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }
  
  .chart-container {
    min-height: 200px;
    height: 200px;
    width: 100% !important;
  }
  
  .scenarios-container {
    padding: 0;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }
  
  .scenarios-header {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }
  
  .scenarios-icon {
    color: white !important;
    font-size: 1rem !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .scenarios-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .scenarios-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem;
    padding: 0.5rem 0;
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    -webkit-overflow-scrolling: auto !important;
  }
  
  .scenario-item {
    padding: 0.625rem 0.75rem;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  
  .scenario-item ion-toggle {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .scenario-label {
    font-size: 0.85rem;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    flex: 1;
  }
  
  .scenario-label,
  ion-label.scenario-label {
    color: white !important;
    --color: white !important;
  }
  
  .no-scenarios {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .no-scenarios ion-label {
    color: rgba(255, 255, 255, 0.6) !important;
  }
  
  .default-scenario-icon {
    color: #4CAF50 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Transaction History Table - Horizontal scroll on mobile */
  .transaction-history-section {
    padding: 0.875rem 0.75rem;
    margin: 0.75rem 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
  }

  .table-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
  }
  
  .table-header h3 {
    font-size: 0.95rem;
    margin: 0;
  }
  
  .hide-button {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
    min-height: 32px !important;
    height: auto !important;
  }
  
  .table-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    max-height: 400px;
  }

  .data-table {
    min-width: 600px;
    font-size: 0.8rem;
    width: 100%;
  }

  .data-table th {
    padding: 0.5rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
  }
  
  .data-table td {
    padding: 0.5rem 0.375rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .data-table td:last-child {
    font-weight: 600;
    font-size: 0.85rem;
  }
  
  .data-table .positive,
  .data-table td.positive {
    font-size: 0.85rem;
  }
  
  .data-table .negative,
  .data-table td.negative {
    font-size: 0.85rem;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 1;
    padding-left: 1rem;
  }

  /* Date Range Filters - Stack on mobile */
  .date-range-filters {
    padding: 0 1rem;
    margin: 1rem 0;
  }

  .date-range-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .date-field {
    width: 100%;
  }

  .date-selects {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .date-select {
    flex: 1;
    min-height: 56px;
  }

  /* Profile Settings Mobile Enhancements */
  .profile-settings-form {
    padding: 0 1rem 2rem 1rem;
  }

  .profile-settings-header {
    padding: 1.5rem 1rem 1rem 1rem;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .profile-settings-header .back-button {
    position: static;
    transform: none;
    margin-right: 1rem;
  }

  .profile-settings-title {
    font-size: 1.75rem;
    text-align: left;
    flex: 1;
  }

  .profile-form-actions {
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    margin-bottom: 2rem;
  }

  .profile-form-actions ion-button {
    width: 100%;
    height: 56px;
  }

  /* Transaction Page Mobile Enhancements */
  .transaction-form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .transaction-form-actions ion-button {
    width: 100%;
    height: 56px;
  }

  /* Sidebar Mobile Enhancements */
  .sidebar-container {
    width: 100%;
    max-width: 100vw;
    background-color: #333333;
  }

  .sidebar-container .sidebar {
    width: 100%;
    height: 100%;
    margin-left: 0;
    background-color: #333333;
    max-width: 100%;
  }

  .sidebar {
    padding: 1rem;
  }

  .sidebar-header {
    padding: 1rem 0;
  }

  .profile-info h3 {
    font-size: 1rem;
  }

  .nav-item {
    padding: 0.875rem 1rem;
    min-height: 48px;
  }

  .nav-label {
    font-size: 0.9rem;
  }

  /* Toast Notifications - Full width on mobile */
  .toast-notification {
    left: 1rem;
    right: 1rem;
    max-width: none;
    border-radius: 12px;
  }

  /* General spacing improvements */
  .glass-card {
    padding: 1.25rem;
  }

  /* Better text sizing for mobile */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
  /* Dashboard extra small improvements */
  .dashboard-content {
    padding: 0.5rem 0.5rem 0.75rem 0.5rem !important;
  }
  
  .stats-grid {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .stat-icon {
    font-size: 1.25rem;
  }
  
  .stat-content h3 {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .charts-row {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .chart-card,
  .scenarios-card {
    padding: 0.75rem;
  }
  
  .chart-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .chart-container {
    min-height: 160px;
    height: 160px;
  }
  
  .date-range-filters {
    padding: 0.75rem 0.5rem;
    margin: 0.75rem 0;
  }
  
  .transaction-history-section {
    padding: 0.75rem 0.5rem;
    margin: 0.5rem 0;
  }
  
  .table-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  
  .table-header h3 {
    font-size: 0.9rem;
  }
  
  .hide-button {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.375rem !important;
    min-height: 32px !important;
    height: auto !important;
  }
  
  .data-table {
    font-size: 0.75rem;
  }
  
  .data-table th {
    padding: 0.4rem 0.25rem;
    font-size: 0.7rem;
  }
  
  .data-table td {
    padding: 0.4rem 0.25rem;
    font-size: 0.75rem;
  }
  
  .data-table td:last-child {
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .data-table .positive,
  .data-table td.positive {
    font-size: 0.8rem;
  }
  
  .data-table .negative,
  .data-table td.negative {
    font-size: 0.8rem;
  }
  
  /* Even more compact spacing */
  .user-settings-form,
  .profile-settings-form,
  .transaction-form {
    padding: 0 0.5rem 1rem 0.5rem;
  }

  .user-settings-header,
  .profile-settings-header,
  .transaction-header {
    padding: 1.25rem 0.5rem 0.75rem 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    justify-content: center;
  }

  .user-settings-header .back-button,
  .profile-settings-header .back-button,
  .transaction-header .back-button {
    position: fixed;
    left: -1rem !important;
    top: -0rem !important;
    transform: none;
    margin-right: 0;
    z-index: 1000;
  }

  .user-settings-title,
  .profile-settings-title,
  .transaction-title {
    font-size: 1.75rem;
    text-align: center;
    width: 100%;
  }

  .form-fields-grid {
    gap: 0.875rem;
  }

  .subscription-option {
    padding: 0.875rem;
  }
  
  .user-input-group,
  .profile-input-group,
  .transaction-input-group {
    min-height: 65px;
    gap: 0.4rem;
  }
  
  .user-input-group ion-label,
  .profile-input-group ion-label,
  .transaction-input-group ion-label {
    font-size: 0.85rem;
  }
  
  .user-form-actions,
  .profile-form-actions,
  .transaction-form-actions {
    gap: 0.625rem;
    padding-top: 0.75rem;
    margin-bottom: 0rem;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .user-form-actions ion-button {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    font-size: 1rem;
    box-sizing: border-box;
    padding: 0;
  }
  
  .user-form-actions .cancel-button,
  .user-form-actions .save-button {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  /* Calendar Page Mobile Enhancements - 480px */
  .calendar-container,
  .glass-card.calendar-container {
    padding: 0.5rem 0.5rem 0.75rem 0.5rem !important;
  }
  
  .calendar-header {
    padding: 0.375rem 0 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .month-title {
    font-size: 1.1rem !important;
  }
  
  .calendar-day {
    min-height: 50px !important;
    padding: 0.2rem !important;
    font-size: 0.8rem !important;
  }
  
  .calendar-day-header {
    font-size: 0.65rem !important;
    padding: 0.2rem 0 !important;
  }
  
  .event-item {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.25rem !important;
    margin-bottom: 0.15rem !important;
  }
  
  .event-name {
    font-size: 0.6rem !important;
  }
  
  .event-amount {
    font-size: 0.65rem !important;
  }

  .option-title {
    font-size: 1em;
  }

  .option-price {
    font-size: 0.85em;
  }

  .stats-grid {
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .data-table {
    font-size: 0.85rem;
    min-width: 550px;
  }

  .data-table th,
  .data-table td {
    padding: 0.625rem 0.375rem;
  }

  /* Smaller charts on very small screens */
  .chart-card,
  .scenarios-card {
    padding: 1rem;
  }

  .chart-title {
    font-size: 1rem;
  }

  /* Compact sidebar */
  .sidebar {
    padding: 0.75rem;
  }

  .nav-item {
    padding: 0.75rem 0.875rem;
  }

  .nav-label {
    font-size: 0.85rem;
  }
}

/* Landscape orientation on mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .user-settings-header,
  .profile-settings-header {
    padding: 1rem;
  }

  .user-settings-title,
  .profile-settings-title {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Prevent text size adjustment on iOS */
@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on focus */
  }
}

/* Improve tap highlight on mobile */
* {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

/* Better scrolling on mobile */
@media (max-width: 768px) {
  .welcome-content,
  ion-content {
    -webkit-overflow-scrolling: touch;
  }
  
  /* iOS-specific fixes for scenarios card - prevent cutoff and enable interaction */
  .scenarios-card {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
    padding-bottom: 1rem !important;
  }
  
  .scenarios-card .scenarios-container {
    overflow: visible !important;
    position: relative !important;
  }
  
  .scenarios-card .scenarios-list {
    overflow: visible !important;
    position: relative !important;
  }
  
  .scenarios-card .scenario-item {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .scenarios-card .scenario-item ion-toggle {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
  }
}

/* iOS Safari specific fixes using webkit feature detection */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .scenarios-card {
      transform: translateZ(0) !important;
      will-change: auto !important;
    }
    
    .scenarios-card .scenario-item {
      transform: translateZ(0) !important;
    }
    
    .scenarios-card .scenario-item ion-toggle {
      transform: translateZ(0) !important;
      -webkit-user-select: none !important;
      -moz-user-select: none !important;
           user-select: none !important;
    }
    
    /* iOS fixes for dashboard sidebar footer */
    .sidebar-container .sidebar .sidebar-footer {
      transform: translateZ(0) !important;
      padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }
    
    .sidebar-container .sidebar .sidebar-footer .logout-item {
      transform: translateZ(0) !important;
      -webkit-tap-highlight-color: rgba(255, 107, 107, 0.2) !important;
      touch-action: manipulation !important;
    }
  }
}
:root{--ion-color-primary: #0054e9;--ion-color-primary-rgb: 0, 84, 233;--ion-color-primary-contrast: #fff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #004acd;--ion-color-primary-tint: #1a65eb;--ion-color-secondary: #0163aa;--ion-color-secondary-rgb: 1, 99, 170;--ion-color-secondary-contrast: #fff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #015796;--ion-color-secondary-tint: #1a73b3;--ion-color-tertiary: #6030ff;--ion-color-tertiary-rgb: 96, 48, 255;--ion-color-tertiary-contrast: #fff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #542ae0;--ion-color-tertiary-tint: #7045ff;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #c5000f;--ion-color-danger-rgb: 197, 0, 15;--ion-color-danger-contrast: #fff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #ad000d;--ion-color-danger-tint: #cb1a27;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-color-medium: #636469;--ion-color-medium-rgb: 99, 100, 105;--ion-color-medium-contrast: #fff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #57585c;--ion-color-medium-tint: #737478;--ion-color-dark: #222428;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #fff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e}html.ios{--ion-default-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}html.md{--ion-default-font: "Roboto", "Helvetica Neue", sans-serif}html{--ion-dynamic-font: -apple-system-body;--ion-font-family: var(--ion-default-font)}body{background:var(--ion-background-color);color:var(--ion-text-color)}body.backdrop-no-scroll{overflow:hidden}html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:first-of-type,html.ios ion-modal ion-footer ion-toolbar:first-of-type{padding-top:6px}html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:last-of-type{padding-bottom:6px}html.ios ion-modal ion-toolbar{padding-right:calc(var(--ion-safe-area-right) + 8px);padding-left:calc(var(--ion-safe-area-left) + 8px)}@media screen and (min-width: 768px){html.ios ion-modal.modal-card:first-of-type{--backdrop-opacity: 0.18}}ion-modal.modal-default.show-modal~ion-modal.modal-default{--backdrop-opacity: 0;--box-shadow: none}html.ios ion-modal.modal-card .ion-page{border-top-left-radius:var(--border-radius)}.ion-color-primary{--ion-color-base: var(--ion-color-primary, #0054e9) !important;--ion-color-base-rgb: var(--ion-color-primary-rgb, 0, 84, 233) !important;--ion-color-contrast: var(--ion-color-primary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-primary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-primary-shade, #004acd) !important;--ion-color-tint: var(--ion-color-primary-tint, #1a65eb) !important}.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #0163aa) !important;--ion-color-base-rgb: var(--ion-color-secondary-rgb, 1, 99, 170) !important;--ion-color-contrast: var(--ion-color-secondary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-secondary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-secondary-shade, #015796) !important;--ion-color-tint: var(--ion-color-secondary-tint, #1a73b3) !important}.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #6030ff) !important;--ion-color-base-rgb: var(--ion-color-tertiary-rgb, 96, 48, 255) !important;--ion-color-contrast: var(--ion-color-tertiary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-tertiary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-tertiary-shade, #542ae0) !important;--ion-color-tint: var(--ion-color-tertiary-tint, #7045ff) !important}.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd55b) !important;--ion-color-base-rgb: var(--ion-color-success-rgb, 45, 213, 91) !important;--ion-color-contrast: var(--ion-color-success-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-success-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-success-shade, #28bb50) !important;--ion-color-tint: var(--ion-color-success-tint, #42d96b) !important}.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important;--ion-color-base-rgb: var(--ion-color-warning-rgb, 255, 196, 9) !important;--ion-color-contrast: var(--ion-color-warning-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-warning-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-warning-shade, #e0ac08) !important;--ion-color-tint: var(--ion-color-warning-tint, #ffca22) !important}.ion-color-danger{--ion-color-base: var(--ion-color-danger, #c5000f) !important;--ion-color-base-rgb: var(--ion-color-danger-rgb, 197, 0, 15) !important;--ion-color-contrast: var(--ion-color-danger-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-danger-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-danger-shade, #ad000d) !important;--ion-color-tint: var(--ion-color-danger-tint, #cb1a27) !important}.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important;--ion-color-base-rgb: var(--ion-color-light-rgb, 244, 245, 248) !important;--ion-color-contrast: var(--ion-color-light-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-light-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-light-shade, #d7d8da) !important;--ion-color-tint: var(--ion-color-light-tint, #f5f6f9) !important}.ion-color-medium{--ion-color-base: var(--ion-color-medium, #636469) !important;--ion-color-base-rgb: var(--ion-color-medium-rgb, 99, 100, 105) !important;--ion-color-contrast: var(--ion-color-medium-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-medium-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-medium-shade, #57585c) !important;--ion-color-tint: var(--ion-color-medium-tint, #737478) !important}.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important;--ion-color-base-rgb: var(--ion-color-dark-rgb, 34, 36, 40) !important;--ion-color-contrast: var(--ion-color-dark-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-dark-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-dark-shade, #1e2023) !important;--ion-color-tint: var(--ion-color-dark-tint, #383a3e) !important}.ion-page{left:0;right:0;top:0;bottom:0;display:flex;position:absolute;flex-direction:column;justify-content:space-between;contain:layout size style;z-index:0}ion-modal>.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none !important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports(padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports(padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translate3d(0,  0,  0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px rgba(0,0,0,.08)}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px rgba(0,0,0,.08)}.md .menu-content-reveal{box-shadow:4px 0px 16px rgba(0,0,0,.18)}.md .menu-content-push{box-shadow:4px 0px 16px rgba(0,0,0,.18)}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:300ms transform cubic-bezier(0.25, 0.8, 0.5, 1)}@media(prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none !important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}

audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:bold}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::-moz-placeholder{padding-left:2px}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}

*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none}

html{font-family:var(--ion-font-family)}@supports(-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}

