/* ZenFocus - Modern Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Primary & Accent Colors */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.18);
  --accent: #38bdf8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);

  /* Glassmorphism Defaults */
  --glass-bg: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-bg: rgba(30, 41, 59, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(51, 65, 85, 0.75);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Customizer Variables */
  --bg-dimmer: 0.45;
  --bg-blur: 0px;
  --card-opacity: 0.82;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: var(--font-family);
  background-color: #0b0f19;
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Background Layers */
#app-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease-in-out, filter 0.3s ease;
  z-index: 0;
  filter: blur(var(--bg-blur));
}

#bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 15, 25, var(--bg-dimmer));
  backdrop-filter: blur(1px);
  z-index: 1;
  transition: background-color 0.2s ease;
}

/* Main App Container */
#app-container {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Title Bar */
.titlebar {
  height: 42px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  -webkit-app-region: drag;
  z-index: 100;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.app-logo svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.app-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.app-badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.titlebar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.pin-widget-btn {
  -webkit-app-region: no-drag !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pin-widget-btn:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.pin-widget-btn:active {
  transform: translateY(0);
}

.pin-widget-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* App Body Layout */
.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 20px;
}

.user-greeting {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.greeting-time {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  font-weight: 600;
}

.greeting-text {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.summary-pill {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-nav,
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-categories {
  margin-top: 14px;
}

.nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 6px 12px 4px;
  margin: 0;
  line-height: 1.2;
}

/* Unified style for both nav-item and cat-item: strictly locked dimensions */
.nav-item,
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  box-sizing: border-box;
}

.nav-item-left,
.cat-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.nav-item-left span,
.cat-item-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item svg,
.cat-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.nav-item:hover,
.cat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  transform: translateX(2px);
}

.nav-item:hover svg,
.cat-item:hover svg {
  opacity: 1;
  color: #38bdf8;
  transform: scale(1.05);
}

.nav-item.active,
.cat-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.14));
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.45);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-item.active svg,
.cat-item.active svg {
  opacity: 1;
  color: #a5b4fc;
}

.nav-count {
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.nav-item:hover .nav-count,
.cat-item:hover .nav-count {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.nav-item.active .nav-count,
.cat-item.active .nav-count {
  background: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.35);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(30, 41, 59, 0.6);
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.action-btn.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 30px;
  overflow-y: auto;
  gap: 20px;
}

/* Quick Add Task Card */
.task-creator-card {
  position: relative;
  z-index: 50;
  background: rgba(26, 35, 52, var(--card-opacity));
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, z-index 0.1s ease;
}

.task-creator-card:focus-within,
.task-creator-card.has-open-dropdown,
.task-creator-card:has(.is-open) {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
  z-index: 500 !important;
}

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

.creator-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.creator-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  font-family: inherit;
}

.creator-input::placeholder {
  color: var(--text-dim);
}

.creator-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.options-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-picker input[type="datetime-local"] {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  color-scheme: dark;
}

.meta-picker select {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.meta-picker select option {
  background: #1e293b;
  color: #f8fafc;
}

.add-task-btn {
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  border: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.add-task-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* Task List Section */
.tasks-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.tasks-title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tasks-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.tasks-count-badge {
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.tasks-filter-pills {
  display: flex;
  gap: 6px;
}

.filter-pill {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill.active, .filter-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
}

/* Task Cards & Section Grouping */
.tasks-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Task Section Grouping */
.task-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.task-section:first-child {
  margin-top: 2px;
}

.task-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 8px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  backdrop-filter: none;
  position: relative;
  margin-bottom: 2px;
}

/* Subtle glowing accent underline indicator */
.task-section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
}

.section-deadline .task-section-header::after {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.section-recurring .task-section-header::after {
  background: #c084fc;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.7);
}

.section-done .task-section-header::after {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.task-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

.section-deadline .task-section-icon {
  color: #38bdf8;
}

.section-recurring .task-section-icon {
  color: #c084fc;
}

.section-done .task-section-icon {
  color: #4ade80;
}

.task-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #e2e8f0;
  margin: 0;
}

.task-section-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1.5px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.section-deadline .task-section-badge {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.section-recurring .task-section-badge {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.section-done .task-section-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}



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

/* Specific styling for recurring tasks */
.task-item.is-recurring {
  border-left: 3px solid rgba(168, 85, 247, 0.75);
}

.recurring-schedule-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-item:hover .recurring-schedule-icon {
  background: rgba(168, 85, 247, 0.28);
  border-color: #d8b4fe;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.38);
}


/* Pulse animation when recurring cycle completes */
@keyframes cyclePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(168, 85, 247, 0.4);
    transform: scale(1.015);
    border-color: #c084fc;
  }
  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1);
  }
}

