/* ============================================================
   DAILY DASHBOARD — Google Light Theme & Material Design
   Clean, professional, modern dashboard with Open Sans & Google Palette
   ============================================================ */

/* === CSS VARIABLES (Google Material Theme) === */
:root {
  /* Google Core Colors */
  --google-blue: #1a73e8;
  --google-blue-hover: #1557b0;
  --google-blue-surface: #e8f0fe;
  --google-blue-light: #d2e3fc;

  --google-red: #d93025;
  --google-red-hover: #b3261e;
  --google-red-surface: #fce8e6;
  --google-red-light: #fad2cf;

  --google-yellow: #f9ab00;
  --google-yellow-dark: #e37400;
  --google-yellow-surface: #fef7e0;
  --google-yellow-light: #feefc3;

  --google-green: #1e8e3e;
  --google-green-hover: #188038;
  --google-green-surface: #e6f4ea;
  --google-green-light: #ceead6;

  --google-purple: #9334e6;
  --google-purple-surface: #f3e8fd;
  --google-purple-light: #e9d2fd;

  --google-orange: #e8710a;
  --google-orange-surface: #feefe3;

  /* Neutrals & Surfaces (Google Light Theme) */
  --bg-app: #f8fafd;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #f1f3f4;
  --bg-hover: #f1f3f4;
  --bg-active: #e8eaed;

  --border-light: #e0e3e7;
  --border-subtle: #dadce0;
  --border-focus: #1a73e8;

  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --text-disabled: #bdc1c6;

  /* Shadows (Google Material Elevation) */
  --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.12), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
  --shadow-2: 0 1px 3px 0 rgba(60, 64, 67, 0.2), 0 4px 8px 3px rgba(60, 64, 67, 0.1);
  --shadow-3: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 8px 16px 4px rgba(60, 64, 67, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(60, 64, 67, 0.12), 0 1px 3px rgba(60, 64, 67, 0.08);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Google Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Material Symbols Default Alignment */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Color utility classes for icons */
.blue { color: var(--google-blue); }
.red { color: var(--google-red); }
.yellow { color: var(--google-yellow-dark); }
.green { color: var(--google-green); }
.purple { color: var(--google-purple); }
.orange { color: var(--google-orange); }

/* === APP CONTAINER === */
.app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px 40px;
}

/* === HEADER (NO GRADIENT, GOOGLE MINIMALIST) === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 14px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Clean Google Blue Badge — NO harsh gradient! */
.header-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--google-blue-surface);
  border: 1px solid var(--google-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--google-blue);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.header-logo-badge:hover {
  transform: scale(1.05);
}

