/* ===== CSS VARIABLES ===== */
:root {
  /* === SUNSET THEME COLOR PALETTE === */

  /* Core Sunset Colors */
  --sunset-orange: #ff6b35; /* Vibrant sunset orange - main theme color */
  --sunset-coral: #f7931e; /* Warm coral orange */
  --sunset-peach: #ffb380; /* Soft peachy orange */
  --sunset-gold: #ffd23f; /* Golden sunset yellow */

  /* Ocean Blue Complement */
  --ocean-deep: #1e3a5f; /* Deep ocean blue */
  --ocean-medium: #2d5a87; /* Medium ocean blue */
  --ocean-light: #4a90b8; /* Light ocean blue */
  --ocean-mist: #87ceeb; /* Very light ocean mist */

  /* Neutral Base Colors */
  --cream-base: #fef9f3; /* Very light cream background */
  --cream-warm: #fdf6ed; /* Slightly warmer cream */
  --sand-light: #f5f0e8; /* Light sand color */
  --sand-medium: #e8ddd1; /* Medium sand */
  --slate-soft: #6b7280; /* Soft slate for muted text */
  --slate-medium: #4b5563; /* Medium slate for secondary text */
  --slate-dark: #1f2937; /* Dark slate for primary text */

  /* === SEMANTIC COLOR VARIABLES === */

  /* Primary Actions (Randomize button focus) */
  --color-primary-action: var(--sunset-orange);
  --color-primary-action-hover: var(--sunset-coral);
  --color-primary-action-active: #e55a2b;
  --color-primary-action-disabled: var(--sand-medium);

  /* Secondary Actions */
  --color-secondary-action: var(--ocean-medium);
  --color-secondary-action-hover: var(--ocean-light);
  --color-secondary-action-active: var(--ocean-deep);

  /* Backgrounds */
  --color-background-card: var(--cream-warm);
  --color-background-elevated: #ffffff;
  --color-background-subtle: var(--sand-light);
  --color-background-muted: var(--sand-medium);

  /* Text Colors */
  --color-text-primary: var(--slate-dark);
  --color-text-secondary: var(--slate-medium);
  --color-text-muted: var(--slate-soft);
  --color-text-on-primary: #ffffff;

  /* Task List Colors */
  --color-task-background: var(--cream-warm);
  --color-task-background-hover: #ffffff;
  --color-task-border: var(--sand-medium);
  --color-task-border-hover: var(--sunset-peach);

  /* Status Colors */
  --color-status-available: var(--ocean-light);
  --color-status-cooldown: var(--sunset-coral);
  --color-status-completed: var(--slate-soft);
  --color-status-success: #10b981;
  --color-status-error: #ef4444;
  --color-status-warning: var(--sunset-gold);

  /* Task Type Colors */
  --color-type-repeatable: var(--ocean-mist);
  --color-type-unique: var(--ocean-light);

  /* Border Colors */
  --color-border-light: var(--sand-light);
  --color-border-medium: var(--sand-medium);
  --color-border-focus: var(--sunset-orange);

  /* === GRADIENTS === */
  --gradient-primary-action: linear-gradient(
    135deg,
    var(--sunset-orange) 0%,
    var(--sunset-coral) 100%
  );
  --gradient-secondary-action: linear-gradient(
    135deg,
    var(--ocean-medium) 0%,
    var(--ocean-light) 100%
  );
  --gradient-background-subtle: linear-gradient(
    135deg,
    var(--cream-base) 0%,
    var(--cream-warm) 100%
  );
  --gradient-sunset-accent: linear-gradient(
    135deg,
    var(--sunset-peach) 0%,
    var(--sunset-gold) 100%
  );
  --gradient-ocean-accent: linear-gradient(
    135deg,
    var(--ocean-light) 0%,
    var(--ocean-mist) 100%
  );

  /* === SHADOWS === */
  --shadow-soft: 0 1px 3px rgba(31, 41, 55, 0.1);
  --shadow-medium: 0 4px 6px rgba(31, 41, 55, 0.1);
  --shadow-elevated: 0 10px 15px rgba(31, 41, 55, 0.1);
  --shadow-primary-button: 0 4px 14px rgba(255, 107, 53, 0.3);
  --shadow-primary-button-hover: 0 8px 25px rgba(255, 107, 53, 0.4);
  --shadow-secondary-button: 0 2px 8px rgba(45, 90, 135, 0.2);
  --shadow-task-item: 0 1px 3px rgba(31, 41, 55, 0.05);
  --shadow-task-item-hover: 0 4px 12px rgba(255, 107, 53, 0.15);

  /* === FOCUS STATES === */
  --focus-ring-primary: 0 0 0 3px rgba(255, 107, 53, 0.2);
  --focus-ring-secondary: 0 0 0 3px rgba(45, 90, 135, 0.2);

  /* === ALPHA COLORS === */
  --success-alpha-10: rgba(16, 185, 129, 0.1);
  --success-alpha-30: rgba(16, 185, 129, 0.3);
  --error-alpha-10: rgba(239, 68, 68, 0.1);
  --error-alpha-30: rgba(239, 68, 68, 0.3);
  --completed-alpha-10: rgba(107, 114, 128, 0.1);
  --completed-alpha-30: rgba(107, 114, 128, 0.3);
  --subtle-alpha-10: rgba(255, 255, 255, 0.1);
  --subtle-alpha-30: rgba(255, 255, 255, 0.3);
  --tasktype-alpha-10: rgba(107, 114, 128, 0.1);
  --tasktype-alpha-30: rgba(107, 114, 128, 0.3);

  /* === MODAL OVERLAY === */
  --modal-overlay: rgba(31, 41, 55, 0.5);

  /* === TYPOGRAPHY SIZES === */
  /* Consolidated system with clear visual hierarchy and less clutter */

  /* Large Display & Titles */
  --font-size-display: 4rem; /* Large display text (empty icons) */
  --font-size-title: 2.25rem; /* App main title */
  --font-size-display-medium: 2rem; /* Stats numbers, large emphasis */

  /* Headings - 3 clear levels */
  --font-size-heading-large: 1.5rem; /* Hero sections, main task display, modals, active task */
  --font-size-heading-medium: 1.25rem; /* Section headers (h2), page headers */
  --font-size-heading-small: 1.125rem; /* App subtitle, empty states, subsection headings */

  /* Body Text - 3 clear levels */
  --font-size-body: 1rem; /* Standard text, buttons, inputs, task text */
  --font-size-small: 0.875rem; /* Labels, descriptions, small buttons, captions */
  --font-size-tiny: 0.75rem; /* Badges, metadata, very small details */

  /* === SPACING SCALE === */
  /* Consistent spacing system based on 0.25rem (4px) increments */
  --spacing-xs: 0.25rem; /* 4px - tight spacing, badge padding */
  --spacing-sm: 0.5rem; /* 8px - compact spacing, small gaps */
  --spacing-md: 0.75rem; /* 12px - standard spacing, button padding */
  --spacing-lg: 1rem; /* 16px - comfortable spacing, default gap */
  --spacing-xl: 1.25rem; /* 20px - loose spacing */
  --spacing-2xl: 1.5rem; /* 24px - section spacing */
  --spacing-3xl: 2rem; /* 32px - large section spacing */
  --spacing-4xl: 2.5rem; /* 40px - extra large spacing */
  --spacing-5xl: 3rem; /* 48px - maximum spacing */

  /* === BORDER RADIUS SCALE === */
  /* Consistent rounding system */
  --radius-sm: 8px; /* Small elements, inputs in edit mode */
  --radius-md: 12px; /* Standard elements, buttons, cards */
  --radius-lg: 16px; /* Large elements, primary inputs */
  --radius-xl: 20px; /* Extra large elements, modals, task display */
  --radius-2xl: 24px; /* Maximum rounding, randomizer section */
}

