/* Dashboard Module */
:root {
  --bg-primary: #00d4ff;
  --primary-dark: #00a8cc;
  --bg-secondary: #7b2cbf;
  --bg-tertiary: #334155;
  --success: #06d6a0;
  --warning: #ffd60a;
  --danger: #ef476f;
  --bg-dark: #0a0e27;
  --bg-card: #141b3d;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --border: #1e2742;
  
  /* Text Colors */
  --text-light: #f8fafc;
  --text-medium: #cbd5e1;
  --text-dark: #64748b;
  
  /* Accent Colors - Sky Blue Primary Colors */
  --accent-primary: #00d4ff;
  --accent-secondary: #00a8cc;
  --accent-tertiary: #ffffff;

  /* Primary Colors for Buttons */
  --primary: #00d4ff;
  --primary-dark: #00a8cc;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.12);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.4);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 27px;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 0;
  font-size: 18px;
  overflow-x: hidden;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

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

/* Animated Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Dashboard Container */
.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-screen.hidden {
  display: none;
}

/* Dashboard Header */
.dashboard-header {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.dashboard-header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0 var(--spacing-2xl);
}

.dashboard-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dashboard-header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.dashboard-header-logo .icon {
  width: 58px;
  height: 58px;
  fill: url(#logo-gradient);
  filter: 
    drop-shadow(0 0 15px rgba(102, 126, 234, 0.9)) 
    drop-shadow(0 0 30px rgba(147, 51, 234, 0.7)) 
    drop-shadow(0 0 45px rgba(59, 130, 246, 0.5))
    drop-shadow(0 0 60px rgba(236, 72, 153, 0.3));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.dashboard-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-header-logo h1,
.dashboard-logo-text h1 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
  color: white;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.dashboard-logo-text .subtitle {
  font-size: clamp(10px, 2vw, 14px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.1;
}

@keyframes logoGlow {
  0% {
    filter: 
      drop-shadow(0 0 15px rgba(102, 126, 234, 0.9)) 
      drop-shadow(0 0 30px rgba(147, 51, 234, 0.7)) 
      drop-shadow(0 0 45px rgba(59, 130, 246, 0.5))
      drop-shadow(0 0 60px rgba(236, 72, 153, 0.3));
  }
  100% {
    filter: 
      drop-shadow(0 0 25px rgba(102, 126, 234, 1)) 
      drop-shadow(0 0 40px rgba(147, 51, 234, 0.9)) 
      drop-shadow(0 0 55px rgba(59, 130, 246, 0.7))
      drop-shadow(0 0 70px rgba(236, 72, 153, 0.5));
  }
}

.dashboard-greeting {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: var(--spacing-xs);
  margin-left: calc(32px + var(--spacing-md));
  opacity: 0.8;
}

.dashboard-header-nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.dashboard-header-nav .btn-header {
  min-width: 100px;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-content: center;
}

.dashboard-header-nav .btn-header .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.dashboard-header-nav .btn-header::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 ease;
}

.dashboard-header-nav .btn-header:hover::before {
  left: 100%;
}

.dashboard-header-nav .btn-add-list {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-header-nav .btn-add-list:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-header-nav .btn-logout {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-header-nav .btn-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-header-nav .btn-menu {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.dashboard-header-nav .btn-menu::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.dashboard-header-nav .btn-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dashboard-header-nav .btn-menu:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.4);
}

.dashboard-header-nav .btn-menu:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.dashboard-header-nav .btn-header:active {
  transform: translateY(0);
}

/* Dashboard Main Content */
.dashboard-main-content {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-2xl);
  max-width: 2800px;
  margin: 0 auto;
  width: 100%;
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.dashboard-stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  text-align: center;
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
}

.dashboard-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.dashboard-account-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-account-badge.free {
  background: rgba(114, 137, 218, 0.2);
  color: var(--text-light);
}

.dashboard-account-badge.paid {
  background: rgba(72, 187, 120, 0.2);
  color: var(--text-light);
}

.dashboard-upgrade-prompt {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  color: var(--text-light);
}

.dashboard-upgrade-prompt h3 {
  margin-bottom: var(--spacing-sm);
}

.dashboard-upgrade-btn {
  margin-top: var(--spacing-md);
  background: var(--text-light);
  color: var(--accent-primary);
}

.dashboard-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Lists Grid */
.dashboard-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 380px);
  justify-content: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  width: 100%;
  margin: 0;
}

.shared-lists-header {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding: 0 var(--spacing-sm);
}

.dashboard-list-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  width: 380px;
  flex-shrink: 0;
}

.dashboard-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.dashboard-list-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--spacing-md);
}

.dashboard-list-header h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 700;
  flex: 1;
}

.dashboard-list-type {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-list-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.dashboard-list-progress {
  margin-top: var(--spacing-md);
}

.dashboard-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dashboard-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

/* List Screen */
.dashboard-list-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-list-screen.hidden {
  display: none;
}

.dashboard-add-item-section {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--glass-shadow);
}

.dashboard-add-item-form {
  display: flex;
  gap: var(--spacing-sm);
}

.dashboard-add-item-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  color: var(--text-light);
  font-size: 1rem;
}

.dashboard-add-item-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.dashboard-add-item-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-list-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
}

.dashboard-list-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.dashboard-list-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-list-item.completed {
  opacity: 0.8;
  border-color: var(--success);
  border-width: 2px;
}

.dashboard-list-item.completed .dashboard-item-title {
  text-decoration: line-through;
}

.dashboard-item-main {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
}

.dashboard-item-checkbox {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dashboard-item-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
}

.dashboard-item-checkbox .icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-item-checkbox.checked .icon {
  opacity: 1;
}

.dashboard-item-title {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast);
  flex: 1;
  min-width: 0;
  margin: 0;
}

.dashboard-item-title:hover {
  color: var(--accent-primary);
}

.dashboard-item-actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-shrink: 0;
  align-items: center;
}

.dashboard-item-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: calc(-1 * var(--spacing-md));
  margin-right: calc(-1 * var(--spacing-md));
  padding: 0 var(--spacing-md);
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
  align-items: flex-start;
  width: calc(100% + var(--spacing-md) * 2);
  box-sizing: border-box;
  position: relative;
}

.dashboard-item-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-item-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: var(--spacing-sm) 0;
  margin: var(--spacing-sm) 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.dashboard-item-description .notes-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-right: var(--spacing-xs);
}

.dashboard-item-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--spacing-sm) 0;
  margin: var(--spacing-sm) 0;
  position: relative;
}

.dashboard-item-meta-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-1 * var(--spacing-md));
  right: calc(-1 * var(--spacing-md));
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-item-due-date,
.item-due-date {
  color: var(--warning);
  font-size: 0.85rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: normal;
  text-align: left;
  white-space: nowrap;
}

.dashboard-item-due-date.overdue,
.item-due-date.overdue {
  color: var(--danger);
  font-weight: normal;
}

.dashboard-item-toggle-info {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
  margin-left: auto;
}

/* Login Screen */
.dashboard-login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--spacing-lg);
}

.dashboard-login-logo {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.dashboard-login-logo h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: var(--spacing-md) 0;
}

.dashboard-login-logo p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.dashboard-auth-tabs {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--glass-border);
}

.dashboard-tab-btn {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dashboard-tab-btn.active {
  background: var(--glass-bg);
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dashboard-auth-form {
  width: 100%;
  max-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Empty State */
.dashboard-empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-empty-state .icon-large {
  margin-bottom: var(--spacing-lg);
  opacity: 0.6;
}

.dashboard-empty-state h3 {
  color: var(--text-light);
  margin: var(--spacing-md) 0;
}

.dashboard-empty-state p {
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

/* Modals */
.dashboard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--spacing-lg);
  animation: dashboardFadeIn 0.3s ease;
  margin: 0;
  box-sizing: border-box;
}

@keyframes dashboardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dashboard-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dashboardSlideUp 0.3s ease;
  position: relative;
  margin: 0;
}

.dashboard-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

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

.dashboard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-modal-header h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-modal-body {
  padding: var(--spacing-xl);
  flex: 1;
  overflow-y: auto;
}

/* Dashboard Modal Form Fields */
.dashboard-modal-body .form-group,
.modal-body .form-group {
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.dashboard-modal-body .form-group:last-child,
.modal-body .form-group:last-child {
  margin-bottom: 0;
}

.dashboard-modal-body .form-group label,
.modal-body .form-group label {
  display: block;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.9;
}

.dashboard-modal-body .form-group input,
.dashboard-modal-body .form-group select,
.dashboard-modal-body .form-group textarea,
.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
  width: 100%;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  min-height: 56px;
  box-sizing: border-box;
}

.dashboard-modal-body .form-group textarea,
.modal-body .form-group textarea {
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.dashboard-modal-body .form-group input::placeholder,
.dashboard-modal-body .form-group textarea::placeholder,
.modal-body .form-group input::placeholder,
.modal-body .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.dashboard-modal-body .form-group input:focus,
.dashboard-modal-body .form-group select:focus,
.dashboard-modal-body .form-group textarea:focus,
.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 0 0 3px rgba(102, 126, 234, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dashboard-modal-body .form-group select,
.modal-body .form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-lg) center;
  padding-right: calc(var(--spacing-lg) * 2 + 20px);
  background-color: rgba(255, 255, 255, 0.08);
}

.dashboard-modal-body .form-group select:hover,
.modal-body .form-group select:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.dashboard-modal-body .form-group select:focus,
.modal-body .form-group select:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

.dashboard-modal-body #custom-type-group,
.modal-body #custom-type-group {
  animation: dashboardFadeIn 0.3s ease;
}

