/* ==========================================================================
   ÖZEL İLK ATILIM ÖZEL EĞİTİM VE REHABİLİTASYON MERKEZİ
   Yönetim Paneli (Admin Dashboard Styles)
   ========================================================================== */

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

:root {
  --admin-sidebar-bg: #091a3e;
  --admin-sidebar-hover: #132752;
  --admin-sidebar-active: #0284c7;
  --admin-bg: #f1f5f9;
  --admin-card: #ffffff;
  --admin-text: #1e293b;
  --admin-muted: #64748b;
  --admin-border: #e2e8f0;

  --color-primary: #0284c7;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-purple: #8b5cf6;
}

body.admin-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar-bg);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-badge {
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: #94a3b8;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar-item-left i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.sidebar-item:hover {
  color: #ffffff;
  background: var(--admin-sidebar-hover);
}

.sidebar-item.active {
  color: #ffffff;
  background: var(--admin-sidebar-active);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.sidebar-item-badge {
  background: var(--color-danger);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navbar */
.admin-navbar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-nav-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0c2556;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0c2556);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Page Content */
.admin-content {
  padding: 2rem;
  flex: 1;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 2px 8px rgba(12, 37, 86, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-info h4 {
  font-size: 0.85rem;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card-info .stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0c2556;
  line-height: 1;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.orange { background: #fef3c7; color: #d97706; }
.stat-icon.green { background: #d1fae5; color: #10b981; }
.stat-icon.purple { background: #ede9fe; color: #8b5cf6; }

/* Admin Panels / Cards */
.panel-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 4px 12px rgba(12, 37, 86, 0.03);
  margin-bottom: 2rem;
  overflow: hidden;
}

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

.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c2556;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-body {
  padding: 1.75rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  background: #f8fafc;
  padding: 0.9rem 1.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.92rem;
  color: var(--admin-text);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill.warning { background: #fef3c7; color: #b45309; }
.status-pill.success { background: #d1fae5; color: #065f46; }
.status-pill.danger { background: #fee2e2; color: #991b1b; }
.status-pill.info { background: #e0f2fe; color: #0369a1; }

/* Admin Buttons */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f0f9ff;
}

.btn-icon.delete:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
  background: #fef2f2;
}

/* Settings Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 1.75rem;
}

.tab-btn {
  padding: 0.85rem 1.5rem;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--admin-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-pane {
  display: none;
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  background: #ffffff;
  color: var(--admin-text);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 300px;
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 5px solid var(--color-success); }
.toast.error { border-left: 5px solid var(--color-danger); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Login Page Styles */
.login-page-wrap {
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #091a3e 0%, #0c2556 50%, #043872 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0284c7, #0c2556);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}