/* ===== BASE/RESET STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--gradient-background-subtle);
  min-height: 100vh;
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-background-elevated);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.main-content {
  flex: 1;
  padding: var(--spacing-md);
  overflow-y: auto;
}

.quick-add-section {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.settings-section,
.task-section {
  margin-bottom: var(--spacing-lg);
}

/* ===== HEADER COMPONENTS ===== */
.app-header {
  background: var(--gradient-sunset-accent);
  color: var(--color-text-primary);
  padding: var(--spacing-3xl) var(--spacing-2xl) var(--spacing-2xl);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.app-title {
  font-size: var(--font-size-title);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-subtitle {
  font-size: var(--font-size-heading-small);
  color: var(--color-text-secondary);
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: var(--font-size-heading-medium);
  font-weight: 700;
  color: var(--color-text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.page-header h2 {
  font-size: var(--font-size-heading-medium);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

/* ===== NAVIGATION AND UI COMPONENTS ===== */
.collapsible-header {
  cursor: pointer;
  transition: all 0.1s ease;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.collapsible-header:hover {
  background: var(--color-background-subtle);
}

.collapsible-header h2 {
  margin: 0;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: var(--font-size-heading-large);
}

.header-actions {
  display: flex;
  align-items: center;
}

.collapse-indicator {
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
  transition: transform 0.1s;
  user-select: none;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.back-btn {
  color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient-primary-action);
  color: var(--color-text-on-primary);
  border: none;
  padding: var(--spacing-lg) var(--spacing-3xl);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-body);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 52px;
  justify-content: center;
  box-shadow: var(--shadow-primary-button);
  text-transform: none;
  letter-spacing: 0.025em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-button-hover);
  background: linear-gradient(
    135deg,
    var(--color-primary-action-hover) 0%,
    var(--sunset-coral) 100%
  );
}

.btn-primary:active {
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    var(--color-primary-action-active) 0%,
    #e55a2b 100%
  );
}

.btn-primary:disabled {
  background: var(--color-background-muted);
  color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-soft);
  opacity: 0.7;
}

.btn-secondary {
  background: var(--color-background-elevated);
  color: var(--color-secondary-action);
  border: 2px solid var(--color-border-medium);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 44px;
  justify-content: center;
  box-shadow: var(--shadow-secondary-button);
}

.btn-secondary:hover {
  background: var(--gradient-secondary-action);
  border-color: var(--color-secondary-action);
  color: var(--color-text-on-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 90, 135, 0.3);
}

.btn-secondary.danger {
  color: var(--color-status-error);
  border-color: var(--error-alpha-30);
}

.btn-secondary.danger:hover {
  background: var(--error-alpha-10);
  border-color: var(--color-status-error);
}

.btn-secondary.danger img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(346deg) brightness(104%) contrast(97%);
}

.btn-icon {
  background: none;
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-secondary-action);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
}

