/* ==========================================================================
   FocusTasks - Tasks & Timers (Material 3 & Modern Desktop Design)
   ========================================================================== */

:root {
  /* Light Theme */
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --bg-subtle: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.2);
  
  --accent-pomo: #ea580c;
  --accent-break: #16a34a;
  --accent-blue: #0284c7;
  
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body.theme-dark {
  --bg-app: #090d16;
  --bg-sidebar: #0f172a;
  --bg-card: #141e33;
  --bg-card-hover: #1e293b;
  --bg-input: #1e293b;
  --bg-subtle: #334155;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-glow: rgba(59, 130, 246, 0.3);
  
  --accent-pomo: #f97316;
  --accent-break: #22c55e;
  --accent-blue: #38bdf8;
  
  --border-color: #1e293b;
  --border-focus: #60a5fa;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

input, textarea, select {
  user-select: text;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* App Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* New User Notification Permission Banner */
.notif-permission-banner {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  animation: slideDown 0.3s ease;
  z-index: 1090;
  flex-shrink: 0;
}

.notif-permission-banner.hidden {
  display: none !important;
}

.notif-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notif-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.notif-banner-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.notif-banner-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.notif-banner-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.notif-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-notif-allow {
  background-color: #ffffff;
  color: #1e3a8a;
  border: none;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notif-allow:hover {
  background-color: #f8fafc;
  transform: translateY(-1px);
}

.btn-notif-skip {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notif-skip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Header */
.app-header {
  height: 60px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Search */
.header-center {
  flex: 1;
  max-width: 480px;
  margin: 0 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  gap: 10px;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.search-bar:focus-within {
  background-color: var(--bg-card);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  color: var(--primary);
}

.search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-subtle);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Google Sign-In & User Avatar */
.google-signin-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  margin-left: 4px;
}

.google-signin-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
  transform: translateY(-1px);
}

.user-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  object-fit: cover;
}

.user-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px var(--primary-glow);
}

.signout-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.15s ease;
}

.signout-dropdown:hover {
  background-color: #fee2e2;
  color: #b91c1c;
}

body.theme-dark .signout-dropdown:hover {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* App Body (Sidebar + Center Panel + Timer Panel) */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Left Sidebar */
.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 20px;
  flex-shrink: 0;
  transition: width 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 0;
  padding: 0;
  border-right: none;
  overflow: hidden;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-subtle);
  padding: 0 10px 6px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 6px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 12px;
  position: relative;
}

.nav-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-item span:first-of-type {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
}

.nav-item.active .nav-badge {
  background-color: var(--primary);
  color: #ffffff;
}

.badge-today {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-priority {
  background-color: #fee2e2;
  color: #dc2626;
}

.list-item-delete {
  opacity: 0;
  padding: 2px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-subtle);
  transition: opacity 0.15s ease, color 0.15s ease;
}

.nav-item:hover .list-item-delete {
  opacity: 1;
}

.list-item-delete:hover {
  color: #dc2626;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
}

.stats-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.stats-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background-color: #ffedd5;
  color: #ea580c;
  border-radius: var(--radius-full);
}

.stats-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stats-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.stats-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Center Panel: Tasks */
.tasks-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  padding: 24px 32px;
  overflow: hidden;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.title-row h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sub-counter {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.chip.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Focused Task Banner */
.focused-banner {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px var(--primary-glow);
  animation: slideDown 0.25s ease;
  flex-shrink: 0;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.8s infinite;
}

.banner-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-task-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.banner-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.banner-btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Add Task Input (Google Tasks Style) */
.add-task-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.add-task-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.add-task-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.add-task-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
}

.add-task-input-row input::placeholder {
  color: var(--text-subtle);
}

.add-task-quick-options {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 32px;
  flex-wrap: wrap;
}

.quick-option input, .quick-option select {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-muted);
  outline: none;
  cursor: pointer;
}

.quick-option input:hover, .quick-option select:hover {
  border-color: var(--border-focus);
}