.cycle-completed-pulse {
  animation: cyclePulse 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-item {
  background: rgba(30, 41, 59, var(--card-opacity));
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.task-item:hover {
  background: rgba(40, 54, 78, var(--card-opacity));
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.task-item.done {
  opacity: 0.55;
  background: rgba(20, 27, 41, 0.5);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

/* Custom Animated Checkbox */
.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-checkbox:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
}

.task-item.done .custom-checkbox {
  background: var(--success);
  border-color: var(--success);
}

.custom-checkbox svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.task-item.done .custom-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.task-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.task-title {
  font-size: 14px;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.task-item.done .task-title {
  text-decoration: line-through;
  color: var(--text-dim);
}

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

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-category {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.badge-priority-low {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.badge-priority-med {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.badge-priority-high {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-priority-urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Deadline Countdown Pill */
.deadline-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deadline-pill.normal {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.deadline-pill.soon {
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.35);
  animation: pulseWarning 2s infinite ease-in-out;
}

.deadline-pill.overdue {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.deadline-pill.alerting {
  background: rgba(239, 68, 68, 0.28);
  color: #fef08a;
  border: 1px solid rgba(239, 68, 68, 0.6);
  animation: pulseWarning 1s infinite ease-in-out;
}

.deadline-pill.completed {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.task-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.task-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.task-btn.pin-btn.pinned {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.task-btn.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: #cbd5e1;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  stroke: #cbd5e1;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.empty-state-text {
  font-size: 14.5px;
  font-weight: 500;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  letter-spacing: -0.01em;
}

/* Customizer Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-container {
  width: 780px;
  max-width: 95vw;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#theme-modal .modal-container {
  width: 960px;
  max-width: 96vw;
  max-height: 92vh;
}

#theme-modal .modal-body {
  max-height: calc(90vh - 110px);
  padding: 16px 22px;
  gap: 14px;
}

#theme-modal .bg-grid {
  gap: 10px;
}

#theme-modal .bg-thumb-card {
  aspect-ratio: 16 / 9;
}

#theme-modal .customizer-sliders {
  padding-top: 12px;
  gap: 8px;
}

@keyframes modalPop {
  0% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.4);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
}

.modal-tabs::-webkit-scrollbar {
  display: none;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1 1 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Background Grids */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bg-thumb-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.bg-thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.bg-thumb-card.active {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.bg-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 11px;
  font-weight: 600;
  padding: 8px 8px 4px 8px;
  color: #ffffff;
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.upload-dropzone:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.upload-dropzone svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
}

/* Modal Sliders Section */
.customizer-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.slider-input {
  width: 100%;
  accent-color: #6366f1;
  cursor: pointer;
}

/* Toast alert inside UI */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 13px;
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
}

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

/* Task Item In Alert / Ringing State */
.task-item.alerting {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.28)) !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.6), 0 0 45px rgba(239, 68, 68, 0.35) !important;
  animation: gentleShake 0.7s infinite ease-in-out;
  position: relative;
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-2.5px) rotate(-0.5deg); }
  40% { transform: translateX(2.5px) rotate(0.5deg); }
  60% { transform: translateX(-1.8px) rotate(-0.3deg); }
  80% { transform: translateX(1.8px) rotate(0.3deg); }
}

/* Ringing Bell on Left Side of Task */
.task-ringing-bell {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.7);
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: #fbbf24;
  animation: pulseRinging 1.2s infinite ease-in-out;
}

.task-ringing-bell:hover {
  background: rgba(239, 68, 68, 0.5);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.06);
}

@keyframes pulseRinging {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.85); }
}

.swing-bell {
  width: 17px;
  height: 17px;
  transform-origin: top center;
  animation: bellSwing 0.45s infinite ease-in-out alternate;
  color: #fbbf24;
  display: block;
}

@keyframes bellSwing {
  0% { transform: rotate(-24deg); }
  100% { transform: rotate(24deg); }
}

.bell-mute-hint {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Active Alert Sticky Banner */
.active-alert-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(245, 158, 11, 0.92));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5);
  margin-bottom: 12px;
}

.active-alert-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.active-alert-banner .btn-dismiss-alert {
  background: #ffffff;
  color: #dc2626;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.active-alert-banner .btn-dismiss-alert:hover {
  background: #fee2e2;
  transform: scale(1.05);
}

/* Sound Selector Modal & Settings */
.sound-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.sound-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.sound-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(51, 65, 85, 0.85);
  transform: translateY(-2px);
}

.sound-card.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.sound-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sound-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: #f1f5f9;
}

.sound-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.sound-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.btn-preview-sound {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  border-radius: 6px;
  font-size: 11.5px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-preview-sound:hover {
  background: #38bdf8;
  color: #0f172a;
}

.btn-preview-sound.is-playing {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  animation: pulse-border 1.5s infinite;
}

.btn-preview-sound.is-playing:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
  }
}

