:root {
  --bg: #050816;
  --bg-card: rgba(15, 23, 42, 0.45);
  --accent: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --radius: 16px;
  --blur: 16px;
  --font-main: system-ui, -apple-system, sans-serif;
}

body {
  margin: 0; min-height: 100vh; font-family: var(--font-main); color: var(--text);
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.bg-overlay {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.1) 0, transparent 40%);
}

.dashboard {
  position: relative; width: min(1000px, 95%); padding: 2.5rem;
  border-radius: 24px; background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(var(--blur)); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.time-block .time { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.time-block .date { font-size: 0.9rem; color: var(--muted); text-transform: uppercase; margin-top: 0.5rem; }
.top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }

#search-input {
  width: 100%; padding: 1rem 1.5rem; border-radius: 12px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text); font-size: 1.1rem; transition: 0.2s;
}
#search-input:focus { outline: none; border-color: var(--accent); background: rgba(0, 0, 0, 0.5); }

.grid { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr; gap: 1.5rem; }

.card {
  background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.3); }
.card h2 { font-size: 0.8rem; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.1rem; }

.link-group a {
  display: block; color: var(--text); text-decoration: none; padding: 0.4rem 0.8rem;
  border-radius: 8px; margin-bottom: 0.2rem; font-size: 0.95rem; transition: 0.2s;
}
.link-group a:hover { background: rgba(56, 189, 248, 0.1); color: var(--accent); }

.weather-display { margin-top: 1rem; }
.weather-label { display: block; font-size: 0.75rem; color: var(--muted); }
.weather-data { font-size: 1.2rem; display: block; margin-top: 0.2rem; }
.weather-data strong { color: var(--accent); }

.todo-text.completed { text-decoration: line-through; opacity: 0.5; }
.todo-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

@media (max-width: 850px) { .grid { grid-template-columns: 1fr; } .top { flex-direction: column; align-items: flex-start; } }