/* =========================================================
   StartReMinder - Modern Crisp White & Multi-Color Design System
   ========================================================= */

:root {
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
  
  /* Primary White / Light Mode Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  
  /* High-Contrast Crisp Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Default Accent Theme (Electric StartReMinder Blue) */
  --accent-color: #007aff;
  --accent-hover: #0062cc;
  --accent-light: rgba(0, 122, 255, 0.1);
  --accent-glow: rgba(0, 122, 255, 0.2);
  
  /* Multi-Color Palette */
  --color-blue: #007aff;
  --color-purple: #7c3aed;
  --color-emerald: #059669;
  --color-coral: #e11d48;
  --color-amber: #d97706;
  --color-teal: #0d9488;
  
  /* Priority Colors */
  --priority-urgent: #dc2626;
  --priority-high: #ea580c;
  --priority-medium: #d97706;
  --priority-low: #2563eb;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  
  /* Soft Apple-style Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --sidebar-width: 275px;
  --header-height: 72px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Multi-color Theme Variations */
[data-accent="purple"] {
  --accent-color: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: rgba(124, 58, 237, 0.1);
  --accent-glow: rgba(124, 58, 237, 0.2);
}

[data-accent="emerald"] {
  --accent-color: #059669;
  --accent-hover: #047857;
  --accent-light: rgba(5, 150, 105, 0.1);
  --accent-glow: rgba(5, 150, 105, 0.2);
}

[data-accent="coral"] {
  --accent-color: #e11d48;
  --accent-hover: #be123c;
  --accent-light: rgba(225, 29, 72, 0.1);
  --accent-glow: rgba(225, 29, 72, 0.2);
}

[data-accent="amber"] {
  --accent-color: #d97706;
  --accent-hover: #b45309;
  --accent-light: rgba(217, 119, 6, 0.1);
  --accent-glow: rgba(217, 119, 6, 0.2);
}

[data-accent="teal"] {
  --accent-color: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: rgba(13, 148, 136, 0.1);
  --accent-glow: rgba(13, 148, 136, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* App Container */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
  z-index: 40;
}

.brand {
  padding: 24px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-color), #38bdf8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: var(--transition);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  padding: 16px 12px 6px;
}

.add-cat-btn {
  background: var(--accent-light);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 12px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.add-cat-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
  transform: translateY(-1px);
}


.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-light);
  color: var(--accent-color);
  font-weight: 600;
}

.nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.nav-item-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.nav-item.active .nav-item-badge {
  background: var(--accent-color);
  color: white;
}

/* Color Accent Switcher Bar in Sidebar */
.color-picker-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 8px;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: #0f172a;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.sidebar-btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-btn-icon:hover {
  background: var(--bg-hover);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Main Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  background-color: #f8fafc;
  transition: background 0.4s ease;
}

/* Beautiful Curated Mesh & Soft Modern Gradients */
[data-gradient="aurora"] .main-content,
.main-content {
  background: radial-gradient(at 10% 20%, rgba(254, 205, 211, 0.45) 0px, transparent 55%),
              radial-gradient(at 90% 10%, rgba(199, 210, 254, 0.50) 0px, transparent 50%),
              radial-gradient(at 80% 80%, rgba(186, 230, 253, 0.45) 0px, transparent 55%),
              radial-gradient(at 10% 90%, rgba(253, 230, 138, 0.35) 0px, transparent 50%),
              #f8fafc;
}

[data-gradient="ocean"] .main-content {
  background: radial-gradient(at 0% 0%, rgba(147, 197, 253, 0.45) 0px, transparent 55%),
              radial-gradient(at 100% 0%, rgba(165, 243, 252, 0.50) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(191, 219, 254, 0.45) 0px, transparent 55%),
              radial-gradient(at 0% 100%, rgba(224, 242, 254, 0.60) 0px, transparent 50%),
              #f8fafc !important;
}

[data-gradient="peach"] .main-content {
  background: radial-gradient(at 15% 15%, rgba(254, 215, 170, 0.50) 0px, transparent 55%),
              radial-gradient(at 85% 15%, rgba(253, 186, 116, 0.40) 0px, transparent 50%),
              radial-gradient(at 90% 85%, rgba(254, 205, 211, 0.45) 0px, transparent 55%),
              radial-gradient(at 10% 85%, rgba(254, 243, 199, 0.50) 0px, transparent 50%),
              #fafaf9 !important;
}

[data-gradient="lavender"] .main-content {
  background: radial-gradient(at 15% 15%, rgba(233, 213, 255, 0.50) 0px, transparent 55%),
              radial-gradient(at 85% 15%, rgba(224, 231, 255, 0.50) 0px, transparent 50%),
              radial-gradient(at 85% 85%, rgba(251, 207, 232, 0.45) 0px, transparent 55%),
              radial-gradient(at 15% 85%, rgba(199, 210, 254, 0.45) 0px, transparent 50%),
              #faf5ff !important;
}

