:root {
  --navy: #0F172A;
  --blue: #1D4ED8;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --gray: #F3F4F6;
  --panel: #111827;
  --border: #E5E7EB;
  --text: #1F2937;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--gray);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
}

.navbar {
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(29, 78, 216, .78)),
    url('/assets/images/placeholder.webp') center/cover;
  color: var(--white);
  padding: 72px 0 56px;
}

.section { padding: 48px 0; }
.section-title { color: var(--navy); font-weight: 800; letter-spacing: 0; }
.muted { color: #6B7280; }
.text-clamp-2, .text-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.text-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.break-word { overflow-wrap: anywhere; word-break: break-word; }
.meta-line { min-height: 1.5rem; }

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .1);
}

.badge-gold { background: rgba(212, 175, 55, .16); color: #8A6B00; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); }

.urgent-banner {
  border-left: 5px solid var(--gold);
  background: #FFF8E1;
}

.facility-cover, .content-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.content-cover.mb-3, .content-cover.mb-4 { border-radius: 8px; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.site-footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 36px 0;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
  background: var(--gray);
}
.admin-sidebar {
  background: var(--panel);
  color: var(--white);
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar a {
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(29, 78, 216, .25);
  color: var(--white);
}
.admin-main { min-width: 0; }
.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.admin-content { padding: 24px; }
.stat-card {
  border-left: 4px solid var(--blue);
  min-height: 120px;
}
.table thead th { color: var(--navy); white-space: nowrap; }

.status-beklemede { background: #FACC15 !important; border-color: #FACC15 !important; color: #111827 !important; }
.status-on_onay { background: #FB923C !important; border-color: #FB923C !important; color: #111827 !important; }
.status-onaylandi { background: #DC2626 !important; border-color: #DC2626 !important; color: #fff !important; }
.status-tamamlandi { background: #2563EB !important; border-color: #2563EB !important; color: #fff !important; }
.status-iptal_edildi, .status-reddedildi { background: #6B7280 !important; border-color: #6B7280 !important; color: #fff !important; }
.status-bakimda, .status-kapali { background: #111827 !important; border-color: #111827 !important; color: #fff !important; }

@media (max-width: 991px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
}
