/* ==========================================================================
   ISPARTA AIRBAG - YÖNETİM PANELİ (ADMIN) ÖZEL STİLLERİ
   Otomotiv Koyu Tema + Airbag İkaz Sarısı Vurgusu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --admin-bg: #070B12;
  --admin-sidebar: #0C121E;
  --admin-card: #121A2B;
  --admin-card-hover: #182238;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-border-amber: rgba(255, 179, 0, 0.3);
  --admin-yellow: #FFB300;
  --admin-amber: #FF9800;
  --admin-text: #F8FAFC;
  --admin-text-muted: #94A3B8;
  --admin-danger: #EF4444;
  --admin-success: #10B981;
  --admin-glow: 0 0 20px rgba(255, 179, 0, 0.25);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Giriş Ekranı (Login Screen) */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at center, rgba(255, 179, 0, 0.08) 0%, transparent 60%), #070B12;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border-amber);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--admin-glow);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: center;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
  text-align: center;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  text-align: center;
  margin-bottom: 25px;
}

/* Panel Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-menu {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-text-muted);
  padding: 8px 12px 4px;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--admin-text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255, 179, 0, 0.12);
  color: var(--admin-yellow);
  font-weight: 600;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ana İçerik */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 70px;
  background: var(--admin-sidebar);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.admin-content {
  padding: 30px;
  flex: 1;
}

/* İstatistik Kartları */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.2s;
}

.stat-card:hover {
  border-color: var(--admin-border-amber);
  transform: translateY(-2px);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--admin-yellow);
  line-height: 1.1;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

/* Tablolar & Kartlar */
.panel-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 30px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFF;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.admin-table th {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--admin-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Formlar & Girdiler */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: #090E17;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: #FFF;
  font-family: inherit;
  font-size: 0.92rem;
  transition: 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--admin-yellow);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Butonlar */
.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.btn-admin-primary {
  background: var(--admin-yellow);
  color: #000;
}

.btn-admin-primary:hover {
  background: #FFC107;
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.4);
}

.btn-admin-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--admin-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-admin-danger:hover {
  background: var(--admin-danger);
  color: #FFF;
}

.btn-admin-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFF;
  border: 1px solid var(--admin-border);
}

.btn-admin-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* Bildirimler (Alerts) */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--admin-success);
  color: #34D399;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--admin-danger);
  color: #F87171;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