[data-gradient="mint"] .main-content {
  background: radial-gradient(at 10% 10%, rgba(167, 243, 208, 0.45) 0px, transparent 55%),
              radial-gradient(at 90% 10%, rgba(186, 230, 253, 0.50) 0px, transparent 50%),
              radial-gradient(at 90% 90%, rgba(153, 246, 228, 0.45) 0px, transparent 55%),
              radial-gradient(at 10% 90%, rgba(254, 240, 138, 0.35) 0px, transparent 50%),
              #f8fafc !important;
}

[data-gradient="dusk"] .main-content {
  background: radial-gradient(at 15% 15%, rgba(129, 140, 248, 0.35) 0px, transparent 55%),
              radial-gradient(at 85% 10%, rgba(192, 132, 252, 0.35) 0px, transparent 50%),
              radial-gradient(at 85% 85%, rgba(244, 114, 182, 0.30) 0px, transparent 55%),
              radial-gradient(at 15% 85%, rgba(96, 165, 250, 0.35) 0px, transparent 50%),
              #f8fafc !important;
}

[data-gradient="clean"] .main-content {
  background: #f8fafc !important;
}

/* Top App Header */
.app-header {
  height: var(--header-height);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-title-box h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title-box h1 i {
  color: var(--accent-color);
}

.header-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Live Clock & Date Badge */
.live-clock-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  margin-left: 12px;
}

.live-clock-badge i {
  color: var(--accent-color);
  font-size: 13px;
}