.dashboard-modal-body #custom-type-group input,
.modal-body #custom-type-group input {
  width: 100%;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  min-height: 56px;
  box-sizing: border-box;
}

.dashboard-modal-body #custom-type-group input::placeholder,
.modal-body #custom-type-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.dashboard-modal-body #custom-type-group input:focus,
.modal-body #custom-type-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 0 0 3px rgba(102, 126, 234, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dashboard-modal-footer {
  display: flex;
  gap: var(--spacing-md);
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

/* Toast Notifications */
/* Dropdown Menu */
.dashboard-dropdown-menu {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  position: fixed;
  padding: var(--spacing-sm);
  min-width: 150px;
  z-index: 1000;
}

.dashboard-dropdown-menu button {
  width: 100%;
  padding: var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--text-light);
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dashboard-dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Legacy class support - backward compatibility aliases */
.app-header,
.dashboard-header {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-content,
.dashboard-header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0 var(--spacing-2xl);
}

.header-logo,
.dashboard-header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.header-logo:hover,
.dashboard-header-logo:hover {
  opacity: 0.8;
}

.header-logo .icon,
.dashboard-header-logo .icon {
  width: 58px;
  height: 58px;
  fill: url(#logo-gradient);
  filter: 
    drop-shadow(0 0 15px rgba(102, 126, 234, 0.9)) 
    drop-shadow(0 0 30px rgba(147, 51, 234, 0.7)) 
    drop-shadow(0 0 45px rgba(59, 130, 246, 0.5))
    drop-shadow(0 0 60px rgba(236, 72, 153, 0.3));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.header-logo h1,
.dashboard-header-logo h1 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 900;
  color: white;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.dashboard-greeting {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: var(--spacing-xs);
  margin-left: calc(32px + var(--spacing-md));
  opacity: 0.8;
}

.header-actions,
.dashboard-header-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.dashboard-header-actions .btn-header {
  min-width: 120px;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  box-sizing: border-box;
}

.dashboard-header-actions .btn-header::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 ease;
}

.dashboard-header-actions .btn-header:hover::before {
  left: 100%;
}

.dashboard-header-actions .btn-login {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-header-actions .btn-login:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-header-actions .btn-header:active {
  transform: translateY(0);
}

/* List header specific layout - horizontal row */
.list-header-content {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
}

.list-header-content #back-btn {
  flex-shrink: 0;
}

#list-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast);
  flex: 1;
  min-width: 0;
  margin: 0;
}

.list-header-content .dashboard-header-actions {
  flex-shrink: 0;
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

#list-title:hover {
  color: var(--accent-primary);
}

.header-actions .btn-icon,
.dashboard-header-actions .btn-icon {
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.header-actions .btn-icon:hover,
.dashboard-header-actions .btn-icon:hover {
  transform: translateY(-2px);
}

.header-actions .btn-icon .icon,
.dashboard-header-actions .btn-icon .icon {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.header-actions .btn-icon:hover .icon,
.dashboard-header-actions .btn-icon:hover .icon {
  transform: scale(1.1);
}

/* List Trash Section */
.list-trash-section {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.trash-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.trash-toggle-btn:hover {
  background: transparent;
  transform: scale(1.05);
}

.trash-toggle-btn .icon,
.trash-toggle-btn .icon-text {
  width: 48px;
  height: 48px;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.trash-toggle-btn:hover .icon,
.trash-toggle-btn:hover .icon-text {
  transform: scale(1.1);
}

.trash-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(212, 212, 212, 0.36);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  border: 2px solid var(--glass-border);
  z-index: 1100;
  vertical-align: middle;
  margin: 0;
  padding-bottom: 2px;
}

.trash-count:empty {
  display: none;
}

/* Desktop Dock */
.desktop-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 360px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 0 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.desktop-dock.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(100%);
  pointer-events: none;
}

.dock-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.dock-left,
.dock-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dock-icon {
  position: relative;
  width: 45px;
  height: 45px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.dock-icon:hover {
  transform: scale(1.1);
}

/* Dock Tooltips */
.dock-icon::before {
  content: attr(title);
  position: absolute;
  bottom: 66px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.dock-icon::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.dock-icon:hover::before,
.dock-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

.dock-icon .icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Dock Icon Colors */
#notes-btn .icon {
  stroke: #fbbf24; /* Postit-like yellow */
}

#calculator-btn .icon {
  stroke: #3b82f6; /* Blue */
}

#wheel-btn .icon {
  stroke: #8b5cf6; /* Purple */
}

#dock-trash-btn .icon {
  stroke: #9ca3af; /* Silvery gray */
}

.dock-icon #dock-trash-count,
.dock-icon #dock-notes-count {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212, 212, 212, 0.36);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  border: 1px solid var(--glass-border);
  z-index: 1100;
}

.dock-icon #dock-trash-count:empty,
.dock-icon #dock-notes-count:empty {
  display: none;
}

/* Body overflow control for notes overlay */
body.notes-overlay-open {
  overflow: hidden;
}

/* Notes empty state */
.notes-empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px;
}

/* ========================================
   FUTURISTIC CALCULATOR STYLES
   ======================================== */

.calculator-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.calculator-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.calculator-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 20, 40, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
}

body.calculator-open {
  overflow: hidden;
}

/* Calculator Container */
.calculator-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 400px;
  max-height: 95vh;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(0, 20, 40, 0.8) 50%,
    rgba(0, 10, 30, 0.9) 75%,
    rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(25px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(0, 150, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Calculator Header */
.calculator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calculator-copy-result,
.calculator-copy-history {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
}

.calculator-copy-result:hover,
.calculator-copy-history:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.calculator-copy-result:active,
.calculator-copy-history:active {
  transform: scale(0.95);
}

/* Copy feedback notification */
.copy-feedback {
  position: fixed;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9));
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 1201;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.calculator-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(45deg, #00d4ff, #ffffff, #ff6b6b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  margin: 0;
}

.calculator-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.calculator-close:hover {
  transform: scale(1.1);
}

/* Calculator Display */
.calculator-display {
  margin-bottom: 24px;
}

.calculator-display > div {
  background: rgba(0, 10, 20, 0.8);
  backdrop-filter: blur(15px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
  position: relative;
  overflow: hidden;
}


.display-input {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  justify-content: flex-start;
  margin-bottom: 8px;
  height: 28px;
  transition: none;
}

.display-result {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  justify-content: flex-end;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  min-height: 40px;
  transition: none;
  white-space: normal;
  word-break: break-all;
  line-height: 1.2;
  max-height: 120px;
  overflow-y: auto;
}

/* Calculator Buttons */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.calculator-row {
  display: contents;
}

.calculator-button {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(0, 20, 40, 0.8) 100%);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.calculator-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.calculator-button:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* Button Types */
.calculator-button.operator {
  background: linear-gradient(135deg,
    rgba(255, 107, 107, 0.2) 0%,
    rgba(255, 107, 107, 0.1) 50%,
    rgba(100, 20, 20, 0.8) 100%);
  border-color: rgba(255, 107, 107, 0.3);
}

.calculator-button.operator:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 107, 107, 0.3),
    inset 0 1px 0 rgba(255, 107, 107, 0.2),
    inset 0 -1px 0 rgba(100, 20, 20, 0.1);
}

.calculator-button.function {
  background: linear-gradient(135deg,
    rgba(255, 193, 7, 0.2) 0%,
    rgba(255, 193, 7, 0.1) 50%,
    rgba(100, 80, 20, 0.8) 100%);
  border-color: rgba(255, 193, 7, 0.3);
}

.calculator-button.function:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 193, 7, 0.3),
    inset 0 1px 0 rgba(255, 193, 7, 0.2),
    inset 0 -1px 0 rgba(100, 80, 20, 0.1);
}

.calculator-button.number {
  background: linear-gradient(135deg,
    rgba(0, 212, 255, 0.1) 0%,
    rgba(0, 212, 255, 0.05) 50%,
    rgba(0, 40, 80, 0.8) 100%);
  border-color: rgba(0, 212, 255, 0.2);
}

.calculator-button.number:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(0, 212, 255, 0.15),
    inset 0 -1px 0 rgba(0, 40, 80, 0.1);
}

/* Button Effects */
.button-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.button-depth {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%);
  border-radius: 0 0 12px 12px;
  opacity: 0;
  pointer-events: none;
}



