/* ==========================================================================
   kongrestandantalya.com - Yönetim Paneli (Admin Dashboard) Stilleri
   ========================================================================== */

:root {
  --bg-deep: #090d16;
  --bg-navy: #0f1624;
  --bg-card: #131c2e;
  --bg-input: #0a0f1a;

  --gold-primary: #d4af37;
  --gold-light: #f3d266;
  --gold-bronze: #b8860b;
  --gold-border: rgba(212, 175, 55, 0.32);

  --text-white: #f8fafc;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  min-height: 100vh;
}

/* --- GİRİŞ EKRANI (LOGIN OVERLAY) --- */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #090d16 0%, #0f1624 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.login-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-bronze));
  color: #090d16;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- DASHBOARD ANA DÜZEN --- */
.admin-layout {
  display: grid;
  grid-template-columns: 275px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-navy);
  border-right: 1px solid var(--border-subtle);
  padding: 1.65rem 1.15rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.75rem;
  flex: 1;
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: transparent;
  color: var(--text-light);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
}

.nav-tab-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
}

.nav-tab.active {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  border-color: var(--gold-border);
}

.badge-count {
  background: var(--gold-primary);
  color: #090d16;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.15rem 0.52rem;
  border-radius: 999px;
}

.sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* --- İÇERİK ALANI --- */
.admin-main {
  padding: 2rem 2.5rem;
  max-width: 1400px;
  width: 100%;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-topbar h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* --- İSTATİSTİK KARTLARI --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.35rem;
}

.kpi-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* --- PANEL KUTULARI & FORMLAR --- */
.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.65rem;
  margin-bottom: 1.75rem;
}

.panel-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-box-header h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-light);
}

.input {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.92rem;
}

.input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #090d16;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-sm {
  padding: 0.42rem 0.78rem;
  font-size: 0.78rem;
}

/* --- TABLOLAR & LİSTELER --- */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  padding: 0.9rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
}

.status-pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-new {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-sent {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-approved {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* --- ADMİN KART IZGARALARI --- */
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.admin-item-card {
  background: var(--bg-navy);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-item-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.admin-item-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.admin-item-actions {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

/* --- TOPLU FOTOĞRAF YÜKLEME ALANI (DROPZONE) --- */
.dropzone {
  border: 2px dashed var(--gold-border);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  background: rgba(212, 175, 55, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover {
  background: rgba(212, 175, 55, 0.09);
  border-color: var(--gold-primary);
}

.preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.preview-thumb {
  width: 92px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold-border);
}

/* --- BİLDİRİM TOAST --- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  color: var(--text-white);
  padding: 0.95rem 1.35rem;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.toast.show {
  display: block;
}

@media (max-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
  }
  .kpi-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}
