:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #0f172a;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148,163,184,0.3);
  --radius-lg: 1.5rem;
  --radius-md: 0.9rem;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.7);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shell {
  width: 100%;
  max-width: 1100px;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.2), transparent 50%),
    radial-gradient(circle at bottom right, rgba(129,140,248,0.2), transparent 55%),
    linear-gradient(145deg, #020617, #020617);
  border-radius: 2rem;
  padding: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(148,163,184,0.35);
  pointer-events: none;
}
.shell-inner {
  position: relative;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
  padding: 24px 24px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(248,250,252,0.9), transparent 55%),
    conic-gradient(from 210deg, #38bdf8, #4f46e5, #22c55e, #38bdf8);
  padding: 2px; position: relative;
}
.brand-mark::after { content:""; position:absolute; inset:3px; border-radius:inherit; background: rgba(15,23,42,0.96); }
.brand-title { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.brand-sub { font-size: 0.78rem; color: var(--muted); }

.pill {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(16px);
}
.pill a { color: var(--accent); text-decoration: none; font-weight: 500; }
.pill a:hover { text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.card {
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.45);
  padding: 12px;
}

.day {
  min-height: 110px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.day:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.85);
  box-shadow: 0 14px 35px rgba(15,23,42,0.9);
}
.day .num { font-weight: 600; font-size: 0.95rem; }
.day .meta { margin-top: 8px; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.day .hours { margin-top: 6px; font-size: 0.82rem; color: #cbd5e1; }
.day.out { opacity: 0.35; }

.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.8);
  font-size: 0.75rem;
  color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

.row { display:flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.controls { display:flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn {
  appearance: none;
  border: 1px solid rgba(148,163,184,0.45);
  background: rgba(15,23,42,0.95);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
}
.btn:hover { border-color: rgba(56,189,248,0.85); }

.input, textarea {
  width: 100%;
  background: rgba(2,6,23,0.55);
  border: 1px solid rgba(148,163,184,0.45);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }

.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 800px) {
  .shell-inner { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
}
.small { color: var(--muted); font-size: 0.82rem; }
hr { border: none; height: 1px; background: linear-gradient(to right, transparent, rgba(148,163,184,0.5), transparent); margin: 14px 0; }

/* Calendar day numbers - default white */
.day .num {
  color: #e5e7eb; /* same as --text */
}

.day.today .num {
  color: var(--accent);
}

/* --- Calendar + right sidebar layout (desktop) --- */
.calendar-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

/* Make sure the grid doesn't overflow the column */
.calendar-left{ min-width: 0; }
.calendar-right{ min-width: 0; }

/* Sticky weekly panel so it stays visible while you scroll the calendar */
.week-card{
  position: sticky;
  top: 18px;
}

/* Tablet/mobile: stack */
@media (max-width: 1100px){
  .calendar-layout{
    grid-template-columns: 1fr;
  }
  .week-card{
    position: static;
  }
}

.sidebar{
  display: grid;
  gap: 14px;
}

.week-card{
  position: sticky;
  top: 18px;
}