/* Responsive Design */
@media (max-width: 768px) {
  .calculator-container {
    width: 95vw;
    max-width: 380px;
    max-height: 85vh;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .calculator-container {
    width: 98vw;
    max-width: 360px;
    max-height: 80vh;
    padding: 16px;
  }

  .calculator-title {
    font-size: 20px;
  }

  .display-result {
    font-size: 24px;
  }

  .calculator-button {
    font-size: 16px;
    height: 50px;
  }

  .calculator-grid {
    overflow: hidden;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .calculator-container {
    width: 100vw;
    max-width: 340px;
    max-height: 75vh;
    padding: 12px;
  }

  .calculator-title {
    font-size: 18px;
  }

  .display-result {
    font-size: 20px;
  }

  .calculator-button {
    font-size: 14px;
    height: 45px;
  }

  .calculator-grid {
    overflow: hidden;
    gap: 6px;
  }

  .calculator-display > div {
    padding: 12px;
    font-size: 18px;
  }

  .calculator-history {
    max-height: 80px;
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  .calculator-container {
    width: 100vw;
    max-width: 300px;
    max-height: 70vh;
    padding: 8px;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .calculator-container::-webkit-scrollbar {
    display: none;
  }

  .calculator-title {
    font-size: 16px;
  }

  .display-result {
    font-size: 18px;
  }

  .calculator-button {
    font-size: 12px;
    height: 40px;
  }

  .calculator-grid {
    overflow: hidden;
    gap: 4px;
  }

  .calculator-display > div {
    padding: 8px;
    font-size: 16px;
  }

  .calculator-history {
    max-height: 60px;
    font-size: 11px;
  }
}

/* ========================================
   MYSTICAL FORTUNE WHEEL STYLES
   ======================================== */

/* Custom Wheel Font */
@font-face {
  font-family: 'Wheel';
  src: url('/assets/fonts/wheel.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.wheel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.wheel-overlay .wheel-main-header {
  flex-shrink: 0;
}

.wheel-backdrop {
  display: none;
}

body.wheel-open {
  overflow: hidden;
}

/* Wheel Container */
.wheel-container {
  flex: 1;
  overflow-y: auto;
  padding: 75px;
  display: flex;
  flex-direction: column;
}

/* Main Header */
.wheel-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
}

.wheel-header-left {
  flex: 1;
}

.wheel-title-with-icon {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.wheel-title-icon {
  width: 32px;
  height: 32px;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.5));
}

.wheel-header-right {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.wheel-main-title {
  font-family: 'Wheel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
  margin: 0;
  background: linear-gradient(45deg, var(--accent-primary), #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wheel-btn.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: var(--text-light);
}

.wheel-btn.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.wheel-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: var(--text-light);
}

.wheel-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Wheel Segments Display */
.wheel-segments-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
  min-height: 300px;
  position: relative;
}

.wheel-frame-icon {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0.6;
  filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.4));
  animation: wheel-frame-icon-float 3s ease-in-out infinite;
}

.wheel-frame-icon .icon {
  width: 48px;
  height: 48px;
}

@keyframes wheel-frame-icon-float {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

.wheel-outer {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(138, 43, 226, 0.3) 0%,
    rgba(138, 43, 226, 0.2) 30%,
    rgba(138, 43, 226, 0.1) 60%,
    transparent 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 80px rgba(138, 43, 226, 0.5),
    0 0 160px rgba(138, 43, 226, 0.2),
    inset 0 0 80px rgba(138, 43, 226, 0.15);
  animation: wheel-glow 4s ease-in-out infinite alternate;
}

.wheel-inner {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(45deg,
    rgba(20, 10, 40, 0.9) 0%,
    rgba(30, 15, 50, 0.95) 50%,
    rgba(20, 10, 40, 0.9) 100%);
  position: relative;
  border: 3px solid rgba(138, 43, 226, 0.5);
  box-shadow:
    inset 0 0 50px rgba(138, 43, 226, 0.3),
    0 0 40px rgba(138, 43, 226, 0.2);
  animation: wheel-rotate 20s linear infinite;
}

.wheel-center {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 215, 0, 0.4) 0%,
    rgba(138, 43, 226, 0.6) 40%,
    rgba(75, 0, 130, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 215, 0, 0.8);
  box-shadow:
    0 0 50px rgba(255, 215, 0, 0.6),
    0 0 100px rgba(138, 43, 226, 0.3),
    inset 0 0 30px rgba(138, 43, 226, 0.4);
  animation: center-pulse 3s ease-in-out infinite alternate;
}

.wheel-segments {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Mystical Artifacts */
.wheel-artifacts {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.artifact-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.artifact-orbit.inner-orbit {
  animation: artifact-orbit-inner 25s linear infinite;
}

.artifact-orbit.middle-orbit {
  animation: artifact-orbit-middle 35s linear infinite reverse;
}

.artifact-orbit.outer-orbit {
  animation: artifact-orbit-outer 45s linear infinite;
}

.artifact {
  position: absolute;
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 8px rgba(138, 43, 226, 0.6);
  animation: artifact-glow 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.4));
}

/* Size variations for different artifacts */
.artifact:nth-child(1) { font-size: 18px; }
.artifact:nth-child(2) { font-size: 22px; }
.artifact:nth-child(3) { font-size: 16px; }
.artifact:nth-child(4) { font-size: 20px; }
.artifact:nth-child(5) { font-size: 18px; }
.artifact:nth-child(6) { font-size: 16px; }

/* Special styling for different artifact types */
.artifact-orbit.inner-orbit .artifact {
  opacity: 0.8;
  font-size: 14px;
}

.artifact-orbit.middle-orbit .artifact {
  opacity: 0.7;
  font-size: 16px;
}

.artifact-orbit.outer-orbit .artifact {
  opacity: 0.6;
  font-size: 18px;
}

/* Inner orbit artifacts - positioned closer to wheel */
.artifact-orbit.inner-orbit .artifact:nth-child(1) {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.artifact-orbit.inner-orbit .artifact:nth-child(2) {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.artifact-orbit.inner-orbit .artifact:nth-child(3) {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.artifact-orbit.inner-orbit .artifact:nth-child(4) {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

/* Middle orbit artifacts */
.artifact-orbit.middle-orbit .artifact:nth-child(1) {
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.artifact-orbit.middle-orbit .artifact:nth-child(2) {
  top: 25%;
  right: 5px;
  transform: translateY(-50%);
}

.artifact-orbit.middle-orbit .artifact:nth-child(3) {
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.artifact-orbit.middle-orbit .artifact:nth-child(4) {
  top: 75%;
  left: 5px;
  transform: translateY(-50%);
}

.artifact-orbit.middle-orbit .artifact:nth-child(5) {
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
}

/* Outer orbit artifacts */
.artifact-orbit.outer-orbit .artifact:nth-child(1) {
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.artifact-orbit.outer-orbit .artifact:nth-child(2) {
  top: 15%;
  right: 0px;
  transform: translateY(-50%);
}

.artifact-orbit.outer-orbit .artifact:nth-child(3) {
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.artifact-orbit.outer-orbit .artifact:nth-child(4) {
  top: 85%;
  left: 0px;
  transform: translateY(-50%);
}

.artifact-orbit.outer-orbit .artifact:nth-child(5) {
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
}

.artifact-orbit.outer-orbit .artifact:nth-child(6) {
  top: 50%;
  left: 50px;
  transform: translateY(-50%);
}

.wheel-segment {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(138, 43, 226, 0.4), rgba(75, 0, 130, 0.6));
  border: 2px solid rgba(138, 43, 226, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow:
    0 0 20px rgba(138, 43, 226, 0.4),
    inset 0 0 10px rgba(138, 43, 226, 0.2);
  animation: segment-glow 3s ease-in-out infinite;
  cursor: pointer;
}

.wheel-segment:hover {
  transform: scale(1.2);
  box-shadow:
    0 0 30px rgba(138, 43, 226, 0.8),
    inset 0 0 15px rgba(138, 43, 226, 0.4);
  background: linear-gradient(45deg, rgba(138, 43, 226, 0.6), rgba(75, 0, 130, 0.8));
}

.wheel-segment:nth-child(1) { transform: rotate(0deg) translateY(-160px); }
.wheel-segment:nth-child(2) { transform: rotate(60deg) translateY(-160px); }
.wheel-segment:nth-child(3) { transform: rotate(120deg) translateY(-160px); }
.wheel-segment:nth-child(4) { transform: rotate(180deg) translateY(-160px); }
.wheel-segment:nth-child(5) { transform: rotate(240deg) translateY(-160px); }
.wheel-segment:nth-child(6) { transform: rotate(300deg) translateY(-160px); }


/* Wheel Animations */
@keyframes wheel-glow {
  0% {
    box-shadow:
      0 0 80px rgba(138, 43, 226, 0.5),
      0 0 160px rgba(138, 43, 226, 0.2),
      inset 0 0 80px rgba(138, 43, 226, 0.15);
  }
  100% {
    box-shadow:
      0 0 120px rgba(138, 43, 226, 0.8),
      0 0 240px rgba(138, 43, 226, 0.4),
      inset 0 0 120px rgba(138, 43, 226, 0.25);
  }
}

@keyframes wheel-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes center-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 50px rgba(255, 215, 0, 0.6),
      0 0 100px rgba(138, 43, 226, 0.3),
      inset 0 0 30px rgba(138, 43, 226, 0.4);
  }
  100% {
    transform: scale(1.1);
    box-shadow:
      0 0 80px rgba(255, 215, 0, 0.9),
      0 0 160px rgba(138, 43, 226, 0.5),
      inset 0 0 50px rgba(138, 43, 226, 0.6);
  }
}

@keyframes segment-glow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Artifact Orbit Animations */
@keyframes artifact-orbit-inner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes artifact-orbit-middle {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes artifact-orbit-outer {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes artifact-glow {
  0% {
    opacity: 0.6;
    transform: scale(0.8);
    filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.4));
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.8));
  }
  100% {
    opacity: 0.6;
    transform: scale(0.8);
    filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.4));
  }
}


/* Wheel Header */
.wheel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.wheel-title {
  font-family: 'Wheel', serif;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(45deg, #8a2be2, #ff6b6b, #4ecdc4, #45b7d1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
  margin: 0;
  letter-spacing: 1px;
}

.wheel-close {
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
}

.wheel-close:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
}

/* Two-Panel Layout */
.wheel-panels {
  display: flex;
  gap: 40px;
  flex: 1;
  min-height: 0;
}

.wheel-left-panel,
.wheel-right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Left Panel - Mystical Wheel */
.wheel-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}


/* Wheel Animations */

}

@keyframes wheelGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.wheel-symbol {
  font-size: 24px;
  z-index: 1;
  position: relative;
}


.wheel-segment:hover {
  background: rgba(138, 43, 226, 0.5);
  transform: scale(1.2) rotate(var(--rotation)) translateY(-105px);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
}

/* Fortune Display */
.fortune-display {
  min-height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fortune-text {
  font-family: 'Wheel', serif;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 100%;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.fortune-smoke {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Additional Questions Screen */
.additional-questions-screen {
  padding: var(--spacing-xl);
  text-align: center;
}

.additional-question-container {
  max-width: 600px;
  margin: 0 auto;
}

.additional-question-container h3 {
  font-family: 'Wheel', serif;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.additional-intro {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.additional-question-text {
  font-family: 'Wheel', serif;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.additional-answer-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 500px;
  margin: 0 auto;
}

/* Final Fortune Screen */
.final-fortune-screen {
  padding: var(--spacing-xl);
  text-align: center;
}

.final-fortune-display {
  max-width: 700px;
  margin: 0 auto;
}

.final-fortune-display h3 {
  font-family: 'Wheel', serif;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.final-fortune-text {
  font-family: 'Wheel', 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  max-width: 100%;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
  margin-bottom: var(--spacing-lg);
}

.final-fortune-smoke {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Goodbye Screen */
.goodbye-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  min-height: 60vh;
}

.goodbye-container {
  text-align: center;
  position: relative;
}

.goodbye-text {
  font-family: 'Wheel', serif;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
  opacity: 0;
  visibility: hidden;
  position: relative;
  z-index: 2;
}

/* Smoke particles for final reset */
.final-reset-smoke-cloud {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.8) 0%, rgba(138, 43, 226, 0.4) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .additional-question-container h3 {
    font-size: 20px;
  }

  .additional-question-text {
    font-size: 18px;
  }

  .final-fortune-display h3 {
    font-size: 24px;
  }

  .final-fortune-text {
    font-size: 18px;
  }

  .goodbye-text {
    font-size: 20px;
  }
}

.smoke-particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle,
    rgba(200, 200, 200, 0.3) 0%,
    rgba(150, 150, 150, 0.2) 50%,
    transparent 100%);
  border-radius: 50%;
  animation: smokeDrift 4s ease-out infinite;
}

.smoke-particle:nth-child(odd) {
  animation-duration: 5s;
  animation-delay: 1s;
}

.smoke-particle:nth-child(3n) {
  animation-duration: 6s;
  animation-delay: 2s;
}

@keyframes smokeDrift {
  0% {
    transform: translateY(100%) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-20%) translateX(30px) scale(1.5);
    opacity: 0;
  }
}

/* Right Panel - Questions */
.question-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.welcome-screen,
.dob-screen,
.question-screen,
.loading-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  height: 100%;
}

.welcome-screen h3,
.dob-screen h3,
.question-screen h3 {
  font-family: 'Wheel', serif;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.welcome-screen p,
.dob-screen p {
  font-family: 'Wheel', serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Question Progress */
.question-progress {
  width: 100%;
  margin-bottom: 30px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(138, 43, 226, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.6), rgba(255, 107, 107, 0.6));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Question Content */
.question-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

#question-text {
  font-family: 'Wheel', serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.answer-option {
  font-family: 'Wheel', serif;
  padding: 16px 24px;
  background: linear-gradient(135deg,
    rgba(138, 43, 226, 0.1) 0%,
    rgba(138, 43, 226, 0.05) 50%,
    rgba(20, 10, 40, 0.8) 100%);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
}

.answer-option:hover {
  background: linear-gradient(135deg,
    rgba(138, 43, 226, 0.2) 0%,
    rgba(138, 43, 226, 0.1) 50%,
    rgba(30, 15, 50, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

/* Form Controls - Elegant Custom Dropdowns */
.form-control {
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, rgba(20, 10, 40, 0.8) 0%, rgba(30, 15, 50, 0.9) 100%);
  border: 2px solid rgba(138, 43, 226, 0.3);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  min-height: 52px;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.form-control:focus {
  outline: none;
  border-color: rgba(138, 43, 226, 0.8);
  background: linear-gradient(135deg, rgba(30, 15, 50, 0.9) 0%, rgba(40, 20, 60, 0.95) 100%);
  box-shadow:
    0 0 0 4px rgba(138, 43, 226, 0.2),
    0 8px 24px rgba(138, 43, 226, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.form-control select,
.form-control option {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  background-size: 18px;
  padding-right: calc(var(--spacing-lg) + 24px);
  background-color: transparent;
  color: inherit;
  font-weight: inherit;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
}

.form-control:hover {
  background: linear-gradient(135deg, rgba(25, 12, 45, 0.85) 0%, rgba(35, 18, 55, 0.95) 100%);
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.dob-selectors {
  display: flex;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(15, 8, 30, 0.6) 0%, rgba(25, 12, 45, 0.7) 100%);
  border-radius: 16px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  backdrop-filter: blur(15px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 700px;
}

.dob-selectors .form-control {
  flex: 1;
  margin-bottom: 0;
  background: linear-gradient(135deg, rgba(30, 15, 50, 0.8) 0%, rgba(40, 20, 60, 0.9) 100%);
  border: 1px solid rgba(138, 43, 226, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dob-selectors .form-control:focus {
  border-color: rgba(138, 43, 226, 0.8);
  box-shadow:
    0 0 0 3px rgba(138, 43, 226, 0.25),
    0 4px 12px rgba(138, 43, 226, 0.3);
}

/* Buttons */
.wheel-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg,
    rgba(138, 43, 226, 0.3) 0%,
    rgba(138, 43, 226, 0.2) 50%,
    rgba(75, 0, 130, 0.8) 100%);
  border: 1px solid rgba(138, 43, 226, 0.4);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.wheel-btn:hover {
  background: linear-gradient(135deg,
    rgba(138, 43, 226, 0.4) 0%,
    rgba(138, 43, 226, 0.3) 50%,
    rgba(85, 0, 140, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.wheel-btn.secondary {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(20, 10, 40, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.wheel-btn.secondary:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(30, 15, 50, 0.9) 100%);
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Loading Animation */
.mystical-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(138, 43, 226, 0.2);
  border-top: 3px solid rgba(138, 43, 226, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loader-dots {
  display: flex;
  gap: 8px;
}

.loader-dots div {
  width: 8px;
  height: 8px;
  background: rgba(138, 43, 226, 0.6);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-dots div:nth-child(2) { animation-delay: 0.2s; }
.loader-dots div:nth-child(3) { animation-delay: 0.4s; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Reset Smoke Cloud */
.reset-smoke-cloud {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle,
    rgba(100, 100, 100, 0.8) 0%,
    rgba(50, 50, 50, 0.6) 50%,
    transparent 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1400;
  pointer-events: none;
}

/* Error Notification */
.wheel-error {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(211, 47, 47, 0.9));
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 1400;
  max-width: 90vw;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .wheel-panels {
    flex-direction: column;
    gap: 20px;
  }

  .wheel-frame {
    margin-bottom: 20px;
  }

  .wheel-outer,
  .wheel-inner {
    width: 250px;
    height: 250px;
  }

  .wheel-outer {
    width: 250px;
    height: 250px;
  }

  .wheel-inner {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .wheel-container {
    padding: 20px;
  }

  .wheel-title {
    font-size: 24px;
  }

  .wheel-outer,
  .wheel-inner {
    width: 200px;
    height: 200px;
  }

  .wheel-outer {
    width: 200px;
    height: 200px;
  }

  .wheel-inner {
    width: 160px;
    height: 160px;
  }

  .wheel-center {
    width: 60px;
    height: 60px;
  }

  .wheel-segment {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .wheel-segment:nth-child(1) { transform: rotate(0deg) translateY(-80px); }
  .wheel-segment:nth-child(2) { transform: rotate(60deg) translateY(-80px); }
  .wheel-segment:nth-child(3) { transform: rotate(120deg) translateY(-80px); }
  .wheel-segment:nth-child(4) { transform: rotate(180deg) translateY(-80px); }
  .wheel-segment:nth-child(5) { transform: rotate(240deg) translateY(-80px); }
  .wheel-segment:nth-child(6) { transform: rotate(300deg) translateY(-80px); }

  .question-container {
    padding: 20px;
  }

  .welcome-screen h3,
  .dob-screen h3,
  .question-screen h3 {
    font-family: 'Wheel', serif;
    font-size: 20px;
  }

  #question-text {
    font-family: 'Wheel', serif;
    font-size: 16px;
  }

  .wheel-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Notes Overlay */
.notes-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.notes-overlay.hidden {
  display: none;
}

.notes-container {
  flex: 1 1 0%;
/*padding: var(--spacing-lg) var(--spacing-2xl);*/
  max-width: 2800px;
  margin: 0px auto;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px 20px 30px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 15px 15px 0 0;
}

.notes-header h2 {
  margin: 0;
  color: var(--text-primary);
}

.notes {
display: block;
color: var(--text-secondary);
max-width: 380px;
font-size: 14px;
letter-spacing: 0.8;
margin-bottom: 20px;
margin-left: 60px;
padding: 10px;
background: var(--bg-card);
border-radius: 0;
border-left: 2px solid var(--primary);
}

.notes-toolbar {
  padding: 15px 30px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-container {
  max-width: 450px;
  padding: 15px 30px;
}

.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  opacity: 0.6;
  pointer-events: none;
  width: 16px;
  height: 16px;
  z-index: 1;
}

.notes-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.notes-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.notes-search-input::placeholder {
  color: var(--text-secondary);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.notes-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.notes-list {
  width: 300px;
  border-right: 1px solid var(--border-color);
  padding: 20px;
  overflow-y: auto;
}

.note-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  background: var(--bg-card);
  overflow: hidden;
}

.note-header {
  padding: 15px;
  cursor: pointer;
}

.note-item:hover .note-header {
  background: var(--glass-hover);
}

.note-item.active .note-header {
  background: var(--glass-bg);
}

.note-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.note-item.active {
  border-color: var(--accent-primary);
}

.note-footer {
  background: var(--bg-card);
}

.note-divider {
  height: 1px;
  background: var(--border-color);
  opacity: 0.3;
  margin: 0 15px;
}

.note-card .note-divider {
  margin: var(--spacing-sm) 0;
  opacity: 0.2;
}

.note-actions {
  padding: 12px 15px;
  display: flex;
  gap: 8px;
}

.note-sn {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.note-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  word-break: break-word;
}

.note-preview {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
  word-break: break-word;
  opacity: 0.8;
}

.note-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.note-actions {
  margin-top: 10px;
  display: flex;
  gap: 5px;
}

.note-actions .delete-note-btn {
  color: #ef4444; /* Faint red text */
  opacity: 0.8;
}

.note-actions .delete-note-btn:hover {
  color: #dc2626; /* Darker red on hover */
  opacity: 1;
}

/* Notes Grid - Same as Lists */
.notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 380px);
  justify-content: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  width: 100%;
  margin: 0;
}

.note-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  width: 380px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

/* Responsive note card heights */
@media (max-width: 768px) {
  .note-card {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .note-card {
    min-height: 300px;
  }
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.note-card .note-sn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.note-card .note-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  margin-top: 30px;
  line-height: 1.3;
  word-break: break-word;
}

.note-card .note-preview {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: var(--spacing-sm) 0;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-number {
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 0.7;
  margin-right: 8px;
}

.note-card .note-date {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Category suggestions */
.category-suggestions {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.category-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.category-suggestion-item:hover {
  background: var(--glass-bg);
}

.category-suggestion-item:last-child {
  border-bottom: none;
}

.list-footer-actions {
  display: flex;
  gap: 16px;
}

.list-footer-actions button {
  padding: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.list-footer-actions button:hover {
  background: transparent;
}

.list-footer-actions button .icon {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  transition: all 0.3s ease;
}

.list-footer-actions button:hover .icon {
  stroke: var(--text-primary);
  transform: translateY(-1px);
}

/* Full screen editor overlay */
.note-editor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.note-editor-overlay.active {
  opacity: 1;
  visibility: visible;
}

.note-editor-overlay .notes-header {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.note-editor-overlay .note-editor {
  flex: 1;
  background: var(--bg-card);
  border-radius: 0;
  height: 100%;
}

.note-editor-overlay .note-editor .note-editor-header {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.note-editor-overlay .note-editor .note-editor-toolbar {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.note-editor-overlay .note-editor .note-editor-content {
  background: var(--bg-card);
}

.note-editor-overlay .note-editor-content {
  height: calc(100vh - 120px);
  border: none;
}

.note-editor-overlay #note-content {
  height: 100%;
  padding: 40px;
  font-size: 16px;
  line-height: 1.6;
}

.note-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.note-editor.hidden {
  display: none;
}

.note-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.note-title-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.note-title-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
}

.note-category-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
}

.note-category-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
}

/* Use existing modal form styling for consistency */
.note-category-section #note-category,
.note-category-section #note-category-custom {
  width: auto;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  min-height: 36px;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 30px;
}

.note-category-section #note-category:hover,
.note-category-section #note-category-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.note-category-section #note-category:focus,
.note-category-section #note-category-custom:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 3px rgba(102, 126, 234, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

#note-title {
  flex: 1;
  margin-right: 20px;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.3s ease;
}

#note-title:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

#note-title {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.note-editor-actions {
  display: flex;
  gap: 10px;
}

.note-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  flex-wrap: wrap;
  min-height: 50px;
}

/* Ensure toolbar buttons are visible on small screens */
@media (max-width: 768px) {
  .note-editor-toolbar {
    gap: 3px;
    padding: 8px 0;
    justify-content: flex-start;
  }

  .note-editor-toolbar .btn {
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
  }

  .note-editor-toolbar .btn .icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .note-editor-toolbar {
    gap: 2px;
    padding: 6px 0;
  }

  .note-editor-toolbar .btn {
    min-width: 32px;
    min-height: 32px;
    padding: 4px;
  }

  .note-editor-toolbar .btn .icon {
    width: 16px;
    height: 16px;
  }
}

.format-align {
  display: flex;
  gap: 2px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border-color);
}

.note-editor-content {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
}

#note-content {
  width: 100%;
  height: 100%;
  padding: 20px;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  overflow-y: auto;
}

#note-content:empty::before {
  content: attr(placeholder);
  color: var(--text-secondary);
  pointer-events: none;
}

/* Note formatting styles */
#note-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 24px 0 12px 0;
  color: var(--text-primary);
  line-height: 1.2;
}

#note-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: var(--text-primary);
}

#note-content ul {
  padding-left: 20px;
  margin: 10px 0;
}

#note-content li {
  margin-bottom: 5px;
}

#note-content strong {
  font-weight: 600;
}

#note-content em {
  font-style: italic;
}

#note-content p {
  margin: 10px 0;
}

#note-content[style*="text-align: center"] p {
  text-align: center;
}

#note-content[style*="text-align: right"] p {
  text-align: right;
}

/* Trash Panel - Elegant Glassy Design */
.trash-panel {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  
  width: min(90vw, 100%);
  height: 50vh;
  max-width: 100%;
  
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 16px;
  
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 20px 40px,
    rgba(0, 0, 0, 0.06) 0px 8px 16px,
    rgba(255, 255, 255, 0.05) 0px 0px 0px 1px,
    rgba(255, 255, 255, 0.1) 0px 1px 0px inset;
  
  display: flex;
  flex-direction: column;
  
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1300;
  opacity: 1;
}

.trash-panel.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
}

.trash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  position: relative;
}

.trash-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.03) 0%,
    rgba(147, 197, 253, 0.02) 50%,
    rgba(219, 234, 254, 0.01) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.trash-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.trash-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.trash-actions .btn {
  padding: 6px 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
  text-transform: none;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.trash-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(147, 197, 253, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.trash-actions .btn:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.2) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trash-actions .btn:hover::before {
  opacity: 1;
}

.trash-actions .btn .icon {
  width: 12px;
  height: 12px;
  position: relative;
  z-index: 1;
}

.trash-panel .btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.trash-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0; /* Ensure flex child can shrink */
}

.trashed-lists-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.trashed-lists-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.trashed-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 6px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.trashed-list-item:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 100%);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trashed-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.01) 0%,
    rgba(147, 197, 253, 0.005) 50%,
    rgba(219, 234, 254, 0.002) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.trashed-list-item:last-child {
  margin-bottom: 0;
}

