* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f172a; color: #e2e8f0;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1rem;
}
h1 {
  font-size: 2rem; font-weight: 300; letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.subtitle { color: #94a3b8; margin-bottom: 2rem; font-size: 0.9rem; }

.today-card {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 1rem; padding: 2rem; width: 100%; max-width: 480px;
  text-align: center; margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.today-card .date { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.3rem; }
.today-card .weekday { font-size: 1.1rem; color: #93c5fd; margin-bottom: 0.3rem; }
.today-card .year  { font-size: 2.5rem; font-weight: 200; color: #fbbf24; }
.today-card .season { font-size: 0.85rem; color: #94a3b8; margin-top: 0.5rem; }

.converter {
  width: 100%; max-width: 480px; background: #1e293b;
  border-radius: 1rem; padding: 1.5rem; margin-bottom: 2rem;
}
.converter h2 { font-size: 1rem; font-weight: 500; margin-bottom: 1rem; color: #94a3b8; }
.converter .row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.converter label { font-size: 0.85rem; color: #94a3b8; min-width: 50px; }
.converter input, .converter select {
  flex: 1; padding: 0.4rem 0.6rem; border: 1px solid #475569; border-radius: 0.4rem;
  background: #0f172a; color: #e2e8f0; font-size: 0.9rem;
}
.converter input:focus, .converter select:focus { outline: none; border-color: #fbbf24; }
.converter button {
  width: 100%; padding: 0.6rem; border: none; border-radius: 0.5rem;
  background: #fbbf24; color: #0f172a; font-weight: 600; cursor: pointer;
  font-size: 0.9rem;
}
.converter button:hover { background: #f59e0b; }
.result {
  margin-top: 0.75rem; padding: 0.75rem; background: #0f172a;
  border-radius: 0.5rem; text-align: center; font-size: 0.95rem;
  min-height: 2.5rem;
}

.month-view {
  width: 100%; max-width: 480px; background: #1e293b;
  border-radius: 1rem; padding: 1.5rem;
}
.month-view h2 { font-size: 1rem; font-weight: 500; margin-bottom: 0.75rem; color: #94a3b8; }
.month-nav {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.month-nav select, .month-nav input {
  flex: 1; padding: 0.4rem 0.6rem; border: 1px solid #475569; border-radius: 0.4rem;
  background: #0f172a; color: #e2e8f0; font-size: 0.9rem;
}
.month-nav select:focus, .month-nav input:focus { outline: none; border-color: #fbbf24; }
.month-nav button {
  padding: 0.4rem 0.8rem; border: none; border-radius: 0.4rem;
  background: #475569; color: #e2e8f0; cursor: pointer; font-size: 0.9rem;
}
.month-nav button:hover { background: #64748b; }

.weekday-header {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
  margin-bottom: 2px;
}
.weekday-header span {
  text-align: center; font-size: 0.75rem; color: #94a3b8;
  padding: 0.3rem 0;
}
.month-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
}
.month-grid .day {
  text-align: center; padding: 0.4rem 0; border-radius: 0.3rem;
  font-size: 0.85rem; cursor: pointer; transition: background 0.15s;
}
.month-grid .day:hover { background: #334155; }
.month-grid .day.today { background: #fbbf24; color: #0f172a; font-weight: 600; }
.month-grid .day.extra { color: #f87171; font-style: italic; }
.month-grid .day.empty { cursor: default; }

.footer { margin-top: 2rem; font-size: 0.8rem; color: #475569; }
