/* ====================================================================
   SİGORTA ACENTESİ - YÖNETİCİ (ADMIN) PANELİ STİLLERİ
   ==================================================================== */

:root {
  --admin-bg: #090d16;
  --admin-card: rgba(17, 24, 39, 0.75);
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-primary: #3b82f6;
  --admin-emerald: #10b981;
  --admin-purple: #8b5cf6;
  --admin-amber: #f59e0b;
  --admin-rose: #f43f5e;
}

body.admin-body {
  background: radial-gradient(circle at 10% 10%, #0e172a 0%, #090d16 80%, #04070e 100%);
  color: #f3f4f6;
  min-height: 100vh;
}

/* Üst Yönetici Başlığı */
.admin-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--admin-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* İstatistik Özet Kartları */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--admin-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.stat-blue .stat-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.stat-green .stat-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.stat-purple .stat-icon { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.stat-amber .stat-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.stat-details h4 {
  font-size: 0.82rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Tab Menü */
.tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 12px;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #9ca3af;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.tab-content {
  display: none;
}

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

/* Filtreleme Çubuğu */
.filter-bar {
  background: var(--admin-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-select, .filter-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 14px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  min-width: 150px;
  transition: all 0.2s;
}

.filter-select option {
  background: #111827;
  color: #fff;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search-input {
  min-width: 220px;
}

/* Tablolar */
.table-wrapper {
  background: var(--admin-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--admin-border);
}

.data-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

.file-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #fff;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-banned {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-outline-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-outline-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.btn-outline-warning:hover {
  background: #f59e0b;
  color: #fff;
}

.btn-outline-success {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-outline-success:hover {
  background: #10b981;
  color: #fff;
}

/* IP Ekleme Modalı */
.modal-admin-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
}

.modal-header-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: #fff;
}