.trashed-list-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1;
}

.trashed-list-meta {
  font-size: 12px;
  color: var(--text-primary);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.trashed-list-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.trashed-list-actions .btn {
  padding: 8px 16px;
  font-size: 11px;
  min-width: 60px;
}

.trashed-list-actions .icon {
  width: 14px;
  height: 14px;
}

.trash-footer {
  padding: 14px 20px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
  position: relative;
}

.trash-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.02) 0%,
    rgba(147, 197, 253, 0.01) 50%,
    rgba(219, 234, 254, 0.005) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.trash-footer-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.trash-footer-content p {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Glassy button styles for trash popup */
.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg)!important;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 204, 0.4);
}

.btn-outline-danger {
  background: transparent;
  backdrop-filter: blur(10px);
  border: 1px solid var(--danger);
  color: var(--danger);
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
  transform: translateY(-1px);
}

/* Reset confirmation modal button styling */
.confirm-reset-note {
  color: rgba(239, 71, 111, 0.8); /* Faint red text */
}

.trash-info {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.trash-info p {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

.trash-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-style: italic;
}

.main-content {
  flex: 1;
  padding: 10px 50px;
  width: 100%;
  margin: 0;
}


.list-card,
.dashboard-list-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.dashboard-list-card.all-done,
.list-card.all-done {
  border-color: var(--success);
  border-width: 2px;
}

.list-card-footer,
.dashboard-list-card-footer {
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  width: 100%;
}


.list-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: var(--spacing-xs) var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

.list-footer-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-align: center;
}