.btn-icon:hover {
  background: var(--color-background-subtle);
  color: var(--color-primary-action);
  transform: scale(1.05);
}

/* Base class for all icon-only buttons */
.btn-icon-base {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.btn-icon-base.disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-icon-base.disabled:hover {
  background: none;
}

.edit-btn {
  color: var(--color-text-secondary);
}

.edit-btn:hover {
  background: var(--color-background-subtle);
}

.quick-log-btn {
  color: var(--color-status-success);
}

.quick-log-btn:hover {
  background: var(--success-alpha-10);
  transform: scale(1.05);
}

.delete-btn {
  color: var(--color-status-error);
}

.delete-btn:hover {
  background: var(--error-alpha-10);
}

.restore-btn {
  color: var(--color-status-available);
}

.restore-btn:hover {
  background: var(--success-alpha-10);
}

.delete-forever-btn {
  color: var(--color-status-error);
}

.delete-forever-btn:hover {
  background: var(--error-alpha-10);
}

.clear-all-btn {
  min-width: auto;
  padding: var(--spacing-md) var(--spacing-lg);
}

.toggle-btn {
  flex: 1;
  padding: var(--spacing-lg);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.toggle-btn:first-child {
  border-right: 1px solid var(--color-border-medium);
}

.toggle-btn:hover {
  background: var(--color-background-subtle);
  color: var(--color-text-primary);
}

.toggle-btn.active {
  background: var(--gradient-primary-action);
  color: var(--color-text-on-primary);
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:focus {
  outline: none;
  z-index: 1;
  box-shadow: var(--focus-ring-primary);
}

.edit-cancel,
.edit-save {
  min-width: 100px;
  padding: var(--spacing-md) var(--spacing-lg);
}

/* SVG styling */
.btn-icon img,
.btn-primary img,
.btn-secondary img,
.delete-btn img {
  filter: brightness(0) saturate(100%);
}

.btn-primary img {
  filter: brightness(0) saturate(100%) invert(1);
}

.btn-icon img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(77%) saturate(1269%)
    hue-rotate(213deg) brightness(94%) contrast(91%);
}

.delete-btn img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(346deg) brightness(104%) contrast(97%);
}

.edit-btn img {
  filter: brightness(0) saturate(100%) invert(40%) sepia(77%) saturate(1019%)
    hue-rotate(213deg) brightness(94%) contrast(91%);
}

/* ===== FORM ELEMENTS ===== */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

#taskInput {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-body);
  transition: all 0.2s ease;
  background: var(--color-background-elevated);
  color: var(--color-text-primary);
  font-weight: 500;
}

