/* Material Symbols Font Rule */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', 'Material Icons', sans-serif !important;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  vertical-align: middle;
}

:root {
  --surface: #141313;
  --surface-card: #171717;
  --surface-border: #262626;
  --surface-hover: #201f1f;
  --surface-active: #2b2a2a;
  --on-surface: #e5e2e1;
  --on-surface-variant: #c4c7c7;
  --primary: #c9c6c5;
  --text-muted: #7b7979;
  --tile-inactive: #262626;
}

/* Light Theme Variables */
.light {
  --surface: #f9f9fb;
  --surface-card: #ffffff;
  --surface-border: #e2e4e8;
  --surface-hover: #f1f3f7;
  --surface-active: #e5e8ee;
  --on-surface: #191c1e;
  --on-surface-variant: #5f6368;
  --primary: #191c1e;
  --text-muted: #8c9096;
  --tile-inactive: #e5e7eb;
}

/* OLED Midnight Theme */
.oled {
  --surface: #000000;
  --surface-card: #0c0c0c;
  --surface-border: #1f1f1f;
  --surface-hover: #171717;
  --surface-active: #222222;
  --on-surface: #ffffff;
  --on-surface-variant: #a0a0a0;
  --primary: #ffffff;
  --text-muted: #666666;
  --tile-inactive: #1a1a1a;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.font-mono-data {
  font-family: 'JetBrains Mono', monospace;
}

/* Contribution Graph Habit Tiles */
.habit-tile {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.habit-tile:hover {
  transform: scale(1.25);
  z-index: 10;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.habit-tile-inactive {
  background-color: var(--tile-inactive);
}

/* Mint Accent */
.habit-tile-mint-full { background-color: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.4); }
.habit-tile-mint-partial { background-color: rgba(74, 222, 128, 0.45); }

/* Blue Accent */
.habit-tile-blue-full { background-color: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.4); }
.habit-tile-blue-partial { background-color: rgba(59, 130, 246, 0.45); }

/* Coral Accent */
.habit-tile-coral-full { background-color: #f87171; box-shadow: 0 0 6px rgba(248, 113, 113, 0.4); }
.habit-tile-coral-partial { background-color: rgba(248, 113, 113, 0.45); }

/* Amber Accent */
.habit-tile-amber-full { background-color: #fbbf24; box-shadow: 0 0 6px rgba(251, 191, 36, 0.4); }
.habit-tile-amber-partial { background-color: rgba(251, 191, 36, 0.45); }

/* Purple Accent */
.habit-tile-purple-full { background-color: #a855f7; box-shadow: 0 0 6px rgba(168, 85, 247, 0.4); }
.habit-tile-purple-partial { background-color: rgba(168, 85, 247, 0.45); }

/* Cyan Accent */
.habit-tile-cyan-full { background-color: #06b6d4; box-shadow: 0 0 6px rgba(6, 182, 212, 0.4); }
.habit-tile-cyan-partial { background-color: rgba(6, 182, 212, 0.45); }

/* Full 365-Day Activity Grid Tiles (Small) */
.heat-tile-sm {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  transition: transform 0.1s ease;
  cursor: pointer;
}
.heat-tile-sm:hover {
  transform: scale(1.4);
  z-index: 20;
}

/* Custom Scrollbars */
.heatmap-scroll::-webkit-scrollbar {
  height: 6px;
}
.heatmap-scroll::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 4px;
}
.heatmap-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 4px;
}
.heatmap-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--on-surface-variant);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Icon & Color Picker Selection Styling */
.icon-opt-btn {
  border: 1.5px solid var(--surface-border);
  color: var(--on-surface-variant);
  background-color: var(--surface-container);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-opt-btn:hover {
  background-color: var(--surface-hover);
  color: var(--on-surface);
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-opt-btn.icon-selected {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background-color: #2e2d2d !important;
  box-shadow: 0 0 0 1px #ffffff, 0 0 14px rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.08);
}

.color-opt-btn {
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), outline 0.15s ease;
}

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

.color-opt-btn.color-selected {
  outline: 2.5px solid #ffffff !important;
  outline-offset: 3px !important;
  transform: scale(1.18);
}

/* Card Elevation & Border Styling */
.lumina-card {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.lumina-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.light .lumina-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Interactive Check Button Pulse */
@keyframes checkSuccess {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.check-pulse {
  animation: checkSuccess 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modal and Backdrop Animations */
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-enter {
  animation: modalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.18s ease forwards;
}

/* Tooltip Styling */
.lumina-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
  border: 1px solid #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.has-tooltip:hover .lumina-tooltip {
  opacity: 1;
}

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