.list-footer-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  text-align: center;
}

.list-footer-value.default-value {
  color: var(--accent-primary);
  opacity: 0.8;
}

.list-footer-value.done-same {
  color: var(--accent-primary);
  opacity: 0.9;
  font-weight: 600;
}

.list-footer-value.done-early {
  color: #22c55e;
  font-weight: 600;
}

.list-footer-value.done-late {
  color: #ef4444;
  font-weight: 600;
}

/* Specific styling for expiration timer */
.expires-timer {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #f59e0b;
  text-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* Ensure expires footer item has enough space */
.list-footer-item:has(.expires-timer) {
  flex: 0 0 auto;
  min-width: 80px;
}

@media (max-width: 768px) {
  .list-card-footer,
  .dashboard-list-card-footer {
    padding-top: var(--spacing-sm);
    justify-content: space-between;
  }
  
  .list-footer-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 2px;
  }
  
  .list-footer-label {
    font-size: 0.65rem;
  }
  
  .list-footer-value {
    font-size: 0.75rem;
  }
}

.list-card:hover,
.dashboard-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.dashboard-list-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.dashboard-list-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.list-header,
.dashboard-list-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--spacing-md);
}

.list-header h3,
.dashboard-list-header h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-type,
.dashboard-list-type {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.list-stats,
.dashboard-list-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.list-progress,
.dashboard-list-progress {
  margin-top: var(--spacing-md);
}

.progress-bar,
.dashboard-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill,
.dashboard-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.add-item-section,
.dashboard-add-item-section {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--glass-shadow);
}

.add-item-form,
.dashboard-add-item-form {
  display: flex;
  gap: var(--spacing-sm);
}

.add-item-form input,
.dashboard-add-item-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  color: var(--text-light);
  font-size: 1rem;
}

.add-item-form input::placeholder,
.dashboard-add-item-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.add-item-form input:focus,
.dashboard-add-item-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.15);
}

