
:root{
  --bg:#f4f7fb;
  --card:#fff;
  --accent:#2b8cf6;
  --muted:#6b7280;
  --weekend:#fdecec;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  font-family:system-ui, sans-serif;
  background:linear-gradient(180deg,var(--bg),#e9f0ff);
}

.calendar{
  width:360px;
  background:var(--card);
  border-radius:14px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.header h2{
  margin:0;
  color:var(--accent);
  font-size:18px;
}

.controls{
  display:flex;
  gap:6px;
}

button{
  border:none;
  background:#eef4ff;
  color:var(--accent);
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

button:hover{background:#dbeafe}

.weekdays, .days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  text-align:center;
}

.weekdays div{
  font-size:12px;
  color:var(--muted);
  padding:6px 0;
}

.day{
  height:44px;
  margin:4px;
  border-radius:10px;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  transition:.2s;
}

.day:hover{background:#e0edff}
.weekend{background:var(--weekend)}
.today{
  background:var(--accent);
  color:#fff;
  font-weight:700;
}
.empty{background:transparent;cursor:default}