.logo-glyph {
  font-size: 26px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.date-display {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* Header Center: Build in Public & Learning Reminder Ticker */
.header-center {
  flex: 1;
  max-width: 580px;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

.reminder-ticker {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  transition: background var(--transition-fast);
}

.reminder-ticker:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ticker-nav-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

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

.ticker-nav-btn .material-symbols-outlined {
  font-size: 18px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.ticker-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ticker-badge.badge-github { background: #e8f0fe; color: #1a73e8; }
.ticker-badge.badge-linkedin { background: #e8f4fd; color: #0077b5; }
.ticker-badge.badge-gsoc { background: #fce8e6; color: #d93025; }
.ticker-badge.badge-skills { background: #fef7e0; color: #b06000; }
.ticker-badge.badge-english { background: #f3e8fd; color: #8430ce; }

.ticker-text {
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Live Time Pill */
.header-time-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.header-time-pill .time-icon {
  font-size: 16px;
  color: var(--google-blue);
}

/* Header Icon Button */
.header-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--google-blue);
  border-color: var(--google-blue-light);
}

.reminder-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--google-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Streak Badge */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--google-yellow-surface);
  border: 1.5px solid var(--google-yellow-light);
  border-radius: var(--radius-pill);
  padding: 4px 14px 4px 8px;
  box-shadow: 0 1px 4px rgba(249, 171, 0, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.streak-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(249, 171, 0, 0.25);
}

.streak-fire-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9ab00, #ea4335);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.streak-fire-icon .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.streak-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.streak-count {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #b06000;
}

.streak-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b06000;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* === SPEED-DIAL / BOOKMARKS BAR === */
.speed-dial-section {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.speed-dial-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-right: 12px;
  border-right: 1px solid var(--border-light);
  flex-shrink: 0;
}

.speed-dial-icon {
  font-size: 18px;
  color: var(--google-yellow-dark);
}

.speed-dial-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
}

.speed-dial-item-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.speed-dial-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

.speed-dial-item:hover {
  background: #ffffff;
  border-color: var(--google-blue-light);
  color: var(--google-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.bookmark-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.speed-dial-item:hover .bookmark-icon-wrap {
  transform: scale(1.12);
}

.bookmark-icon-wrap .material-symbols-outlined {
  font-size: 16px;
}

.bookmark-icon-wrap.orange { background: #fef7e0; color: #ea8600; }
.bookmark-icon-wrap.dark   { background: #f1f5f9; color: #24292f; }
.bookmark-icon-wrap.teal   { background: #e0f2f1; color: #007b83; }
.bookmark-icon-wrap.blue   { background: #e8f0fe; color: #1a73e8; }
.bookmark-icon-wrap.green  { background: var(--google-green-surface); color: var(--google-green); }
.bookmark-icon-wrap.purple { background: var(--google-purple-surface); color: var(--google-purple); }
.bookmark-icon-wrap.yellow { background: var(--google-yellow-surface); color: var(--google-yellow-dark); }
.bookmark-icon-wrap.red    { background: #fce8e6; color: #d93025; }

.speed-dial-item .item-icon {
  font-size: 18px;
}

.speed-dial-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: -6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  background: #ffffff;
  padding: 2px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.speed-dial-item-wrap:hover .speed-dial-actions {
  opacity: 1;
  pointer-events: auto;
}

.speed-dial-action-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
}

.speed-dial-action-btn.edit-bookmark-btn:hover {
  color: var(--google-blue);
  background: var(--google-blue-surface);
}

.speed-dial-action-btn.del-bookmark-btn:hover {
  color: var(--google-red);
  background: var(--google-red-surface);
}

.add-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.add-bookmark-btn:hover {
  background: var(--google-blue-surface);
  color: var(--google-blue);
  border-color: var(--google-blue);
}

.add-bookmark-btn .material-symbols-outlined {
  font-size: 16px;
}

/* === MAIN LAYOUT GRID === */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === GOOGLE CARD SYSTEM === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #cfd4dc;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover .card-icon-avatar {
  transform: scale(1.06);
}

.card-icon-avatar .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.card-icon-avatar.avatar-blue   { background: var(--google-blue-surface);   color: var(--google-blue);        border: 1px solid var(--google-blue-light); }
.card-icon-avatar.avatar-green  { background: var(--google-green-surface);  color: var(--google-green);       border: 1px solid var(--google-green-light); }
.card-icon-avatar.avatar-yellow { background: var(--google-yellow-surface); color: var(--google-yellow-dark);  border: 1px solid var(--google-yellow-light); }
.card-icon-avatar.avatar-red    { background: var(--google-red-surface);    color: var(--google-red);         border: 1px solid var(--google-red-light); }
.card-icon-avatar.avatar-purple { background: var(--google-purple-surface); color: var(--google-purple);      border: 1px solid var(--google-purple-light); }
.card-icon-avatar.avatar-teal   { background: #e0f7fa;                      color: #007b83;                  border: 1px solid #b2dfdb; }
.card-icon-avatar.avatar-orange { background: var(--google-orange-surface); color: var(--google-orange);      border: 1px solid var(--google-orange-light); }

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.card-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.card-title-icon {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-counter {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-app);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.task-counter.completed {
  background: var(--google-green-surface);
  color: var(--google-green);
  border-color: var(--google-green-light);
}

/* === DAILY TASKS LIST === */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.task-item:hover {
  background: var(--bg-hover);
  border-color: #cfd4dc;
  transform: translateX(2px);
}

.task-item.completed {
  background: #f8fafc;
  border-color: #e2e8f0;
}

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

/* Custom Google Tasks Checkbox */
.task-checkbox-container {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: transparent;
}

.task-item:hover .task-checkbox {
  border-color: var(--google-blue);
}

.task-checkbox .material-symbols-outlined {
  font-size: 16px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.task-item.completed .task-checkbox {
  background: var(--google-blue);
  border-color: var(--google-blue);
}

.task-item.completed .task-checkbox .material-symbols-outlined {
  opacity: 1;
  transform: scale(1);
}

/* Task Category Icon Avatar & Colors */
.task-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.task-item:hover .task-icon {
  transform: scale(1.08);
}

.task-icon .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.task-icon.blue   { background: var(--google-blue-surface);   color: var(--google-blue);        border: 1px solid var(--google-blue-light); }
.task-icon.yellow { background: var(--google-yellow-surface); color: var(--google-yellow-dark);  border: 1px solid var(--google-yellow-light); }
.task-icon.red    { background: var(--google-red-surface);    color: var(--google-red);         border: 1px solid var(--google-red-light); }
.task-icon.purple { background: var(--google-purple-surface); color: var(--google-purple);      border: 1px solid var(--google-purple-light); }
.task-icon.green  { background: var(--google-green-surface);  color: var(--google-green);       border: 1px solid var(--google-green-light); }
.task-icon.orange { background: var(--google-orange-surface); color: var(--google-orange);      border: 1px solid var(--google-orange-light); }

.task-icon-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
}

.task-icon-avatar .material-symbols-outlined {
  font-size: 20px;
}

.task-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.task-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-blue { background: var(--google-blue-surface); color: var(--google-blue); }
.badge-red { background: var(--google-red-surface); color: var(--google-red); }
.badge-green { background: var(--google-green-surface); color: var(--google-green); }
.badge-purple { background: var(--google-purple-surface); color: var(--google-purple); }
.badge-yellow { background: var(--google-yellow-surface); color: var(--google-yellow-dark); }
.badge-orange { background: var(--google-orange-surface); color: var(--google-orange); }

/* === PROGRESS RING & 80% THRESHOLD === */
.progress-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.progress-ring-container {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  stroke: #e0e3e7;
}

.progress-ring-fill {
  stroke: var(--google-blue);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
}

.progress-ring-fill.threshold-met {
  stroke: var(--google-green);
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-percent {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.progress-details {
  flex: 1;
}

.progress-message {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.streak-threshold {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.threshold-bar {
  position: relative;
  height: 8px;
  background: #e0e3e7;
  border-radius: var(--radius-pill);
}

.threshold-fill {
  height: 100%;
  background: var(--google-blue);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.5s ease-out, background 0.3s;
}

.threshold-fill.threshold-met {
  background: var(--google-green);
}

.threshold-marker {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 14px;
  background: #5f6368;
  border-radius: 2px;
  transform: translateX(-50%);
}

.threshold-label {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.threshold-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* === POMODORO FOCUS TIMER CARD === */
.pomodoro-card {
  padding: 22px;
}

.pomodoro-sessions-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--google-red-surface);
  color: var(--google-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pomodoro-sessions-pill .material-symbols-outlined {
  font-size: 16px;
}

.pomodoro-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pomodoro-modes {
  display: flex;
  gap: 8px;
  background: var(--bg-app);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.pomo-mode-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pomo-mode-btn:hover {
  color: var(--text-primary);
}

.pomo-mode-btn.active {
  background: #ffffff;
  color: var(--google-red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pomodoro-display {
  padding: 10px 0;
}

.pomodoro-time {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.pomodoro-tag-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.pomodoro-tag-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pomodoro-tag-label .material-symbols-outlined {
  font-size: 16px;
}

.pomodoro-tag-select {
  flex: 1;
  font-size: 0.85rem;
  padding: 6px 10px;
}

.pomodoro-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pomo-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pomo-start-btn {
  background: var(--google-red);
  color: #ffffff;
  padding: 10px 24px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(217, 48, 37, 0.25);
}

.pomo-start-btn:hover {
  background: var(--google-red-hover);
  box-shadow: 0 4px 10px rgba(217, 48, 37, 0.35);
  transform: translateY(-1px);
}

.pomo-start-btn.running {
  background: var(--google-yellow-dark);
  box-shadow: 0 2px 6px rgba(227, 116, 0, 0.25);
}

.pomo-reset-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  justify-content: center;
}

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

/* === GOOGLE KEEP-STYLE SCRATCHPAD CARD === */
.scratchpad-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

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

.scratchpad-saved-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--google-green);
  background: var(--google-green-surface);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

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

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

.icon-btn-sm .material-symbols-outlined {
  font-size: 16px;
}

.scratchpad-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scratchpad-textarea {
  width: 100%;
  min-height: 110px;
  max-height: 220px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: #fffdf5; /* subtle Google Keep warm tint */
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.scratchpad-textarea:focus {
  border-color: var(--google-yellow-dark);
  box-shadow: 0 0 0 3px var(--google-yellow-surface);
}

.scratchpad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scratchpad-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scratchpad-chip {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-app);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scratchpad-chip:hover {
  background: var(--google-yellow-surface);
  color: var(--google-yellow-dark);
  border-color: var(--google-yellow-light);
}

.scratchpad-char-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* === STREAK STATS CARD === */
.streak-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-box {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform var(--transition-fast);
}

.stat-box:hover {
  transform: translateY(-2px);
}

.stat-box.stat-fire { background: var(--google-yellow-surface); border-color: var(--google-yellow-light); }
.stat-box.stat-fire .stat-icon { color: #ea4335; }
.stat-box.stat-crown { background: var(--google-blue-surface); border-color: var(--google-blue-light); }
.stat-box.stat-crown .stat-icon { color: var(--google-blue); }
.stat-box.stat-star { background: var(--google-green-surface); border-color: var(--google-green-light); }
.stat-box.stat-star .stat-icon { color: var(--google-green); }

.stat-icon { font-size: 24px; margin-bottom: 2px; }
.stat-value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* Streak Milestones */
.streak-milestones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
}

.milestone-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.milestone-badge.achieved {
  background: var(--google-yellow-surface);
  border-color: var(--google-yellow-light);
  color: #b06000;
}

.milestone-badge.achieved .material-symbols-outlined {
  color: #f9ab00;
  font-variation-settings: 'FILL' 1;
}

/* === WEEKLY STATS CARD === */
.weekly-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  height: 150px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--border-light);
}

.weekly-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.bar-track {
  width: 100%;
  max-width: 26px;
  background: #f1f3f4;
  border-radius: var(--radius-sm);
  height: 110px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  background: var(--google-blue);
  border-radius: var(--radius-sm);
  transition: height 0.5s ease-out;
  min-height: 4px;
}

.bar-fill.threshold-met { background: var(--google-green); }
.bar-fill.bar-today { box-shadow: 0 0 0 2px var(--google-blue); }
.bar-day { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.bar-day.today { color: var(--google-blue); font-weight: 800; }
.bar-percent { font-size: 0.68rem; font-weight: 700; color: var(--text-secondary); }

/* === CALENDAR CARD === */
.calendar-card {
  padding: 22px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calendar-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cal-view {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cal-view.active {
  background: var(--google-blue-surface);
  color: var(--google-blue);
  border-color: var(--google-blue-light);
}

.btn-today {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--google-blue);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-today:hover {
  background: var(--google-blue-surface);
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.cal-day {
  aspect-ratio: 1;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.cal-day:hover {
  border-color: var(--google-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.cal-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

.cal-day-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

/* Heat Map Shades */
.cal-day.heat-none { background: #ffffff; }
.cal-day.heat-low { background: #e6f4ea; border-color: #ceead6; }
.cal-day.heat-mid { background: #a8dab5; border-color: #81c995; }
.cal-day.heat-high { background: #34a853; border-color: #1e8e3e; }
.cal-day.heat-high .cal-day-num { color: #ffffff; font-weight: 700; }

.cal-day.today {
  box-shadow: inset 0 0 0 2px var(--google-blue);
}

.cal-day.today .cal-day-num {
  color: var(--google-blue);
  font-weight: 800;
}

.cal-day.heat-high.today .cal-day-num { color: #ffffff; }

/* Calendar Event Mini Pill Preview (on desktop) */
.cal-event-preview {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  margin-top: 1px;
}

.preview-exam { background: var(--google-red-surface); color: var(--google-red); }
.preview-gsoc { background: var(--google-blue-surface); color: var(--google-blue); }
.preview-college { background: var(--google-purple-surface); color: var(--google-purple); }
.preview-holiday { background: var(--google-orange-surface); color: var(--google-orange); border: 1px solid #ffd8b3; }

/* Calendar Event Dots */
.cal-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 6px;
}

.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.cal-dot.dot-exam { background: var(--google-red); }
.cal-dot.dot-gsoc { background: var(--google-blue); }
.cal-dot.dot-college { background: var(--google-purple); }
.cal-dot.dot-deadline { background: var(--google-orange); }
.cal-dot.dot-personal { background: var(--google-yellow-dark); }
.cal-dot.dot-holiday { background: var(--google-orange); }

/* Day Note Dot & Tag on Calendar */
.cal-day.has-date-note::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--google-yellow-dark);
  box-shadow: 0 0 4px rgba(249, 171, 0, 0.7);
}

.cal-day-tag-badge {
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  margin-top: 1px;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-important { background: #fef7e0; color: #b06000; border: 1px solid #feefc3; }
.tag-exam { background: #fce8e6; color: #d93025; border: 1px solid #fad2cf; }
.tag-gsoc { background: #e8f0fe; color: #1a73e8; border: 1px solid #d2e3fc; }
.tag-rest { background: #f3e8fd; color: #8430ce; border: 1px solid #e9d2fd; }
.tag-deadline { background: #feefe3; color: #e8710a; border: 1px solid #fed7b2; }
.tag-celebrate { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }

/* Day Note Section inside Modal */
.day-note-section {
  background: #fffdf5;
  border: 1px solid #fde047;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.day-note-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-note-sync-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--google-green);
  background: var(--google-green-surface);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.day-note-textarea {
  width: 100%;
  min-height: 70px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  background: #ffffff;
  resize: vertical;
}

.day-note-textarea:focus {
  border-color: var(--google-yellow-dark);
  box-shadow: 0 0 0 2px var(--google-yellow-surface);
}

.modal-tag-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-tag-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-tag-chip:hover {
  background: var(--bg-hover);
  border-color: var(--google-yellow-dark);
}

.modal-tag-chip.active {
  background: var(--google-yellow-surface);
  border-color: var(--google-yellow-dark);
  color: #7a4100;
  font-weight: 700;
}

.modal-note-templates {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-tmpl-btn {
  background: #ffffff;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-tmpl-btn:hover {
  background: var(--google-blue-surface);
  border-color: var(--google-blue-light);
  color: var(--google-blue);
}

.day-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.day-tag-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-tag-picker select {
  font-size: 0.8rem;
  padding: 4px 8px;
}

/* Header Notification Button Enabled */
.header-icon-btn.notif-enabled {
  color: var(--google-green);
  border-color: var(--google-green-light);
  background: var(--google-green-surface);
}

.timeline-item-icon.holiday {
  background: var(--google-orange-surface);
  color: var(--google-orange);
}
.cal-dot.dot-personal { background: var(--google-yellow-dark); }

/* Calendar Legend */
.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--border-light); }
.legend-dot-none { background: #ffffff; }
.legend-dot-low { background: #e6f4ea; }
.legend-dot-mid { background: #a8dab5; }
.legend-dot-high { background: #34a853; }
.legend-dot-holiday { background: var(--google-orange); }
.legend-dot-note { background: var(--google-yellow-dark); border-radius: 50%; }

/* Calendar Mark Date Action Button */
.btn-cal-note {
  background: #fef7e0;
  border: 1px solid #feefc3;
  color: #b06000;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cal-note:hover {
  background: #feefc3;
  border-color: #fdd663;
  color: #7a4100;
  transform: translateY(-1px);
}

/* Calendar Day Badges Container */
.cal-day-badges {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  align-items: center;
  overflow: hidden;
  max-width: 96%;
}

.tag-note { background: #fef7e0; color: #b06000; border: 1px solid #feefc3; }

/* Reminder Preset Chips */
.reminder-preset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rem-preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rem-preset-chip:hover {
  background: var(--google-blue-surface);
  border-color: var(--google-blue-light);
  color: var(--google-blue);
}

/* Agenda Note Item */
.agenda-note-item {
  background: #fffdf5;
  border-color: #fde047;
}

.agenda-open-btn {
  margin-left: auto;
  opacity: 0.7;
}

.agenda-open-btn:hover {
  opacity: 1;
}

/* Agenda View */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.agenda-item:hover {
  background: #ffffff;
  border-color: var(--google-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.agenda-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.agenda-date-month { font-size: 0.65rem; font-weight: 700; color: var(--google-red); text-transform: uppercase; }
.agenda-date-day { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); line-height: 1; }

.agenda-item-info { flex: 1; }
.agenda-item-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.agenda-item-sub { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* === TIMELINE & EVENTS CARD === */
.timeline-card { padding: 22px; }

.add-event-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--google-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.add-event-btn:hover {
  background: var(--google-blue-hover);
  transform: translateY(-1px);
}

.add-event-btn .material-symbols-outlined { font-size: 18px; }

/* Category Filter Tabs */
.timeline-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-chip:hover { background: var(--bg-hover); color: var(--text-primary); }
.filter-chip.active { background: var(--google-blue-surface); color: var(--google-blue); border-color: var(--google-blue-light); }

/* Timeline List */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.timeline-item:hover { border-color: #cfd4dc; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }

.timeline-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-item-icon.exam { background: var(--google-red-surface); color: var(--google-red); }
.timeline-item-icon.gsoc { background: var(--google-blue-surface); color: var(--google-blue); }
.timeline-item-icon.college { background: var(--google-purple-surface); color: var(--google-purple); }
.timeline-item-icon.deadline { background: var(--google-orange-surface); color: var(--google-orange); }
.timeline-item-icon.personal { background: var(--google-yellow-surface); color: var(--google-yellow-dark); }

.timeline-item-content { flex: 1; }

.timeline-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-item-title { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700; color: var(--text-primary); }

.timeline-countdown { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.countdown-soon { background: var(--google-red-surface); color: var(--google-red); }
.countdown-normal { background: var(--google-blue-surface); color: var(--google-blue); }
.countdown-today { background: var(--google-green-surface); color: var(--google-green); }
.countdown-passed { background: #f1f3f4; color: var(--text-muted); }

.timeline-item-dates { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.timeline-item-dates .material-symbols-outlined { font-size: 14px; }
.timeline-item-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

.timeline-item-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  opacity: 0;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-item-delete { opacity: 1; }
.timeline-item-delete:hover { color: var(--google-red); background: var(--google-red-surface); }

/* === MODALS === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: 20px;
}

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

.modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
  border: 1px solid var(--border-light);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }

.modal-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Modal Form */
form { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.optional { font-size: 0.72rem; color: var(--text-muted); font-weight: normal; }

input[type="text"], input[type="date"], input[type="time"], input[type="url"], select, textarea {
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px var(--google-blue-surface);
}

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

/* Buttons */
.btn {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary { background: var(--google-blue); color: #ffffff; }
.btn-primary:hover { background: var(--google-blue-hover); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-icon { font-size: 18px; }

/* === SCHEDULED REMINDER ALERT POPUP MODAL === */
.alert-modal-overlay {
  z-index: 1500;
}

.alert-modal {
  text-align: center;
  padding: 32px 24px;
  max-width: 440px;
}

.alert-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--google-yellow-surface);
  border: 2px solid var(--google-yellow-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: bell-bounce 1s infinite alternate;
}

.alert-bell-icon {
  font-size: 36px;
  color: #ea4335;
  font-variation-settings: 'FILL' 1;
}

@keyframes bell-bounce {
  0% { transform: rotate(-10deg) scale(1); }
  100% { transform: rotate(10deg) scale(1.1); }
}

.alert-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.alert-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.alert-message-card {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.alert-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Active Reminders List in Modal */
.reminders-list-container {
  padding: 0 22px 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
}

.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.reminder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.reminder-item-time {
  font-weight: 700;
  color: var(--google-blue);
  background: var(--google-blue-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.reminder-item-title {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.reminder-item-del {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.reminder-item-del:hover {
  color: var(--google-red);
}

/* Day Detail Modal Body */
#day-modal-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.day-detail-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.day-detail-tasks { display: flex; flex-direction: column; gap: 8px; }
.day-detail-task { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.88rem; }
.day-detail-events { display: flex; flex-direction: column; gap: 8px; }

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

/* ============================================================
   CUSTOM EXTRA DAILY TASKS CARD (Google Tasks Style)
   ============================================================ */
.custom-tasks-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-tasks-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 4px 0;
}

.quick-chips-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-right: 2px;
}

.quick-task-chip {
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
  line-height: 1.2;
}

.quick-task-chip:hover {
  background: var(--google-purple-surface);
  color: var(--google-purple);
  border-color: var(--google-purple-light);
  transform: translateY(-1px);
}

.custom-task-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.custom-task-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-app);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 2px 14px;
  transition: all var(--transition-fast);
}

.custom-task-input-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px var(--google-blue-surface);
}

.custom-task-input-wrapper .input-leading-icon {
  font-size: 18px;
  color: var(--text-muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.custom-task-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 0;
  font-size: 0.86rem;
  font-family: var(--font-main);
  color: var(--text-primary);
}

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

.custom-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.custom-task-item:hover {
  border-color: #cbd5e1;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-task-item.completed {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.custom-task-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
}

.custom-task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  background: transparent;
}

.custom-task-item:hover .custom-task-checkbox {
  border-color: var(--google-blue);
}

.custom-task-checkbox.completed {
  background: var(--google-green);
  border-color: var(--google-green);
  color: #ffffff;
}

.custom-task-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.custom-task-item.completed .custom-task-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.custom-task-del {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.custom-task-del:hover {
  background: var(--google-red-surface);
  color: var(--google-red);
}

.empty-custom-tasks {
  text-align: center;
  padding: 18px 14px;
  color: var(--text-muted);
  background: var(--bg-app);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
}

.empty-custom-tasks p {
  font-size: 0.82rem;
  margin-top: 6px;
  color: var(--text-secondary);
}

/* ============================================================
   FINANCE & STUDENT BUDGET CARD (SIP, SAVINGS, EXPENSES)
   ============================================================ */
.finance-card,
.monthly-goals-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.finance-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--bg-app);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  gap: 2px;
}

.finance-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.finance-tab-btn.active {
  background: #ffffff;
  color: var(--google-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.finance-tab-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Dual Metric Snapshot at Top of Finance Card */
.finance-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}

@media (max-width: 580px) {
  .finance-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

.finance-snapshot-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.finance-snapshot-item:hover {
  border-color: var(--border-subtle);
  background: #ffffff;
}

.snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.snapshot-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.snapshot-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.snapshot-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.finance-mini-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 2px;
}

.finance-mini-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--google-blue), var(--google-green));
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.finance-mini-bar.budget-bar {
  background: linear-gradient(90deg, var(--google-blue), var(--google-green));
}

.finance-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Budget Controls & Breakdown */
.budget-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.budget-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.budget-stat-chip strong {
  color: var(--text-primary);
}

.btn-text-sm {
  background: transparent;
  border: none;
  color: var(--google-blue);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.btn-text-sm:hover {
  color: var(--google-blue-dark);
}

.budget-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.budget-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.budget-cat-pill.cat-green  { background: var(--google-green-surface);  color: var(--google-green);      border-color: var(--google-green-light); }
.budget-cat-pill.cat-teal   { background: #e0f2f1;                     color: #007b83;                  border-color: #b2dfdb; }
.budget-cat-pill.cat-orange { background: #fef7e0;                     color: #ea8600;                  border-color: #fee4a6; }
.budget-cat-pill.cat-blue   { background: var(--google-blue-surface);   color: var(--google-blue);       border-color: var(--google-blue-light); }
.budget-cat-pill.cat-purple { background: var(--google-purple-surface); color: var(--google-purple);     border-color: var(--google-purple-light); }
.budget-cat-pill.cat-yellow { background: var(--google-yellow-surface); color: var(--google-yellow-dark); border-color: var(--google-yellow-light); }

/* Expenses List */
.expenses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.expense-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.expense-item:hover {
  border-color: var(--google-blue-light);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transform: translateX(2px);
}

.expense-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.expense-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expense-avatar .material-symbols-outlined {
  font-size: 18px;
}

.expense-avatar.cat-green  { background: var(--google-green-surface);  color: var(--google-green);       border: 1px solid var(--google-green-light); }
.expense-avatar.cat-teal   { background: #e0f2f1;                     color: #007b83;                   border: 1px solid #b2dfdb; }
.expense-avatar.cat-orange { background: #fef7e0;                     color: #ea8600;                   border: 1px solid #fee4a6; }
.expense-avatar.cat-blue   { background: var(--google-blue-surface);   color: var(--google-blue);        border: 1px solid var(--google-blue-light); }
.expense-avatar.cat-purple { background: var(--google-purple-surface); color: var(--google-purple);      border: 1px solid var(--google-purple-light); }
.expense-avatar.cat-yellow { background: var(--google-yellow-surface); color: var(--google-yellow-dark);  border: 1px solid var(--google-yellow-light); }

.expense-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.expense-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expense-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.expense-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.expense-amount {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.expense-del-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.expense-del-btn:hover {
  color: var(--google-red);
  background: var(--google-red-surface);
}

.empty-expenses {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  background: var(--bg-app);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
}

.monthly-goals-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.monthly-goals-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--google-blue), var(--google-green));
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.monthly-goals-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.monthly-goals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monthly-goal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.monthly-goal-item:hover {
  border-color: var(--google-green-light);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transform: translateX(2px);
}

.monthly-goal-item.completed {
  background: #f6fcf8;
  border-color: #ceead6;
}

.monthly-goal-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
}

.monthly-goal-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.monthly-goal-item:hover .monthly-goal-avatar {
  transform: scale(1.08);
}

.monthly-goal-avatar .material-symbols-outlined {
  font-size: 20px;
}

.monthly-goal-avatar.cat-green  { background: var(--google-green-surface);  color: var(--google-green);       border: 1px solid var(--google-green-light); }
.monthly-goal-avatar.cat-blue   { background: var(--google-blue-surface);   color: var(--google-blue);        border: 1px solid var(--google-blue-light); }
.monthly-goal-avatar.cat-yellow { background: var(--google-yellow-surface); color: var(--google-yellow-dark);  border: 1px solid var(--google-yellow-light); }
.monthly-goal-avatar.cat-purple { background: var(--google-purple-surface); color: var(--google-purple);      border: 1px solid var(--google-purple-light); }
.monthly-goal-avatar.cat-red    { background: var(--google-red-surface);    color: var(--google-red);         border: 1px solid var(--google-red-light); }

.monthly-goal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.monthly-goal-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.monthly-goal-item.completed .monthly-goal-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.monthly-goal-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.goal-target-tag {
  font-weight: 700;
  color: var(--google-green);
  background: var(--google-green-surface);
  padding: 1px 6px;
  border-radius: 4px;
}

.monthly-goal-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.monthly-goal-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.monthly-goal-btn.edit-btn:hover {
  color: var(--google-blue);
  background: var(--google-blue-surface);
}

.monthly-goal-btn.del-btn:hover {
  color: var(--google-red);
  background: var(--google-red-surface);
}

/* Timeline Item Actions (Edit & Delete) */
.timeline-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.timeline-item-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.timeline-item-btn.edit-btn:hover {
  color: var(--google-blue);
  background: var(--google-blue-surface);
}

.timeline-item-btn.del-btn:hover {
  color: var(--google-red);
  background: var(--google-red-surface);
}

/* === FOOTER === */
.footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.footer-icon { font-size: 16px; color: #ea4335; vertical-align: middle; }

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1080px) {
  .main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app { padding: 12px 14px 28px; }

  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .header-left, .header-right { justify-content: space-between; }
  .header-center { max-width: 100%; padding: 0; }
  .progress-section { flex-direction: column; text-align: center; }
  .streak-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