.list-items,
.dashboard-list-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.list-item,
.dashboard-list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  min-height: 72px;
}

.list-item:hover,
.dashboard-list-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.list-item.completed,
.dashboard-list-item.completed {
  opacity: 0.8;
  border-color: var(--success);
  border-width: 2px;
}

.list-item.completed .item-title,
.dashboard-list-item.completed .dashboard-item-title {
  text-decoration: line-through;
}

.item-checkbox,
.dashboard-item-checkbox {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.item-checkbox.checked,
.dashboard-item-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
}

.item-checkbox .icon,
.dashboard-item-checkbox .icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item-checkbox.checked .icon,
.dashboard-item-checkbox.checked .icon {
  opacity: 1;
}

.item-content,
.dashboard-item-content {
  flex: 1;
  min-width: 0;
}

.item-title,
.dashboard-item-title {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.item-title:hover,
.dashboard-item-title:hover {
  color: var(--accent-primary);
}

.item-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-description .notes-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-right: var(--spacing-xs);
}

.dashboard-item-toggle-info {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.4;
}

.item-due-date {
  color: var(--warning);
  font-size: 0.85rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: normal;
  display: inline;
}

.item-actions,
.dashboard-item-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.item-actions .btn-icon,
.dashboard-item-actions .btn-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  transition: background 0.3s ease;
}

.item-actions .btn-icon:hover,
.dashboard-item-actions .btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.item-actions .btn-icon .icon,
.dashboard-item-actions .btn-icon .icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.login-container,
.dashboard-login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--spacing-lg);
}

.logo,
.dashboard-login-logo {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.logo h1,
.dashboard-login-logo h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: var(--spacing-md) 0;
}

.logo p,
.dashboard-login-logo p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.auth-tabs,
.dashboard-auth-tabs {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--glass-border);
}

.tab-btn,
.dashboard-tab-btn {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-btn.active,
.dashboard-tab-btn.active {
  background: var(--glass-bg);
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.auth-form,
.dashboard-auth-form {
  width: 100%;
  max-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-2xl);
  padding: 30px 15px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Trash Empty State */
/*.empty-state {*/
/*position: absolute;*/
/*inset: 0;*/
/*display: flex;*/
/*flex-direction: column;*/
/*align-items: center;*/
/*justify-content: center;*/
/*text-align: center;*/
/*z-index: 2;*/
/*padding: 20px;*/
/*padding: 20px;*/
/*color: var(--text-secondary);*/
/*width: 100%;*/
/*max-width: 280px;*/
/*}*/
/**/
/*.empty-state-icon {*/
/*font-size: 3rem;*/
/*margin-bottom: 12px;*/
/*opacity: 0.6;*/
/*}*/
/**/
/*.empty-state h3 {*/
/*margin: 0 0 8px 0;*/
/*color: var(--text-primary);*/
/*font-size: 16px;*/
/*}*/
/**/
/*.empty-state p {*/
/*margin: 0;*/
/*font-size: 14px;*/
/*}*/

.empty-state,
.dashboard-empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin: var(--spacing-xl) auto;
  max-width: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.empty-state::before,
.dashboard-empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.6;
}

.empty-state .icon-large,
.dashboard-empty-state .icon-large {
  margin-bottom: var(--spacing-lg);
  opacity: 0.7;
  color: var(--accent-primary);
  filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.3));
}

.empty-state h3,
.dashboard-empty-state h3 {
  color: var(--text-primary);
  margin: var(--spacing-md) 0 var(--spacing-sm) 0;
  font-weight: 600;
  font-size: 1.4rem;
}

.empty-state p,
.dashboard-empty-state p {
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.empty-state-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-style: italic;
  opacity: 0.8;
}

.modal-overlay,
.dashboard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--spacing-lg);
  animation: dashboardFadeIn 0.3s ease;
  margin: 0;
  box-sizing: border-box;
}

.modal-overlay.hidden,
.dashboard-modal-overlay.hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

#password-update-modal.hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 0;
  height: 0;
}

#password-update-modal[style*="display: none"] {
  pointer-events: none;
  z-index: -1;
}

.modal,
.dashboard-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dashboardSlideUp 0.3s ease;
  position: relative;
  margin: 0;
}

.confirmation-modal {
  height: auto;
  max-height: none;
}

.confirmation-modal .modal-body {
  flex: 0 0 auto;
  height: auto;
  overflow: visible;
}

.modal::before,
.dashboard-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.modal-header,
.dashboard-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.modal-header h3,
.dashboard-modal-header h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.modal-body,
.dashboard-modal-body {
  padding: var(--spacing-xl);
  flex: 1;
  overflow-y: auto;
}

.modal-footer,
.dashboard-modal-footer {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  padding: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.confirmation-message {
  text-align: center;
}

.confirmation-text {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
}

.confirmation-item-details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.confirmation-item-name {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.confirmation-item-due-date {
  color: var(--warning);
  font-size: 0.95rem;
  font-weight: 500;
}

.share-link-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

.share-link-container {
  display: flex;
  gap: var(--spacing-sm);
  align-items: stretch;
}

.share-link-container input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  color: var(--text-light);
  font-size: 0.95rem;
  cursor: text;
  height: 44px;
  box-sizing: border-box;
}

.share-link-container input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.12);
}

.share-link-container .copy-link-btn {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-height: 44px;
  padding: 0 var(--spacing-lg);
}

.dashboard-recent-changes-section {
  margin-top: var(--spacing-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
}

.dashboard-recent-changes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.dashboard-recent-changes-header h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-recent-changes-header .changes-toggle-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.dashboard-recent-changes-content {
  transition: all 0.3s ease;
}

.dashboard-recent-changes-content.hidden {
  display: none;
}

.changes-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.change-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--primary);
}

.change-item-left {
  flex: 1;
  min-width: 0;
}

.change-action {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--spacing-xs);
  text-transform: capitalize;
}

.change-value {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.change-item-right {
  text-align: right;
  flex-shrink: 0;
  min-width: 120px;
}

.change-user {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.change-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.shared-list-card {
  cursor: pointer;
}

.shared-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-light);
  font-size: 16px;
  font-weight: 700;
  height: 44px;
  box-sizing: border-box;
}

.shared-badge .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.shared-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.shared-link-info {
  flex: 1;
  min-width: 0;
  pointer-events: none;
}

.shared-link-info > * {
  pointer-events: auto;
}

.shared-link-title {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.shared-link-url {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  word-break: break-all;
  margin-bottom: var(--spacing-xs);
}

.shared-link-status-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.shared-link-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  display: inline-block;
  flex-shrink: 0;
}

.shared-link-status.active {
  background: rgba(6, 214, 160, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}

.shared-link-status.paused {
  background: rgba(255, 210, 10, 0.2);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.shared-link-list-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-style: italic;
}

.shared-link-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
  align-items: center;
}

.shared-link-actions .btn-icon {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: none;
}

.shared-link-actions .btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.shared-link-actions .btn-icon .icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.toast,
.dashboard-toast {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 10px 15px;
  color: var(--text-light);
  font-weight: 600;
  box-shadow: var(--glass-shadow);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 10001;
  box-sizing: border-box;
  max-width: min(300px, calc(100vw - (2 * var(--spacing-lg))));
  height: fit-content;
  overflow-y: auto;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.toast.show,
.dashboard-toast.show {
  transform: translateX(0);
}

.toast-success,
.dashboard-toast-success {
  border-left: 4px solid var(--success);
}

.toast-error,
.dashboard-toast-error {
  border-left: 4px solid var(--error);
}

.toast-warning,
.dashboard-toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-info,
.dashboard-toast-info {
  border-left: 4px solid var(--info);
}

/* Flex text handling for icon + text layouts */
.toast .toast-text,
.dashboard-toast .toast-text {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Slide Menu */
.slide-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.slide-menu.active {
  pointer-events: all;
}

.slide-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-menu.active .slide-menu-overlay {
  opacity: 1;
}

.slide-menu-content,
.slide-menu-submenu {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Keep overflow hidden on parent, but allow child to scroll */
}

.slide-menu.active .slide-menu-content,
.slide-menu.active .slide-menu-submenu.active {
  transform: translateX(0);
}

.slide-menu-submenu {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(100%);
}

.slide-menu-submenu.active {
  transform: translateX(0);
}

/* Full screen menu for Plan Details */
.full-screen-menu {
  /* Hidden by default - normal submenu behavior */
  transform: translateX(100%);
}

.full-screen-menu.active {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateX(0);
  z-index: 10001; /* Higher than slide-menu (10000) */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  pointer-events: all; /* Ensure it captures all pointer events */
}

/* Ensure header and footer don't shrink */
.full-screen-menu.active .slide-menu-header {
  flex-shrink: 0;
}

.full-screen-menu.active .slide-menu-footer {
  flex-shrink: 0;
}

.full-screen-menu.active .slide-menu-body {
  flex: 1 1 0;
  display: block; /* Changed from flex to block - this is key! */
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-xl);
  padding-bottom: 120px; /* Space for absolute footer */
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  height: 0; /* Critical: allows flex child to shrink */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.full-screen-menu.active .slide-menu-body::-webkit-scrollbar {
  width: 6px;
}

.full-screen-menu.active .slide-menu-body::-webkit-scrollbar-track {
  background: transparent;
}

.full-screen-menu.active .slide-menu-body::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.full-screen-menu.active .slide-menu-body::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* Partner program specific - center content horizontally */
#partner-program-submenu.full-screen-menu.active {
  z-index: 10001; /* Ensure it's above everything */
  pointer-events: all;
}

#partner-program-submenu.full-screen-menu.active .slide-menu-body {
  display: block; /* Block display for proper scrolling */
  padding-top: var(--spacing-md);
  padding-bottom: 0; /* No footer, so no bottom padding needed */
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 0;
  min-height: 0;
  height: 0; /* Critical for flex scrolling */
  pointer-events: all;
}

