@charset "UTF-8";

/* ==========================================================================
   TimeZone Grid - OmniTick Global Scheduling Utility
   Dark Obsidian & Cyan Theme Styles
   ========================================================================== */

:root {
  --color-obsidian: #070b14;
  --color-card-bg: #0d1527;
  --color-card-border: rgba(56, 189, 248, 0.12);
  --color-card-hover: rgba(56, 189, 248, 0.25);
  --color-cyan-glow: #38bdf8;
  --color-emerald-glow: #10b981;
  --color-amber-glow: #f59e0b;
}

body {
  background-color: var(--color-obsidian);
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Monospace & Tabular figures */
.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #070b14;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Card Glow & Glassmorphism */
.glass-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glass-card:hover {
  border-color: var(--color-card-hover);
  box-shadow: 0 8px 30px -4px rgba(56, 189, 248, 0.08);
}

.cyan-glow {
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.cyan-glow-text {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Custom Range Slider */
.timeline-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #111d33;
  border-radius: 9999px;
  outline: none;
  border: 1px solid rgba(56, 189, 248, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeline-slider:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

/* Webkit Slider Thumb */
.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid #070b14;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6);
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 16px #38bdf8, 0 0 28px rgba(56, 189, 248, 0.8);
}

.timeline-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

/* Firefox Slider Thumb */
.timeline-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #38bdf8;
  border: 3px solid #070b14;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6);
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.timeline-slider::-moz-range-thumb:hover {
  transform: scale(1.18);
}

.timeline-slider::-moz-range-thumb:active {
  cursor: grabbing;
}

/* Timeline Block Statuses */
.block-working {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.block-working:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(16, 185, 129, 0.6);
}

.block-personal {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.block-personal:hover {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(245, 158, 11, 0.5);
}

.block-sleep {
  background: rgba(15, 23, 42, 0.6);
  color: #64748b;
  border: 1px solid rgba(30, 41, 59, 0.5);
}

.block-sleep:hover {
  background: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
}

/* Active Highlight for Timeline Block */
.block-active {
  outline: 2px solid #38bdf8 !important;
  outline-offset: -1px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), inset 0 0 6px rgba(56, 189, 248, 0.3) !important;
  font-weight: 700;
  z-index: 10;
  transform: translateY(-2px);
}

/* Dialog Backdrop & Animation */
dialog[open] {
  animation: dialog-appear 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

dialog::backdrop {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes dialog-appear {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Subtle pulse for live status dot */
@keyframes pulse-cyan {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px #38bdf8;
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 2px #38bdf8;
  }
}

.live-dot {
  animation: pulse-cyan 2s infinite ease-in-out;
}

/* Overlap strip bar blocks */
.overlap-slot {
  transition: all 0.15s ease;
}

.overlap-slot:hover {
  transform: scaleY(1.15);
  filter: brightness(1.25);
}

/* Responsive adjustment for timeline blocks */
@media (max-width: 640px) {
  .timeline-block-text {
    font-size: 8px;
  }
}