#taskInput:focus {
  outline: none;
  border-color: var(--color-border-focus);
  background: var(--color-background-elevated);
  box-shadow: var(--focus-ring-primary);
  transform: translateY(-1px);
}

.task-options {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.option-group {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 200px;
}

.option-group label {
  display: block;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.option-group select {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  background: var(--color-background-elevated);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.option-group select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  background: var(--color-background-elevated);
  box-shadow: var(--focus-ring-primary);
}

.option-group select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-background-subtle);
}

/* Language selector styling (match cooldown dropdown) */
.language-select {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  background: var(--color-background-elevated);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.language-select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  background: var(--color-background-elevated);
  box-shadow: var(--focus-ring-primary);
}

.task-type-toggle {
  display: flex;
  background: var(--color-background-elevated);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Deadline option styling */
.deadline-option {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 200px;
}

/* Force deadline to new line (always, since cooldown is always visible) */
.deadline-option {
  flex-basis: 100%;
}

.deadline-option > label {
  display: block;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.deadline-toggle-wrapper {
  display: flex;
  gap: var(--spacing-sm);
  align-items: stretch;
}

.deadline-toggle-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  background: var(--color-background-elevated);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.deadline-toggle-btn:hover {
  background: var(--color-background-subtle);
  color: var(--color-text-primary);
  border-color: var(--color-border-focus);
}

.deadline-toggle-btn.active {
  background: var(--gradient-primary-action);
  color: var(--color-text-on-primary);
  border-color: var(--sunset-orange);
}

.deadline-toggle-btn:focus {
  outline: none;
  box-shadow: var(--focus-ring-primary);
}

#taskDeadline {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-md);
  font-size: var(--font-size-body);
  transition: all 0.2s ease;
  background: var(--color-background-elevated);
  color: var(--color-text-primary);
  font-weight: 500;
  font-family: inherit;
}

#taskDeadline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-background-subtle);
}

#taskDeadline:focus {
  outline: none;
  border-color: var(--color-border-focus);
  background: var(--color-background-elevated);
  box-shadow: var(--focus-ring-primary);
}

.input-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.edit-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.edit-task-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-small);
  transition: all 0.1s ease;
  background: var(--color-background-elevated);
  font-family: inherit;
}

.edit-task-input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--focus-ring-primary);
  transform: translateY(-1px);
}

.edit-task-options {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.edit-option-group {
  flex: 1;
  min-width: 140px;
}

.edit-option-group label {
  display: block;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.edit-option-group select {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-small);
  background: var(--color-background-elevated);
  color: var(--color-text-primary);
  transition: all 0.1s ease;
}

.edit-option-group select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--focus-ring-primary);
}

.edit-option-group input[type="date"] {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-small);
  background: var(--color-background-elevated);
  color: var(--color-text-primary);
  font-weight: 500;
  font-family: inherit;
  transition: all 0.1s ease;
}

.edit-option-group input[type="date"]:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--focus-ring-primary);
}