/* Custom Sound Upload Dropzone & UI */
.custom-sound-upload-card {
  background: rgba(99, 102, 241, 0.08);
  border: 2px dashed rgba(99, 102, 241, 0.38);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.sound-presets-intro {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 2px;
}

.custom-sound-upload-card:hover, .custom-sound-upload-card.dragover {
  background: rgba(99, 102, 241, 0.16);
  border-color: #818cf8;
  transform: translateY(-1px);
}

.custom-sound-upload-title {
  font-weight: 600;
  font-size: 13.5px;
  color: #ffffff;
}

.custom-sound-upload-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

.sound-card-hint {
  font-size: 11px;
  color: #94a3b8;
}

.sound-status-tag {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.sound-status-tag.is-selected {
  color: #38bdf8;
}

.sound-upload-icon {
  width: 28px;
  height: 28px;
  color: #818cf8;
}

.sound-card.custom-card {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.sound-card.custom-card.active {
  border-color: #818cf8;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.22);
}

.btn-delete-sound {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 6px;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-delete-sound:hover {
  background: #ef4444;
  color: #ffffff;
}



/* Edit Task Modal */
.edit-task-container { width: 480px; }
.edit-task-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.edit-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.edit-task-input { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 10px 12px; color: #f8fafc; font-family: inherit; font-size: 14px; outline: none; }
.edit-task-input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.edit-row { display: flex; gap: 12px; }
.edit-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.edit-field .meta-picker { padding: 8px 10px; }
.edit-field .meta-picker select, .edit-field .meta-picker input { width: 100%; }
.edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.edit-btn-cancel { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #cbd5e1; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-family: inherit; font-size: 13px; }
.edit-btn-cancel:hover { background: rgba(255,255,255,0.08); }
.task-btn.edit-btn:hover { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

/* Whole date-time picker area is clickable */
.meta-picker { cursor: pointer; }
.meta-picker select { cursor: pointer; }

/* ============================================================
   SNOOZE & REMINDER EXTENSION SYSTEM (BÁO LẠI / HẸN NHẮC LẠI)
   ============================================================ */

/* Snooze Countdown Pill */
.deadline-pill.snoozed {
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.deadline-pill.snoozed:hover {
  background: rgba(168, 85, 247, 0.32);
  border-color: #c084fc;
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

/* Snooze Button on Task Card */
.btn-snooze-task {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.38));
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fef3c7;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.btn-snooze-task:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.42), rgba(217, 119, 6, 0.58));
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.38);
}

.btn-snooze-task.is-active-snooze {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

.btn-snooze-task.is-active-snooze:hover {
  background: rgba(168, 85, 247, 0.32);
  border-color: #c084fc;
  color: #ffffff;
}

.cancel-snooze-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Banner Snooze Button */
.active-alert-banner .btn-snooze-banner {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-alert-banner .btn-snooze-banner:hover {
  background: #ffffff;
  color: #d97706;
  border-color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Snooze Modal Layout */
.snooze-modal-container {
  width: 480px;
  max-width: 95vw;
}

.snooze-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.snooze-header-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.snooze-bell-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.snooze-bell-badge svg {
  width: 20px;
  height: 20px;
}

.snooze-header-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.snooze-modal-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.snooze-target-task {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.snooze-task-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.snooze-task-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snooze-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snooze-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.snooze-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.snooze-chip {
  position: relative;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #e2e8f0;
}

.snooze-chip:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.snooze-chip.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(99, 102, 241, 0.28));
  border: 1.5px solid #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.32);
}

.chip-badge {
  position: absolute;
  top: -7px;
  right: 6px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chip-duration {
  font-size: 13.5px;
  font-weight: 700;
}

.chip-time {
  font-size: 11px;
  color: #94a3b8;
}

.snooze-chip.active .chip-duration {
  color: #ffffff;
  font-weight: 800;
}

.snooze-chip.active .chip-time {
  color: #fde68a;
  font-weight: 700;
}

.snooze-custom-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.snooze-custom-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.snooze-input-group {
  flex: 1;
}

.snooze-number-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  transition: all 0.15s ease;
}

.snooze-number-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.snooze-unit-toggle {
  display: flex;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.snooze-unit-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.snooze-unit-btn:hover {
  color: #ffffff;
}

.snooze-unit-btn.active {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
}

.snooze-quick-deltas {
  display: flex;
  gap: 4px;
}

.snooze-delta-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.snooze-delta-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.snooze-preview-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: inset 0 0 16px rgba(245, 158, 11, 0.08);
}

.preview-card-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.preview-card-title {
  font-size: 11.5px;
  color: #94a3b8;
}

.preview-card-time {
  font-size: 17px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.preview-card-hint {
  font-size: 11.5px;
  color: #cbd5e1;
}

.snooze-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.btn-cancel-existing-snooze {
  margin-right: auto;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cancel-existing-snooze:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ffffff;
}

.btn-apply-snooze {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-apply-snooze:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.48);
}