/* Hide footer for partner program submenu */
#partner-program-submenu.full-screen-menu.active .slide-menu-footer {
  display: none;
}

/* Hide footer for plan details submenu */
#plan-details-submenu.full-screen-menu.active .slide-menu-footer {
  display: none;
}

/* Adjust body padding for plan details submenu (no footer) */
#plan-details-submenu.full-screen-menu.active .slide-menu-body {
  padding-bottom: 0;
}

/* Partner program submenu header layout */
#partner-program-submenu .slide-menu-header {
  justify-content: space-between;
}

#partner-program-submenu .slide-menu-header h2 {
  flex: none;
  text-align: left;
  margin-right: auto;
}

/* Plan details submenu header layout */
#plan-details-submenu .slide-menu-header {
  justify-content: space-between;
}

#plan-details-submenu .slide-menu-header h2 {
  flex: none;
  text-align: left;
  margin-right: auto;
}

/* Prevent clicks from going through Partner Program overlay */
#partner-program-submenu.full-screen-menu.active * {
  pointer-events: auto;
}

/* Disable pointer events on elements behind Partner Program overlay */
body:has(#partner-program-submenu.full-screen-menu.active) #lists-container,
body:has(#partner-program-submenu.full-screen-menu.active) .dashboard-lists-grid,
body:has(#partner-program-submenu.full-screen-menu.active) .dashboard-main-content {
  pointer-events: none;
}

/* Fallback for browsers that don't support :has() */
#partner-program-submenu.full-screen-menu.active ~ *,
#partner-program-submenu.full-screen-menu.active ~ * * {
  /* This won't work, so we handle it in JS */
}

.full-screen-menu.active .plan-details-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.full-screen-menu.active .pricing-container {
  justify-content: center;
  width: 100%;
}

.full-screen-menu.active .slide-menu-header {
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  padding: var(--spacing-lg) var(--spacing-2xl);
}

.full-screen-menu.active .slide-menu-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: var(--spacing-lg) var(--spacing-2xl);
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--glass-border);
  z-index: 1002;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.full-screen-menu.active .slide-menu-footer .trust-badges {
  margin-bottom: var(--spacing-sm);
}

.full-screen-menu.active .slide-menu-footer .slide-menu-back-footer {
  margin-top: 0;
  display: none;
}

.full-screen-menu.active .slide-menu-back-footer {
  cursor: pointer;
  pointer-events: auto;
}

.full-screen-menu.active .slide-menu-body {
  padding-bottom: 180px; /* Space for footer with trust badges */
}

.slide-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  min-height: 60px;
}

.slide-menu-header h2 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
  text-align: center;
}

.slide-menu-header,
.slide-menu-header .slide-menu-close {
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
  margin-right: -5px;
}

.slide-menu-header .btn-icon:hover,
.slide-menu-header .slide-menu-close:hover {
  transform: translateY(-2px);
}

.slide-menu-header .btn-icon:active,
.slide-menu-header .slide-menu-close:active {
  transform: translateY(-1px);
}

.slide-menu-header .btn-icon .icon,
.slide-menu-header .slide-menu-close .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.slide-menu-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--spacing-md);
  min-height: 0; /* Important for flex scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  height: 0; /* Critical: allows flex child to shrink and enable scrolling */
}

.slide-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: var(--spacing-sm);
  text-align: left;
}

.slide-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.slide-menu-item .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.slide-menu-item .icon-arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
}

.slide-menu-item span {
  flex: 1;
}

.slide-menu-item-with-submenu {
  display: flex;
  align-items: center;
}

.slide-menu-item-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.slide-menu-item-subtitle {
  font-size: 14px;
  opacity: 0.7;
  font-weight: 400;
}

.slide-menu-empty,
.slide-menu-loading {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-muted);
  font-size: 14px;
}

.slide-menu-shared-item {
  cursor: pointer;
}

.slide-menu-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
}

.slide-menu-footer .slide-menu-close-footer {
  width: 100%;
  padding: var(--spacing-lg);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
}

.slide-menu-footer .slide-menu-close-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.slide-menu-footer .slide-menu-close-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.4);
}

.slide-menu-footer .slide-menu-close-footer:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

.slide-menu-footer .slide-menu-close-footer:active {
  transform: translateY(0);
}

.slide-menu-footer .slide-menu-close-footer .icon,
.slide-menu-footer .slide-menu-back-footer .icon,
.slide-menu-footer .slide-menu-logout-footer .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.slide-menu-footer .slide-menu-logout-footer {
  width: 100%;
  padding: var(--spacing-lg);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(239, 68, 68, 0.2);
}

.slide-menu-footer .slide-menu-logout-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.slide-menu-footer .slide-menu-logout-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 40px rgba(239, 68, 68, 0.4);
}

.slide-menu-footer .slide-menu-logout-footer:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

.slide-menu-footer .slide-menu-logout-footer:active {
  transform: translateY(0);
}

.slide-menu-footer .slide-menu-back-footer {
  width: 100%;
  padding: var(--spacing-lg);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
}

.slide-menu-footer .slide-menu-back-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.slide-menu-footer .slide-menu-back-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.4);
}

.slide-menu-footer .slide-menu-back-footer:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

.slide-menu-footer .slide-menu-back-footer:active {
  transform: translateY(0);
}

.slide-menu-item-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
}

/* ===== Plan Details Cards ===== */
.plan-details-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Current Plan Card */
.plan-status {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.plan-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.03) 0%,
    rgba(138, 43, 226, 0.03) 50%,
    transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.plan-status .plan-info {
  border: 2px dashed rgba(59, 130, 246, 0.5);
  border-radius: 12px;
  padding: var(--spacing-lg);
  background: rgba(59, 130, 246, 0.05);
  position: relative;
}