.edit-actions {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ===== TASK-RELATED COMPONENTS ===== */
.task-content {
  overflow: hidden;
  animation: fadeIn 0.15s ease;
  padding: var(--spacing-xs) var(--spacing-md);
}

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

.task-item {
  background: var(--color-task-background);
  color: var(--color-text-primary);
  border: 2px solid var(--color-task-border);
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  animation: slideIn 0.15s ease;
  border-radius: var(--radius-lg);
  margin: var(--spacing-sm) 0;
  box-shadow: var(--shadow-task-item);
}

.task-item:hover {
  background: var(--color-task-background-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-task-item-hover);
  color: var(--color-text-primary);
}

.task-item.task-available {
  border-color: var(--color-status-available);
}

.task-item.task-cooldown {
  opacity: 0.7;
  background: var(--color-background-subtle);
  border-color: var(--color-status-cooldown);
}

.task-item.task-completed {
  opacity: 0.65;
  background: var(--color-background-subtle);
  border-color: var(--color-status-completed);
  color: var(--color-text-muted);
}

.task-content {
  flex: 1;
}

.task-text {
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  word-break: break-word;
}

.task-meta {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  flex-wrap: wrap;
}

.task-stat {
  font-size: var(--font-size-tiny);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.task-stat.task-type {
  background: var(--tasktype-alpha-10);
  color: var(--color-text-secondary);
  border: 1px solid var(--tasktype-alpha-30);
}

.task-stat.task-status {
  color: var(--color-text-on-primary);
}

.task-stat.task-status.available {
  background: var(--color-status-available);
}

.task-stat.task-status.cooldown {
  background: var(--color-status-cooldown);
}

.task-stat.task-status.completed {
  background: var(--color-status-completed);
}

.task-stat.success {
  background: var(--success-alpha-10);
  color: var(--color-status-success);
  border: 1px solid var(--success-alpha-30);
}

.task-stat.abandoned {
  background: var(--error-alpha-10);
  color: var(--color-status-error);
  border: 1px solid var(--error-alpha-30);
}

.task-stat.last-completed {
  background: var(--completed-alpha-10);
  color: var(--color-status-completed);
  border: 1px solid var(--completed-alpha-30);
}

.task-stat.task-deadline {
  color: var(--color-text-on-primary);
  font-weight: 600;
}

.task-stat.task-deadline.deadline-overdue {
  background: #dc2626;
  animation: pulse-deadline 2s ease-in-out infinite;
}

.task-stat.task-deadline.deadline-today {
  background: #ea580c;
}

.task-stat.task-deadline.deadline-soon {
  background: #f59e0b;
}

.task-stat.task-deadline.deadline-week {
  background: var(--ocean-medium);
}

.task-stat.task-deadline.deadline-future {
  background: var(--slate-soft);
}

@keyframes pulse-deadline {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.task-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.task-edit-form {
  background: var(--color-background-elevated);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  width: 100%;
  box-shadow: var(--shadow-soft);
}

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

.trash-item {
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.1s ease;
  animation: slideIn 0.15s ease;
}

.trash-item:hover {
  background: var(--color-background-subtle);
  transform: translateY(-1px);
}

.deleted-date {
  font-size: var(--font-size-tiny);
  color: var(--color-text-on-primary);
  background: var(--color-status-warning);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-weight: 500;
}

/* ===== RANDOMIZER COMPONENTS ===== */
.randomizer-section {
  margin-bottom: var(--spacing-3xl);
  text-align: center;
  background: var(--gradient-background-subtle);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-border-light);
  box-shadow: var(--shadow-elevated);
}

.randomizer-start p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-4xl);
  font-size: var(--font-size-body);
  font-weight: 500;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.current-task {
  animation: fadeIn 0.2s ease;
}

.task-display {
  margin-bottom: var(--spacing-4xl);
}

.task-display .task-text {
  background: var(--gradient-primary-action);
  color: var(--color-text-on-primary);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-heading-small);
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  box-shadow: var(--shadow-primary-button);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.current-task .task-actions {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.current-task .task-actions button {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
}

.active-task {
  animation: fadeIn 0.2s ease;
}

.active-task-display {
  margin-bottom: var(--spacing-3xl);
}

.task-completed h3,
.randomizer-start h3,
.task-display h3,
.active-task-display h3 {
  font-size: var(--font-size-heading-large);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.active-task-display .task-text {
  font-size: var(--font-size-heading-large);
  background: var(--gradient-secondary-action);
  color: var(--color-text-on-primary);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  box-shadow: var(--shadow-primary-button-hover);
}

.timer-display {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-background-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}

.timer-label {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.timer-value {
  font-size: var(--font-size-display-medium);
  font-weight: 700;
  color: var(--color-primary-action);
  font-family: "Courier New", monospace;
  letter-spacing: 0.1em;
}

.active-task-actions {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.active-task-actions button {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
}

.task-completed {
  animation: fadeIn 0.2s ease;
}

.success-icon {
  font-size: var(--font-size-display);
  margin-bottom: var(--spacing-lg);
}

.animated-checkmark {
  width: 80px;
  height: 80px;
  animation: checkmarkCelebration 2s ease-in-out infinite;
}

@keyframes checkmarkCelebration {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    transform: scale(1.05) rotate(0deg);
  }
  75% {
    transform: scale(1.1) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.task-completed p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-3xl);
  font-size: var(--font-size-small);
}

/* ===== MODAL AND OVERLAY COMPONENTS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
  backdrop-filter: blur(4px);
  padding: var(--spacing-lg);
  box-sizing: border-box;
}

.modal-content {
  background: var(--color-background-elevated);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-4xl);
  margin: auto;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-elevated);
  animation: slideIn 0.15s ease;
}

.modal-content h3 {
  font-size: var(--font-size-heading-large);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modal-content textarea {
  width: 100%;
  padding: var(--spacing-xl);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-body);
  font-family: inherit;
  background: var(--color-background-elevated);
  color: var(--color-text-primary);
  resize: vertical;
  min-height: 120px;
  margin-bottom: var(--spacing-3xl);
  transition: all 0.2s ease;
}

.modal-content textarea:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--focus-ring-primary);
  transform: translateY(-1px);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: flex-end;
}

.modal-actions .btn-secondary,
.modal-actions .btn-primary {
  flex: 1;
  max-width: 140px;
}

/* ===== IMPORT DIALOG ===== */
.import-dialog {
  max-width: 540px;
}

.import-dialog p {
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.import-stats {
  display: flex;
  gap: var(--spacing-2xl);
  justify-content: center;
  margin-bottom: var(--spacing-3xl);
  padding: var(--spacing-2xl);
  background: var(--color-background-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.import-stat {
  text-align: center;
  color: var(--color-text-secondary);
}

.import-stat strong {
  display: block;
  font-size: var(--font-size-heading-large);
  color: var(--color-primary-action);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.import-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.import-option {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--color-background-main);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.import-option:hover {
  border-color: var(--color-primary-action);
  background: var(--color-background-elevated);
}

.import-option input[type="radio"] {
  margin-top: 2px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary-action);
}

.import-option .option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.import-option strong {
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: var(--font-size-body);
}

.import-option span {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: 1.4;
}

/* ===== TASK SELECTION DIALOG ===== */
.task-selection-dialog {
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.task-selection-dialog p {
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.task-selection-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  max-height: 400px;
  padding: var(--spacing-xs);
}

.task-selection-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--color-background-main);
  border: 2px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-selection-item:hover {
  border-color: var(--color-primary-action);
  background: var(--color-background-elevated);
}

.task-selection-item input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary-action);
}

.task-selection-item .task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.task-selection-item .task-text {
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: var(--font-size-body);
  line-height: 1.4;
}

.task-selection-item .task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: var(--font-size-tiny);
}

.task-type-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.task-type-badge.oneoff {
  background: var(--color-status-info-bg);
  color: var(--color-status-info);
}

.task-type-badge.repeatable {
  background: var(--color-status-success-bg);
  color: var(--color-status-success);
}

.cooldown-badge,
.deadline-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: var(--color-background-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-light);
  font-weight: 500;
}

.selection-controls {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.selection-controls button {
  flex: 1;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-primary);
  color: var(--color-text-on-primary);
  padding: var(--spacing-xl) var(--spacing-3xl);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-small);
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid var(--color-border-medium);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

.toast.success {
  background: var(--color-status-success);
  color: var(--color-text-on-primary);
}

.toast.error {
  background: var(--color-status-error);
  color: var(--color-text-on-primary);
}

.toast.warning {
  background: var(--color-status-warning);
  color: var(--color-text-primary);
}

/* ===== FOOTER AND STATS ===== */
.app-footer {
  background: var(--color-background-card);
  border-top: 2px solid var(--color-border-light);
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.stats {
  display: flex;
  justify-content: space-around;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-display-medium);
  font-weight: 700;
  color: var(--color-primary-action);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-label {
  font-size: var(--font-size-tiny);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 481px) {
  .settings-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .settings-actions button {
    flex: 1;
    min-width: 180px;
  }

  .app-container {
    max-width: 540px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
  }

  .main-content {
    padding: var(--spacing-3xl);
  }

  .current-task .task-actions {
    max-width: 400px;
    margin: 0 auto;
  }

  .task-stat {
    font-size: var(--font-size-tiny);
  }

  .edit-task-options {
    flex-direction: row;
  }

  .edit-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .app-container {
    max-width: 700px;
    box-shadow: var(--shadow-elevated);
  }

  .input-actions {
    flex-direction: row;
  }

  .task-item {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .task-stat {
    font-size: var(--font-size-tiny);
    padding: var(--spacing-xs) var(--spacing-md);
  }

  .edit-task-input {
    font-size: var(--font-size-body);
    padding: var(--spacing-lg) var(--spacing-xl);
  }

  .edit-option-group select {
    font-size: var(--font-size-small);
  }
}

/* ===== DARK MODE OVERRIDES ===== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode base colors */
    --dark-slate-deepest: #111827;
    --dark-slate-deep: #1f2937;
    --dark-slate-medium: #374151;
    --dark-slate-light: #4b5563;
    --dark-slate-lighter: #6b7280;
    --dark-text-primary: #f9fafb;
    --dark-text-secondary: #d1d5db;
    --dark-text-muted: #9ca3af;

    /* Toast colors for dark mode */
    --forest-deep: #065f46;
    --forest-medium: #059669;
    --mint-light: #d1fae5;
    --crimson-deep: #7f1d1d;
    --crimson-medium: #dc2626;
    --rose-light: #fecaca;

    /* Alpha variants */
    --sunset-orange-alpha-40: rgba(255, 107, 53, 0.4);

    /* Backgrounds */
    --color-background-card: var(--dark-slate-deep);
    --color-background-elevated: var(--dark-slate-medium);
    --color-background-subtle: var(--dark-slate-deepest);
    --color-background-muted: var(--dark-slate-medium);

    /* Text */
    --color-text-primary: var(--dark-text-primary);
    --color-text-secondary: var(--dark-text-secondary);
    --color-text-muted: var(--dark-text-muted);
    --color-text-on-primary: #ffffff;

    /* Task List Colors */
    --color-task-background: var(--dark-slate-medium);
    --color-task-background-hover: var(--dark-slate-light);
    --color-task-border: var(--dark-slate-light);
    --color-task-text: var(--dark-text-primary);
    --color-task-text-muted: var(--dark-text-secondary);

    /* Action Colors */
    --color-primary-action: var(--sunset-orange);
    --color-primary-action-hover: var(--sunset-coral);
    --color-primary-action-active: #e55a2b;
    --color-secondary-action: var(--ocean-light);
    --color-secondary-action-hover: var(--ocean-medium);
    --color-secondary-action-active: var(--ocean-deep);

    /* Gradients */
    --gradient-primary-action: linear-gradient(
      135deg,
      var(--sunset-orange) 0%,
      var(--sunset-coral) 100%
    );
    --gradient-secondary-action: linear-gradient(
      135deg,
      var(--ocean-medium) 0%,
      var(--ocean-deep) 100%
    );

    /* Borders */
    --color-border-light: var(--dark-slate-light);
    --color-border-medium: var(--dark-slate-lighter);
    --color-border-focus: var(--sunset-orange);

    /* Success/Error states (keep sunset theme) */
    --success-alpha-10: rgba(34, 197, 94, 0.1);
    --success-alpha-30: rgba(34, 197, 94, 0.3);
    --error-alpha-10: rgba(239, 68, 68, 0.1);
    --error-alpha-30: rgba(239, 68, 68, 0.3);
    --completed-alpha-10: rgba(156, 163, 175, 0.1);
    --completed-alpha-30: rgba(156, 163, 175, 0.3);

    /* Task Type Colors */
    --color-type-repeatable: var(--dark-slate-deep);
    --color-type-unique: var(--ocean-light);

    /* Modal Overlay */
    --modal-overlay: rgba(0, 0, 0, 0.8);

    /* Header gradient with better contrast for dark mode */
    --gradient-sunset-accent: linear-gradient(
      135deg,
      var(--dark-slate-deep) 0%,
      var(--dark-slate-medium) 50%,
      var(--sunset-orange) 100%
    );

    /* Gradients for dark mode */
    --gradient-background-subtle: linear-gradient(
      135deg,
      var(--dark-slate-deepest) 0%,
      var(--dark-slate-deep) 100%
    );
  }

  /* Override body background */
  body {
    background: var(--color-background-subtle);
    color: var(--color-text-primary);
  }

  /* Toast messages in dark mode */
  .toast.success {
    background: var(--forest-deep);
    border-color: var(--forest-medium);
    color: var(--mint-light);
  }

  .toast.error {
    background: var(--crimson-deep);
    border-color: var(--crimson-medium);
    color: var(--rose-light);
  }

  /* Input fields in dark mode */
  input[type="text"],
  textarea {
    background: var(--dark-slate-medium);
    border-color: var(--dark-slate-light);
    color: var(--dark-text-primary);
  }

  input[type="text"]:focus,
  textarea:focus {
    border-color: var(--sunset-orange);
    background: var(--dark-slate-light);
  }

  /* Selection highlight in dark mode */
  ::selection {
    background: var(--sunset-orange-alpha-40);
    color: var(--dark-text-primary);
  }

  ::-moz-selection {
    background: var(--sunset-orange-alpha-40);
    color: var(--dark-text-primary);
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-5xl) var(--spacing-lg);
  color: var(--color-text-muted);
  background: var(--color-background-subtle);
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-border-light);
}

.empty-icon {
  font-size: var(--font-size-display);
  margin-bottom: var(--spacing-lg);
}

.empty-icon img {
  width: 80px;
  height: 80px;
}

.empty-state h3 {
  font-size: var(--font-size-heading-small);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

.empty-state p {
  font-size: var(--font-size-small);
}

.empty-trash-state {
  text-align: center;
  padding: var(--spacing-5xl) var(--spacing-lg);
  color: var(--color-text-muted);
}

.empty-trash-state .empty-icon {
  font-size: var(--font-size-display);
  margin-bottom: var(--spacing-lg);
}

.empty-trash-state h3 {
  font-size: var(--font-size-heading-small);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

.empty-trash-state p {
  font-size: var(--font-size-small);
}

.settings-content {
  overflow: hidden;
  animation: fadeIn 0.15s ease;
  padding: var(--spacing-xs) var(--spacing-md);
}

.settings-group {
  margin-bottom: var(--spacing-3xl);
}

.settings-group:last-child {
  margin-bottom: 0;
}

.settings-group h3 {
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.settings-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.settings-actions button {
  justify-content: flex-start;
  text-align: left;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Focus styles for accessibility */
button:focus,
input:focus {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

/* Fast scrolling */
html {
  scroll-behavior: auto;
}

/* Selection styles */
::selection {
  background: rgba(255, 107, 53, 0.3);
}

::-moz-selection {
  background: rgba(255, 107, 53, 0.3);
}

/* ===== ANIMATIONS ===== */

/* Pulsate animation for randomize button */
@keyframes pulsate {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

/* Style the initial 'Next Task' button to match selected task text dimensions */
.randomizer-start .randomize-btn {
  animation: pulsate 2s ease-in-out infinite;
  background: var(--gradient-primary-action);
  color: var(--color-text-on-primary);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-heading-small);
  font-weight: 600;
  line-height: 1.6;
  box-shadow: var(--shadow-primary-button);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.randomizer-start .randomize-btn:disabled {
  animation: none;
}

.randomizer-start .randomize-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-button-hover);
}

/* Apply pulsate animation to accept task button when a task is suggested */
#acceptTaskBtn {
  animation: pulsate 2s ease-in-out infinite;
}

/* Remove animation on hover for accept button */
#acceptTaskBtn:hover {
  animation: none;
  transform: scale(1.05);
}
