/* Modern, sade, ortalanmış */
:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --border:#22304a;
  --accent:#38bdf8;
  --danger:#ef4444;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background: radial-gradient(1200px 700px at 20% 0%, #18264a 0%, var(--bg) 55%);
  color:var(--text);
  min-height:100vh;
}
.topbar{
  position:sticky; top:0;
  background: rgba(11,18,32,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(34,48,74,.8);
  z-index:10;
}
.topbar__inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand__logo{height:38px;width:auto;filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));}
.brand__title{font-weight:800; letter-spacing:.2px}
.nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.nav__link{
  color:var(--text);
  text-decoration:none;
  padding:8px 10px;
  border:1px solid rgba(34,48,74,.9);
  border-radius:10px;
  background: rgba(15,23,42,.55);
}
.nav__link:hover{border-color:rgba(56,189,248,.55)}
.searchbar{
  display:flex; gap:8px; align-items:center;
  padding:8px 10px;
  border:1px solid rgba(34,48,74,.9);
  border-radius:12px;
  background: rgba(11,18,32,.35);
}
.searchbar input{
  border:0; outline:none; background:transparent; color:var(--text);
  width: 240px; max-width: 40vw;
}
.searchbar button{
  border:1px solid rgba(34,48,74,.9);
  background: rgba(15,23,42,.55);
  color: var(--text);
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
}
.searchbar button:hover{border-color:rgba(56,189,248,.55)}
.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 100px;
}
.card{
  background: rgba(15,23,42,.75);
  border:1px solid rgba(34,48,74,.9);
  border-radius:16px;
  box-shadow: var(--shadow);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 10px;
  flex-wrap:wrap;
}
.header-row h2{margin:0;font-size:18px}
.header-row .sub{color:var(--muted);font-size:13px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(34,48,74,.9);
  background: rgba(11,18,32,.55);
  color:var(--text);
  cursor:pointer;
  text-decoration:none;
  font-weight:650;
}
.btn:hover{border-color:rgba(56,189,248,.55)}
.btn--primary{background: linear-gradient(135deg, rgba(56,189,248,.35), rgba(34,197,94,.22)); border-color:rgba(56,189,248,.35)}
.btn--danger{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35)}
.grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:10px;
  padding: 0 14px 14px;
}
.dayname{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:0 2px;
}
.day{
  min-height:120px;
  border:1px solid rgba(34,48,74,.9);
  border-radius:14px;
  padding:10px;
  background: rgba(11,18,32,.35);
  overflow:hidden;
}
.day--muted{opacity:.55}
.day__num{
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.pill{
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(34,48,74,.9);
  color:var(--muted);
}
.ev{
  display:block;
  padding:8px 10px;
  border-radius:12px;
  margin-top:8px;
  text-decoration:none;
  color:var(--text);
  border:1px solid rgba(34,48,74,.9);
  background: rgba(15,23,42,.65);
}
.ev:hover{border-color: rgba(56,189,248,.55)}
.ev__title{font-weight:750; font-size:13px; line-height:1.2}
.ev__meta{margin-top:4px; font-size:12px; color: var(--muted); display:flex; gap:8px; flex-wrap:wrap}
.ev__dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:rgba(56,189,248,.9);}
.form{padding:14px;}
.row{display:flex;gap:10px;flex-wrap:wrap}
.field{flex:1;min-width:220px}
.label{font-size:12px;color:var(--muted);margin:0 0 6px 4px}
.input, .textarea, select.input{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(34,48,74,.9);
  background: rgba(11,18,32,.55);
  color:var(--text);
  outline:none;
}
.textarea{min-height:130px; resize:vertical}
.help{color:var(--muted); font-size:12px; margin-top:6px}
.center{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: calc(100vh - 72px - 60px);
  padding:24px 16px;
}
.modal{
  width: min(520px, 100%);
  border-radius:18px;
  padding:18px;
}
.modal h2{margin:0 0 10px 0}
.alert{
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: #fecaca;
}
.footer{
  position:fixed;
  left:0; right:0; bottom:0;
  padding:14px 16px;
  text-align:center;
  color:rgba(148,163,184,.9);
  background: rgba(11,18,32,.85);
  border-top:1px solid rgba(34,48,74,.8);
  backdrop-filter: blur(10px);
  line-height:1.35;
}
.kv{padding: 0 14px 14px;}
.kv .line{color:var(--muted); font-size:13px; margin-top:6px}
.attach{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.thumb{
  display:block;
  width:160px;
  border-radius:14px;
  border:1px solid rgba(34,48,74,.9);
  overflow:hidden;
  background: rgba(11,18,32,.35);
}
.thumb img{display:block;width:100%;height:110px;object-fit:cover}
.thumb div{padding:8px 10px;font-size:12px;color:var(--muted)}
.list{padding: 0 14px 14px;}