/* Tasks Scroll Container */
.tasks-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Task Item */
.task-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.task-item:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--subtle);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.task-item.is-completed {
  opacity: 0.65;
  background-color: transparent;
}

.task-item.is-focused {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Circular Checkbox (Google Tasks style) */
.task-checkbox-wrapper {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.task-checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-checkbox-wrapper:hover .task-checkbox-custom {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.task-item.is-completed .task-checkbox-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.task-checkbox-custom svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

/* Task Details / Body */
.task-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.task-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
  transition: all 0.15s ease;
}

.task-item.is-completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-notes {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.meta-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-date {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.meta-date.overdue {
  background-color: #fee2e2;
  color: #dc2626;
}

.meta-date.today {
  background-color: #fef3c7;
  color: #b45309;
}

.meta-priority-urgent {
  background-color: #fee2e2;
  color: #dc2626;
}

.meta-priority-high {
  background-color: #ffedd5;
  color: #ea580c;
}

.meta-priority-normal {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.meta-priority-low {
  background-color: #f0fdf4;
  color: #16a34a;
}

.meta-list {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

/* Task Actions on Hover */
.task-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.task-item:hover .task-actions {
  opacity: 1;
}

.focus-play-btn {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.focus-play-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  max-width: 320px;
}

/* Completed Accordion */
.completed-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.completed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 4px;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.completed-header:hover {
  color: var(--text-main);
}

.completed-header svg {
  transition: transform 0.2s ease;
}

.completed-header.collapsed svg {
  transform: rotate(-90deg);
}

.completed-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.completed-tasks-list.collapsed {
  display: none;
}

/* Right Panel: Timers Suite */
.timer-panel {
  width: 320px;
  background-color: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  flex-shrink: 0;
  overflow-y: auto;
}

.timer-tabs {
  display: flex;
  background-color: var(--bg-input);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
  margin-bottom: 24px;
}

.timer-tab-btn {
  flex: 1;
  padding: 7px 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.timer-tab-btn.active {
  background-color: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.timer-tab-content {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.timer-tab-content.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

/* Pomodoro Modes */
.pomo-modes {
  display: flex;
  gap: 6px;
  width: 100%;
}

.pomo-mode-btn {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.pomo-mode-btn.active {
  background-color: #ffedd5;
  color: #ea580c;
  border-color: #fdba74;
}

body.theme-dark .pomo-mode-btn.active {
  background-color: rgba(234, 88, 12, 0.2);
  color: #fb923c;
  border-color: #ea580c;
}

/* Circular Dial */
.circular-dial-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  color: var(--bg-subtle);
}

.progress-ring-fill {
  color: var(--accent-pomo);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s ease, color 0.3s ease;
}

.dial-inner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dial-time {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
}

.dial-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.dial-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.dial-inputs input {
  width: 44px;
  text-align: center;
  padding: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.dial-inputs span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Preset Pills */
.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.pill-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Timer Controls */
.timer-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.btn-play-hero {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-play-hero:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-play-hero:active {
  transform: scale(0.96);
}

.timer-quick-options {
  margin-top: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-label input {
  cursor: pointer;
}

/* Stopwatch View */
.stopwatch-display-wrapper {
  padding: 30px 0;
  text-align: center;
}

.stopwatch-time {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
}

.ms-unit {
  font-size: 26px;
  color: var(--text-muted);
}

.laps-container {
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.laps-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 4px 8px;
}

.laps-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lap-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.lap-row:nth-child(even) {
  background-color: var(--bg-input);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.15s ease;
}

.modal-card {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.2s ease;
}

.modal-card.modal-sm {
  max-width: 380px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 75vh;
  overflow-y: auto;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: -4px;
}

.text-input, .textarea-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.text-input:focus, .textarea-input:focus {
  border-color: var(--border-focus);
}

.textarea-input {
  resize: vertical;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-app);
}

.spacer {
  flex: 1;
}

/* Settings Modal Specific */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.settings-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}

kbd {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

/* Alarm Banner */
.alarm-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 200;
  animation: bounceIn 0.3s ease;
}

.alarm-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alarm-bell-icon {
  animation: ring 1.5s infinite;
}

.alarm-text h4 {
  font-size: 15px;
  font-weight: 700;
}

.alarm-text p {
  font-size: 12px;
  opacity: 0.9;
}

.alarm-dismiss-btn {
  background-color: #ffffff;
  color: #c2410c;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alarm-dismiss-btn:hover {
  background-color: #fef3c7;
}

/* Urgent & Priority Task Notification Banner */
.urgent-task-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  width: calc(100vw - 32px);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 5px solid #ef4444;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.2), var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1080;
  animation: bounceIn 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.urgent-banner-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.urgent-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse 2s infinite ease-in-out;
}

.urgent-banner-text {
  flex: 1;
  min-width: 0;
}

.urgent-banner-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.urgent-banner-text h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.urgent-banner-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.urgent-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
}

.btn-urgent-focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-urgent-focus:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-urgent-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-urgent-done:hover {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-urgent-snooze {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-urgent-snooze:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

/* Buttons & Common */
.icon-btn, .icon-btn-sm, .icon-btn-lg {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.icon-btn {
  width: 36px;
  height: 36px;
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
}

.icon-btn-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-input);
}

.icon-btn:hover, .icon-btn-sm:hover, .icon-btn-lg:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary-sm {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.15s ease;
}

.btn-primary-sm:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.btn-secondary-sm {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-sm:hover {
  background-color: var(--bg-subtle);
}

.btn-danger {
  background-color: #fee2e2;
  color: #dc2626;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background-color: #fecaca;
}

.btn-tiny {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: var(--primary);
  color: #ffffff;
  cursor: pointer;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
}

/* Keyframes */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes ring {
  0% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-14deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(6deg); }
  60% { transform: rotate(-6deg); }
  70% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

/* --- Nemotron VFX & Micro-Interactions --- */
@keyframes taskSlideBounce {
  0% { opacity: 0; transform: translateY(-12px) scale(0.97); }
  60% { transform: translateY(3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.task-item {
  animation: taskSlideBounce 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
  0% { transform: scale(0.65); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.task-item.is-completed .task-checkbox-custom {
  animation: checkPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dialBreathingGlow {
  0% { filter: drop-shadow(0 0 6px var(--primary-glow)); }
  50% { filter: drop-shadow(0 0 18px var(--primary)) drop-shadow(0 0 32px var(--primary-glow)); }
  100% { filter: drop-shadow(0 0 6px var(--primary-glow)); }
}

.circular-dial-wrapper.is-running {
  animation: dialBreathingGlow 2.5s ease-in-out infinite;
}

button:active, .chip:active, .pill-btn:active {
  transform: scale(0.95);
  transition: transform 0.08s ease;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (Marveluga)
   ========================================================================== */

/* Mobile Backdrop Overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Mobile Bottom Navigation (Hidden on desktop) */
.mobile-nav-bar {
  display: none;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (<= 900px)
   ========================================================================== */
@media screen and (max-width: 900px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
  }

  .app-container {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Header adjustments */
  .app-header {
    padding: 8px 12px 10px !important;
    height: auto !important;
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .brand-title {
    font-size: 15px;
    font-weight: 700;
  }

  .brand-subtitle {
    display: none !important;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  .header-center {
    order: 3;
    width: 100%;
    margin: 2px 0 0;
    max-width: none;
  }

  .search-bar {
    width: 100%;
    padding: 7px 12px;
    font-size: 13px;
    background-color: var(--bg-input);
    border-radius: var(--radius-full);
  }

  .search-bar input {
    font-size: 13px;
  }

  .google-signin-btn {
    padding: 5px 8px;
    font-size: 12px;
    gap: 4px;
  }

  /* Permission banner on mobile */
  .notif-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .notif-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Task Action Buttons on Mobile */
  .focus-play-btn span {
    display: none;
  }

  .focus-play-btn {
    padding: 6px 8px !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Off-canvas Sidebar Drawer */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    z-index: 1250 !important;
    background-color: var(--bg-sidebar) !important;
    box-shadow: none;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.35) !important;
  }

  .sidebar.collapsed {
    width: 280px !important;
    transform: translateX(-100%) !important;
  }

  /* Body Layout */
  .app-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
  }

  /* Tasks Panel on Mobile */
  .tasks-panel {
    width: 100% !important;
    flex: 1 !important;
    padding: 12px 14px 75px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
  }

  .tasks-panel.mobile-hidden {
    display: none !important;
  }

  /* Timer Panel on Mobile */
  .timer-panel {
    width: 100% !important;
    flex: 1 !important;
    border-left: none !important;
    padding: 16px 14px 75px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    display: none !important;
  }

  .timer-panel.mobile-active {
    display: flex !important;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-nav-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px !important;
    background-color: var(--bg-sidebar) !important;
    border-top: 1px solid var(--border-color) !important;
    z-index: 1150 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .mobile-nav-btn.active {
    color: var(--primary) !important;
  }

  .mobile-nav-btn.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 0 0 4px 4px;
  }

  .mobile-nav-btn svg {
    transition: transform 0.15s ease;
  }

  .mobile-nav-btn.active svg {
    transform: scale(1.1);
  }

  /* Tasks Panel Header & Filter Chips */
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .title-row {
    width: 100%;
    justify-content: space-between;
  }

  .title-row h1 {
    font-size: 20px;
  }

  .filter-chips {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .chip {
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 12px;
    flex-shrink: 0;
  }

  /* Focused Banner */
  .focused-banner {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .banner-left {
    width: 100%;
  }

  .banner-right {
    width: 100%;
    justify-content: flex-end;
  }

  /* Add Task Box */
  .add-task-card {
    padding: 12px;
    margin-bottom: 14px;
  }

  .add-task-input-row {
    gap: 8px;
  }

  .add-task-input-row input {
    font-size: 13.5px;
  }

  .add-task-quick-options {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .quick-option {
    width: 100%;
    flex: 1 1 100%;
  }

  .date-picker-inline, .priority-select, .list-select {
    width: 100%;
    height: 38px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
  }

  /* Task Items */
  .task-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .task-title {
    font-size: 14px;
  }

  .task-notes {
    font-size: 12px;
  }

  .task-meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  .task-actions {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .task-action-btn {
    width: 32px;
    height: 32px;
  }

  /* Timer Dials Scaling */
  .circular-dial-wrapper {
    width: 210px !important;
    height: 210px !important;
    max-width: 100% !important;
    margin: 12px auto 16px !important;
  }

  .circular-dial-wrapper svg.progress-ring {
    width: 210px !important;
    height: 210px !important;
  }

  .dial-time {
    font-size: 38px !important;
  }

  .pomo-modes {
    gap: 4px;
  }

  .pomo-mode-btn {
    font-size: 11px;
    padding: 7px 6px;
    flex: 1;
    text-align: center;
  }

  .preset-pills {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .pill-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  /* Floating Banners on Mobile */
  .urgent-task-banner, .alarm-banner, .toast {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 68px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  /* Modals */
  .modal-card, .modal-box {
    width: calc(100vw - 24px) !important;
    max-width: 100% !important;
    margin: 12px;
    max-height: 88vh;
  }
}

/* Smartphone Small Screen (<= 540px) */
@media screen and (max-width: 540px) {
  .app-header {
    padding: 6px 10px;
  }

  #settings-btn {
    display: none !important;
  }

  .google-signin-btn span {
    display: none !important;
  }

  .google-signin-btn {
    padding: 6px !important;
    border-radius: 50% !important;
  }

  .urgent-banner-actions {
    flex-wrap: wrap;
  }

  .btn-urgent-focus, .btn-urgent-done {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}