.live-clock-badge .live-time {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-box {
  position: relative;
  width: 240px;
}

.search-input-box input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 9px 14px 9px 36px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.search-input-box input:focus {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

/* Auth Tabs & User Profile Dropdown */
.auth-tab-btn {
  flex: 1;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-profile-pill:hover {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: var(--shadow-xs);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 8px;
  z-index: 1000;
}

.user-dropdown-header {
  padding: 8px 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.user-dropdown-item:hover {
  background: var(--bg-tertiary);
}

.user-dropdown-item.text-danger {
  color: #dc2626;
}

.user-dropdown-item.text-danger:hover {
  background: #fee2e2;
}

/* Scrollable View Area */
.view-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 30px 48px 100px;
  max-width: min(1380px, 94%);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Quick Add Task Bar */
.quick-add-container {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 28px;
  transition: var(--transition);
}

.quick-add-container:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.quick-add-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-add-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

.quick-add-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.voice-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 14px;
}

.voice-btn:hover {
  background: var(--accent-light);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.voice-btn.listening {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
  animation: pulse-mic 1.2s infinite;
}

@keyframes pulse-mic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.quick-add-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}

.quick-add-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.chip-select:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-backup {
  background: #059669;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-backup:hover {
  background: #047857;
}

/* Tasks Section & List */
.task-section {
  margin-bottom: 28px;
}

.task-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.section-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #0f172a; /* Deep rich dark text for 100% readability */
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--accent-color);
  font-size: 15px;
}

.section-count {
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  background: var(--accent-color);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px var(--accent-glow);
  letter-spacing: 0.3px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Task Item Card */
.task-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  user-select: none;
}

.task-card:hover {
  background: #ffffff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* Drag & Drop Reordering Styles */
.task-drag-handle {
  color: #94a3b8;
  cursor: grab;
  padding: 2px 4px;
  margin-top: 2px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 13px;
  opacity: 0.35;
}

.task-card:hover .task-drag-handle {
  opacity: 1;
}

.task-drag-handle:hover {
  background: var(--bg-tertiary);
  color: var(--accent-color);
}

.task-drag-handle:active {
  cursor: grabbing;
}

.task-card.dragging {
  opacity: 0.4 !important;
  transform: scale(0.98);
  border: 2px dashed var(--accent-color) !important;
  box-shadow: none !important;
}

.task-card.drag-over-top {
  box-shadow: 0 -3px 0 0 var(--accent-color), var(--shadow-sm) !important;
}

.task-card.drag-over-bottom {
  box-shadow: 0 3px 0 0 var(--accent-color), var(--shadow-sm) !important;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Today's Tasks Highlight & Ultra-Smooth Slow Left-to-Right Glow */
.task-card.task-card-today {
  border-left: 5px solid var(--accent-color);
  background: #ffffff;
  box-shadow: 0 4px 16px var(--accent-glow), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.task-card.task-card-today::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-180%) skewX(-20deg);
  animation: flashSweep 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.task-card.completed::after {
  display: none !important;
}

@keyframes flashSweep {
  0% {
    transform: translateX(-180%) skewX(-20deg);
  }
  60% {
    transform: translateX(350%) skewX(-20deg);
  }
  100% {
    transform: translateX(350%) skewX(-20deg);
  }
}

.task-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Checkbox Circle */
.task-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 12px;
  color: transparent;
}

.task-checkbox:hover {
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.task-card.completed .task-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.task-content {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 15.5px;
  font-weight: 550;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: break-word;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.task-card.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-priority-urgent { background: #fee2e2; color: #dc2626; }
.badge-priority-high { background: #ffedd5; color: #ea580c; }
.badge-priority-medium { background: #fef3c7; color: #d97706; }
.badge-priority-low { background: #dbeafe; color: #2563eb; }

.badge-today {
  background: linear-gradient(135deg, var(--accent-color), #38bdf8);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px var(--accent-glow);
  animation: pulse-badge 2.4s infinite ease-in-out;
}

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

.badge-date {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-date.overdue {
  background: #fee2e2;
  color: #dc2626;
}

.badge-source {
  background: var(--accent-light);
  color: var(--accent-color);
}

.badge-list {
  background: #f1f5f9;
  color: #475569;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: var(--transition);
}

.task-card:hover .task-actions {
  opacity: 1;
}

.action-btn-sm {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.action-btn-sm:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.action-btn-sm.delete:hover {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
  transform: translateY(16px);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Backup Card in Settings */
.backup-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 18px;
}

.backup-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* Focus Pomodoro */
.pomodoro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.pomodoro-dial {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: #ffffff;
  border: 10px solid var(--accent-color);
  box-shadow: 0 10px 30px var(--accent-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
}

.pomodoro-time {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.pomodoro-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pomodoro-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

/* Toast Alerts - Centered Top */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 280px;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-reminder { border-left-color: #ea580c; }
.toast.toast-delete { border-left-color: #ef4444; }

.toast-undo-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.toast-undo-btn:hover {
  background: var(--accent-light);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

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

/* Inline Delete Prompt & In-Place Deleted Banner */
.inline-delete-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 20px;
  padding: 3px 6px 3px 10px;
  animation: fadeIn 0.18s ease;
  flex-shrink: 0;
}

.inline-delete-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-delete-btn {
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 12px;
  padding: 3px 9px;
  cursor: pointer;
  transition: var(--transition);
}

.inline-delete-btn.confirm {
  background: #dc2626;
  color: #ffffff;
}
.inline-delete-btn.confirm:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

.inline-delete-btn.cancel {
  background: transparent;
  color: #64748b;
}
.inline-delete-btn.cancel:hover {
  color: #0f172a;
}

.task-card.task-card-deleted {
  background: #fef2f2 !important;
  border: 1px dashed #fca5a5 !important;
  padding: 12px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  animation: fadeIn 0.25s ease;
  min-height: 52px;
  box-shadow: none !important;
  cursor: default;
}

.task-deleted-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #991b1b;
}

.inline-undo-btn {
  background: #ffffff;
  border: 1px solid #f87171;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.15);
}

.inline-undo-btn:hover {
  background: #dc2626;
  color: #ffffff;
  transform: scale(1.04);
}

/* 1-Click Unified Google Sign-in Button */
.btn-google-unified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #d1d5db;
  border-radius: 28px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-google-unified:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-google-unified:active:not(:disabled) {
  transform: translateY(0);
}

.btn-google-unified:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Next 7 Days Overview Card & Strip */
.next-7-days-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.next-7-days-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.next-7-days-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.next-7-days-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

@media (max-width: 900px) {
  .next-7-days-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
}

.day-pill-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
  min-width: 60px;
}

.day-pill-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.day-pill-card.is-today {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), transparent);
}

.day-pill-card.active {
  background: var(--accent-light);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-color);
}

.day-pill-card .day-weekday {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day-pill-card.active .day-weekday,
.day-pill-card.is-today .day-weekday {
  color: var(--accent-color);
  font-weight: 700;
}

.day-pill-card .day-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.day-pill-card .day-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.day-pill-card .day-badge.has-tasks {
  background: var(--accent-color);
  color: #ffffff;
}

.day-pill-card.active .day-badge {
  background: var(--accent-color);
  color: #ffffff;
}

.day-section-card {
  margin-bottom: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.day-section-card.is-today {
  border-left: 3px solid #f59e0b;
}

.day-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.day-section-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.btn-text-sm {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-text-sm:hover {
  background: var(--accent-light);
}

/* Advance Any.do-Style 7-Day Board Grid (No Right-to-Left Sliding) */
.seven-day-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.seven-day-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1280px) {
  .seven-day-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .seven-day-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .seven-day-board {
    grid-template-columns: 1fr;
  }
}

.seven-day-col {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.seven-day-col:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.seven-day-col.is-today {
  border-top: 3.5px solid var(--accent-color);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg-card) 70px);
}

.seven-day-col.drag-over {
  border: 2px dashed var(--accent-color);
  background: var(--accent-light);
}

.seven-day-col-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.seven-day-col-title {
  display: flex;
  flex-direction: column;
}

.col-keyword {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}

.col-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 10px;
}

.col-badge.has-tasks {
  background: var(--accent-color);
  color: #ffffff;
}

.seven-day-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 12px;
  min-height: 40px;
}

.seven-day-task-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.seven-day-task-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.seven-day-task-item.completed {
  opacity: 0.55;
}

.seven-day-task-item.completed .seven-day-task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.seven-day-task-category {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.seven-day-task-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.seven-day-circle-check {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s;
  background: transparent;
  color: transparent;
  font-size: 9px;
}

.seven-day-circle-check:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.seven-day-task-item.completed .seven-day-circle-check {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.seven-day-task-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  flex: 1;
  word-break: break-word;
}

.seven-day-task-time-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}

.seven-day-add-trigger {
  background: transparent;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  transition: all 0.2s;
  margin-top: auto;
}

.seven-day-add-trigger:hover {
  background: var(--accent-light);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.seven-day-inline-card {
  background: var(--bg-card);
  border: 1.5px solid var(--accent-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.15s ease;
}

.seven-day-inline-input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  font-family: inherit;
  padding: 2px 0;
}

.seven-day-summary-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .view-container {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px 80px;
  }

  .app-header {
    height: auto;
    min-height: var(--header-height);
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-left,
  .header-right {
    width: 100%;
    min-width: 0;
  }

  .header-left {
    justify-content: space-between;
    gap: 8px;
  }

  .header-title-box {
    min-width: 0;
  }

  .header-title-box h1 {
    font-size: 19px;
  }

  .header-subtitle {
    font-size: 12px;
  }

  .live-clock-badge {
    min-width: 0;
    margin-left: 0;
    padding: 6px 8px;
    gap: 5px;
    font-size: 10px;
    white-space: nowrap;
  }

  .header-right {
    gap: 8px;
  }

  .search-input-box {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .search-input-box input:focus {
    width: 100%;
  }

  .user-profile-menu-container {
    min-width: 0;
    max-width: 55%;
  }

  .user-profile-menu-container > .btn-primary,
  .user-profile-menu-container > .user-profile-pill {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-add-container {
    padding: 14px;
  }

  .quick-add-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .quick-add-input {
    min-width: 0;
  }

  .quick-add-top > .btn-primary {
    flex: 1 0 100%;
    justify-content: center;
  }

  .task-card {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .task-content {
    flex: 1 1 calc(100% - 60px);
    min-width: 0;
  }

  .task-actions {
    flex: 1 0 100%;
    justify-content: flex-end;
    opacity: 1;
  }

  .task-section-header {
    gap: 8px;
    padding: 10px 12px;
  }

  .section-title {
    min-width: 0;
    font-size: 13px;
  }

  .section-count {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 9px;
  }

  .backup-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    left: 0;
  }
}

@media (max-width: 380px) {
  .app-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .view-container {
    padding-right: 10px;
    padding-left: 10px;
  }

  .header-title-box h1 {
    font-size: 17px;
  }

  .live-clock-badge {
    gap: 4px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 9px;
  }

  .live-clock-badge > span:not(.live-time) {
    display: none;
  }

  .user-profile-menu-container > .btn-primary {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* iOS-Style Toggle Switch */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .25s ease;
  border-radius: 24px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch-toggle input:checked + .slider {
  background-color: var(--accent-color);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(20px);
}

/* Calendar & Alarm Pill Badge */
.task-alarm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.task-gcal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(66, 133, 244, 0.1);
  color: #2563eb;
  border: 1px solid rgba(66, 133, 244, 0.25);
}

/* Background Gradient Picker in Sidebar */
.gradient-picker-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 14px;
  flex-wrap: wrap;
}

.gradient-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.gradient-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.gradient-dot.active {
  border-color: #0f172a;
  transform: scale(1.24);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   Full-Screen Authentication Gate (Login Required)
   ========================================================= */
.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(at 15% 15%, rgba(0, 122, 255, 0.12) 0px, transparent 55%),
              radial-gradient(at 85% 10%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
              #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.auth-gate-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  text-align: center;
  animation: gateCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gateCardPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.btn-google-gate {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.btn-google-gate:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-google-gate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