.plan-status .plan-info::before {
  content: 'CURRENT PLAN';
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-info {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.plan-info h3 {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.plan-name {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 var(--spacing-xs) 0;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

/* Subscription Details */
.subscription-details {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.billing-info {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.billing-info small {
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.8;
}

.billing-info span {
  color: var(--accent-primary);
  font-weight: 600;
}

.cancel-section {
  text-align: center;
}

/* Premium Plans Card */
.plans-showcase {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.plans-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(138, 43, 226, 0.05) 50%,
    rgba(102, 126, 234, 0.05) 100%);
  opacity: 0.3;
  pointer-events: none;
}

.plans-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.subscription-details {
  text-align: center;
}

.billing-info {
  text-align: center;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--spacing-md);
}

.billing-info small {
  color: var(--text-secondary);
}

.plan-toggle-section {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.plan-toggle {
  width: 56px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: 2px solid var(--primary);
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 15px rgba(0, 212, 255, 0.2);
}

.plan-toggle:hover {
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 30px rgba(0, 212, 255, 0.4);
}

.plan-toggle::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
  pointer-events: none;
}

.plan-toggle:hover::after {
  opacity: 1;
  animation: shine 1.5s infinite;
}

.plan-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.plan-toggle.active::before {
  transform: translateX(28px);
}

@media (max-width: 768px) {
  .dashboard-header-nav .btn-add-list,
  .dashboard-header-nav .btn-logout {
    display: none;
  }

  /* Full width buttons in mobile slide menus */
  .slide-menu-footer .btn {
    margin: 0 auto;
  }
  
  .dashboard-header-nav {
    gap: var(--spacing-sm);
  }
  
  .dashboard-header-nav .btn-header {
    min-width: 80px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
  }
  
  .slide-menu-content,
  .slide-menu-submenu {
    width: 100%;
    max-width: 100vw;
  }
  
  .slide-menu-header {
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 56px;
  }
  
  .slide-menu-header h2 {
    font-size: 1.25rem;
    text-align: left;
  }
  
  .slide-menu-header .slide-menu-close {
    min-width: 44px;
    margin-right: 10px;
    border: none!important;
    border-radius: none!important;
    background: transparent!important;
  }

  .slide-menu-header .slide-menu-close:hover {
    transform: translateY(-2px);
  }

  .slide-menu-header .slide-menu-close:active {
    transform: translateY(-1px);
  }
  
  .slide-menu-footer {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .slide-menu-footer .slide-menu-close-footer,
  .slide-menu-footer .slide-menu-back-footer,
  .slide-menu-footer .slide-menu-logout-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 18px;
    min-height: 56px;
  }
  
  .slide-menu-overlay {
    background: rgba(0, 0, 0, 0.7);
  }
}

.dropdown-menu,
.dashboard-dropdown-menu {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  position: fixed;
  padding: var(--spacing-sm);
  min-width: 150px;
  z-index: 1000;
}

.dropdown-menu button,
.dashboard-dropdown-menu button {
  width: 100%;
  padding: var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--text-light);
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dropdown-menu button:hover,
.dashboard-dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header-content {
    flex-wrap: wrap;
    padding: 0 var(--spacing-lg);
  }
  
  .list-header-content {
    flex-wrap: nowrap;
  }
  
  .dashboard-greeting {
    margin-left: 0;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .dashboard-lists-grid {
    grid-template-columns: 1fr;
    padding: var(--spacing-lg) 12px;
    gap: var(--spacing-lg);
  }

  .dashboard-list-card {
    width: calc(100vw - 24px); /* Comfortable margins - 12px each side */
    max-width: none; /* No max width on mobile */
  }
  
  .dashboard-add-item-form {
    flex-direction: column;
  }
  
  .dashboard-add-item-form input {
    width: 100%;
  }
  
  .dashboard-item-footer {
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + var(--spacing-md) * 2);
  }
  
  .dashboard-item-description {
    padding: var(--spacing-xs) 0;
    margin: var(--spacing-xs) 0;
  }
  
  .dashboard-item-meta-row {
    padding: var(--spacing-xs) 0;
    margin: var(--spacing-xs) 0;
    flex-wrap: nowrap;
  }
  
  .dashboard-item-due-date,
  .dashboard-item-toggle-info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .dashboard-item-due-date {
    flex: 0 1 auto;
    min-width: 0;
  }
  
  .dashboard-item-toggle-info {
    flex: 0 0 auto;
    margin-left: var(--spacing-sm);
  }
  
  .dashboard-item-main {
    gap: var(--spacing-sm);
  }
  
  .dashboard-item-checkbox {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .dashboard-item-description {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
  }
  
  .dashboard-modal {
    margin: var(--spacing-md);
    max-width: none;
  }
  
  .dashboard-toast {
    right: var(--spacing-md);
    left: var(--spacing-md);
    max-width: calc(100vw - (2 * var(--spacing-md)));
    height: fit-content;
  }
  
  .dashboard-auth-form {
    margin: 0 var(--spacing-md);
  }
  
  .dashboard-login-logo h1 {
    font-size: 2.5rem;
  }
  
  .dashboard-header-logo h1,
  .dashboard-logo-text h1 {
    font-size: clamp(18px, 3.5vw, 24px);
  }
  
  .dashboard-header-logo .icon {
    width: clamp(40px, 7vw, 58px);
    height: clamp(40px, 7vw, 58px);
  }
}

/* Password Update Modal Styles */
.password-update-modal {
  max-width: 480px;
}

.password-update-form .form-group {
  margin-bottom: var(--spacing-lg);
}

.password-update-form .form-group label {
  display: block;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
}

.password-update-form .form-hint {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
  line-height: 1.4;
}

.password-update-form .form-error {
  display: block;
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(239, 71, 111, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 71, 111, 0.3);
}

.password-update-form .form-error.hidden {
  display: none;
}

.password-update-form .form-error.success {
  color: var(--success);
  background: rgba(6, 214, 160, 0.1);
  border-color: rgba(6, 214, 160, 0.3);
}

.password-update-form .form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 71, 111, 0.1);
}

.password-update-form .form-control.success {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1);
}

.password-update-form .modal-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.password-update-form .modal-actions .btn {
  flex: 1;
}

/* ===== Layout ===== */
.plans-showcase {
  max-width: 900px;
  margin: auto;
}

.plans-title {
  text-align: center;
  margin-bottom: 1rem;
}

.pricing-container {
  position: relative;
  display: flex;
  align-items: center;
}

.pricing-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Slider track */
.pricing-grid {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Each card = full width on mobile */
.pricing-card {
  min-width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-align: center;
}

/* Featured */
.featured {
  border: 2px solid rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.08);
}

.plan-badge {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 4px 12px;
  font-size: 0.65rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin: 0 auto 20px auto;
}

/* Best Value badge with bluish gradient */
.plan-badge-best-value {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.pricing-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 15px 0;
}

.price {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.period {
  color: var(--text-secondary);
  font-size: 14px;
  display: block;
  margin-bottom: 25px;
}

.plan-features {
  margin-top: 30px;
}

.plan-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.plan-features li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  text-align: left;
  position: relative;
  padding-left: 20px;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.plan-action {
  margin-top: 1rem;
  text-align: center;
}

.btn {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-weight: 600;
  width: auto;
  max-width: 200px;
}

.plan-action .btn-primary {
  height: 50px;
}

.plan-savings {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* Navigation buttons */
.pricing-nav {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 0 10px;
  user-select: none;
  color: var(--accent-primary);
  transition: color 0.2s ease;
}

.pricing-nav:hover {
  color: var(--primary-dark);
}

/* ===== Desktop Layout ===== */
@media (min-width: 768px) {
  .pricing-wrapper {
    overflow: visible;
  }

  .pricing-grid {
    transform: none !important;
    gap: 20px;
  }

  .pricing-card {
    min-width: calc(50% - 10px);
  }

  .pricing-nav {
    display: none;
  }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .plan-details-content {
    padding: var(--spacing-lg);
  }

  .full-screen-menu.active .slide-menu-body {
    padding: 0;
  }

  /* Adjust card spacing for mobile */
  .plan-status {
    padding: var(--spacing-lg);
  }

  .pricing-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 0;
  }

  .plans-showcase {
    padding: 10px 0;
  }

  .plans-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
  }
}

/* Partner Program Styles */
.partner-program-content {
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 900px; /* More compact width */
  width: 100%;
  margin: 0 auto; /* Center horizontally */
  min-height: auto;
  position: relative; /* Ensure proper positioning */
}

/* Partner Program Terms */
.partner-terms-section {
  margin-bottom: var(--spacing-xl);
}

.partner-terms-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.partner-terms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.partner-terms-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.partner-terms-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}

.partner-terms-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: 6px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.partner-terms-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.partner-terms-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.partner-terms-card.expanded .partner-terms-toggle-btn svg {
  transform: rotate(180deg);
}

.partner-terms-content {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.partner-terms-card.expanded .partner-terms-content {
  max-height: 500px;
  opacity: 1;
}

.partner-terms-body {
  padding: var(--spacing-lg);
}

.partner-terms-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  letter-spacing: -0.025em;
}

.partner-terms-body h4:first-child {
  margin-top: 0;
}

.partner-terms-body ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.partner-terms-body li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-xs);
}

.partner-terms-body li:last-child {
  margin-bottom: 0;
}


/* Partner Program Status Card */
.partner-status-section {
  margin-bottom: var(--spacing-xl);
}

.partner-status-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(102, 126, 234, 0.06) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 12px;
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.partner-status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

.partner-status-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.025em;
}

.partner-status-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.partner-status-toggle-container {
  flex-shrink: 0;
}

/* Toggle Switch */
.partner-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.partner-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.partner-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.partner-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.partner-toggle-switch input:checked + .partner-toggle-slider {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: var(--accent-primary);
}

.partner-toggle-switch input:checked + .partner-toggle-slider:before {
  transform: translateX(24px);
}

.partner-toggle-switch input:disabled + .partner-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.partner-status-message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Ensure partner program submenu can scroll */
#partner-program-submenu .slide-menu-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.partner-link-section {
  margin-bottom: var(--spacing-xl);
}

.partner-link-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.025em;
}

.partner-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.5;
}

.partner-link-container {
  margin-bottom: var(--spacing-xl);
}

.partner-link-input-group {
  display: flex;
  gap: var(--spacing-md);
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 4px;
  transition: all 0.3s ease;
}

.partner-link-input-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.partner-link-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  outline: none;
  border-radius: 8px;
}

.partner-link-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.partner-link-input-group #copy-partner-link-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.partner-link-input-group #copy-partner-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.partner-link-input-group #copy-partner-link-btn:active {
  transform: translateY(0);
}

.partner-link-input-group #copy-partner-link-btn .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Partner Stats - Modern Card Grid */
.partner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
/*max-width: 800px;*/
  margin-left: auto;
  margin-right: auto;
  justify-items: stretch; /* Stretch to fill grid cells */
}

.partner-stat-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(102, 126, 234, 0.06) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 10px;
  padding: var(--spacing-md) var(--spacing-sm);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: auto; /* Let content determine height */
}

.partner-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.6;
}

.partner-stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.partner-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.partner-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Partner Sections */
.partner-referrals-section,
.partner-commissions-section,
.partner-withdrawal-section {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.partner-referrals-section h3,
.partner-commissions-section h3,
.partner-withdrawal-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.025em;
}

.partner-referrals-list,
.partner-commissions-list,
.partner-withdrawals-list {
  min-height: 100px;
}

.partner-loading {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.partner-withdrawal-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-withdrawal-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.partner-withdrawal-info strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

.partner-withdrawal-info #request-withdrawal-btn {
  align-self: flex-start;
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.partner-withdrawal-info #request-withdrawal-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.partner-withdrawal-info #request-withdrawal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .partner-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .partner-stat-item {
    padding: var(--spacing-md);
  }

  .partner-stat-value {
    font-size: 1.5rem;
  }

  .partner-link-input-group {
    flex-direction: column;
  }

  .partner-link-input-group #copy-partner-link-btn {
    width: 100%;
    justify-content: center;
  }

  .partner-referrals-section,
  .partner-commissions-section,
  .partner-withdrawal-section {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .partner-stats {
    grid-template-columns: 1fr;
  }

  .partner-program-content {
    padding: var(--spacing-md);
  }
}

/* Delete Modals - Higher z-index to prevent hiding */
.delete-note-modal-overlay,
.delete-item-modal-overlay,
.delete-list-modal-overlay {
  z-index: 15000;
}

/* Confirmation Item Details - Table Style */
.confirmation-item-details {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  width: 320px;
  max-width: 90vw;
  margin: 16px auto;
}

/* Admin link styling */
.admin-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Notes placeholder styling */
.notes-placeholder {
  opacity: 0.6;
  font-style: italic;
}

.confirmation-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.confirmation-table tbody tr:last-child {
  border-bottom: none;
}

.confirmation-table td {
  padding: 8px 12px;
  vertical-align: middle;
}

.confirmation-label {
  font-weight: 600;
  color: var(--text-primary);
  width: 100px;
  white-space: nowrap;
  opacity: 0.9;
  text-align: left;
}

.confirmation-value {
  color: var(--text-secondary);
  font-weight: 500;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.confirmation-value.status-warning {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  width: auto;
  max-width: 200px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0088aa);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Danger Button for Delete Confirmations */
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fecaca;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}