/* solitex-eticaret/public/css/admin.css */
/* SOLITEX WEAR - Lüks E-Ticaret Yönetim Paneli Stilleri */

:root {
  --admin-bg: #e2e5ea;
  --admin-card: #eceff3;
  --admin-border: #c5cdd8;
  --admin-primary: #1d4ed8;
  --admin-primary-hover: #1e40af;
  --admin-accent: #1d4ed8;
  --admin-text-main: #1f2937;
  --admin-text-muted: #4b5563;
  --admin-success: #047857;
  --admin-warning: #b45309;
  --admin-danger: #b91c1c;
}

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

body {
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: flex;
}

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

/* SIDEBAR */
.admin-sidebar {
  width: 280px;
  background: #162a45;
  border-right: 1px solid #243b5e;
  color: #111827;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

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

.brand-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--admin-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.08em;
  padding: 0.75rem 0.75rem 0.4rem 0.75rem;
}

.nav-item {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--admin-text-muted);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 3px;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.nav-item.active {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #1d4ed8;
  font-weight: 700;
}

.nav-counter {
  margin-left: auto;
  background: var(--admin-primary);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 800;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--admin-border);
  background: rgba(0, 0, 0, 0.2);
}

.quick-link {
  display: block;
  font-size: 0.75rem;
  color: #4b5563;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s;
}

.quick-link:hover {
  color: var(--admin-accent);
}

/* MAIN */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}

/* TOPBAR */
.admin-topbar {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--admin-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.topbar-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.api-status-pill {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* TAB PANES */
.tab-pane {
  display: none;
  padding: 2rem;
}

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

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.2s;
}

.kpi-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 0.75rem;
  color: #4b5563;
}

/* CONTENT PANELS */
.content-panel {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  overflow: hidden;
}

.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.dashboard-row {
  display: flex;
  gap: 1.5rem;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  background: #1e293b;
  color: var(--admin-text-muted);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  border-bottom: 1px solid #334155;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

/* BUTTONS */
.btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.btn-primary {
  background: var(--admin-primary);
  border-color: var(--admin-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--admin-primary-hover);
}

.btn-outline {
  background: transparent;
  border-color: #334155;
  color: #1f2937;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--admin-accent);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #047857; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #92400e; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #b91c1c; }
.badge-info { background: rgba(56, 189, 248, 0.2); color: #1d4ed8; }

/* FORMS */
.form-control {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  width: 100%;
}

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

/* MODAL */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.admin-modal-overlay.open {
  display: flex;
}
.admin-modal-box {
  background: #252d3b;
  border: 1px solid #3d4a60;
  color: #111827;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 1.75rem;
}
/* Cielo Göz Dinlendiren Mat Taş Grisi E-Ticaret Admin Paleti */
.admin-topbar { background: #e8ebef !important; border-bottom: 1px solid #c5cdd8 !important; color: #111827 !important; }
.admin-topbar h1, .admin-topbar h2, .admin-main h1, .admin-main h2, .admin-main h3, .kpi-value, .stat-value { color: #111827 !important; }
.admin-card, .kpi-box, .stat-card { background: #eceff3 !important; border: 1px solid #c5cdd8 !important; color: #1f2937 !important; box-shadow: 0 1px 3px rgba(15,23,42,0.05) !important; }
.admin-table th { background: #dde2ea !important; color: #374151 !important; border-bottom-color: #c5cdd8 !important; }
.admin-table td { color: #1f2937 !important; border-bottom-color: #d4dce6 !important; }
.admin-main input, .admin-main select, .admin-main textarea, .admin-modal-box input, .admin-modal-box select {
  background: #f4f6f8 !important; border: 1px solid #b8c2d0 !important; color: #111827 !important;
}
.admin-modal-box { background: #eceff3 !important; border: 1px solid #b8c2d0 !important; color: #1f2937 !important; }
.admin-sidebar { background: #d5dae2 !important; border-right: 1px solid #c1c9d4 !important; color: #1f2937 !important; }
.admin-sidebar .brand-title { color: #0f172a !important; }
.admin-sidebar .brand-subtitle, .admin-sidebar .nav-section-title { color: #475569 !important; }
.admin-sidebar .nav-item { color: #1e293b !important; }
.admin-sidebar .nav-item:hover { background: rgba(29,78,216,0.08) !important; color: #0f172a !important; }
.admin-sidebar .nav-item.active { background: #dbeafe !important; color: #1d4ed8 !important; border-left: 3px solid #1d4ed8; font-weight: 700; }
.admin-main [style*="color:#fff"]:not(.btn):not(.badge):not([style*="background:#"]),
.admin-main [style*="color: #fff"]:not(.btn):not(.badge):not([style*="background:#"]),
.admin-main [style*="color:#111827"]:not(.btn):not(.badge),
.admin-main [style*="color:#111827"]:not(.btn):not(.badge),
.admin-main [style*="color:#1f2937"]:not(.btn):not(.badge),
.admin-main [style*="color:#374151"]:not(.btn):not(.badge),
.admin-modal-box [style*="color:#fff"]:not(.btn):not(.badge),
.admin-modal-box [style*="color:#111827"]:not(.btn):not(.badge),
.admin-modal-box [style*="color:#1f2937"]:not(.btn):not(.badge) { color: #111827 !important; }
.admin-main [style*="color:#1d4ed8"], .admin-modal-box [style*="color:#1d4ed8"] { color: #1d4ed8 !important; }
.admin-main [style*="color:#92400e"]:not(.btn):not(.badge), .admin-modal-box [style*="color:#92400e"]:not(.btn):not(.badge) { color: #92400e !important; }
.admin-main [style*="color:#4b5563"], .admin-modal-box [style*="color:#4b5563"] { color: #4b5563 !important; }
.admin-main [style*="background:#0f172a"], .admin-main [style*="background:#1e293b"],
.admin-modal-box [style*="background:#0f172a"], .admin-modal-box [style*="background:#1e293b"] {
  background: #dfe3ea !important; color: #111827 !important;
}
.admin-modal-overlay { background: rgba(15, 23, 42, 0.55) !important; }

/* Table Action Buttons & Links - High-contrast solid readable */
.admin-table .btn,
.admin-table a.btn,
.admin-table button.btn,
.btn-outline {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.admin-table .btn:hover,
.admin-table a.btn:hover,
.admin-table button.btn:hover,
.btn-outline:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Badges - high-contrast solid pastel with dark text */
.badge-success { background: #dcfce7 !important; color: #14532d !important; border: 1px solid #86efac !important; font-weight: 800 !important; }
.badge-warning { background: #fef3c7 !important; color: #78350f !important; border: 1px solid #fde68a !important; font-weight: 800 !important; }
.badge-danger { background: #fee2e2 !important; color: #7f1d1d !important; border: 1px solid #fca5a5 !important; font-weight: 800 !important; }
.badge-info { background: #dbeafe !important; color: #1e40af !important; border: 1px solid #93c5fd !important; font-weight: 800 !important; }

/* Topbar Status Pill & Sidebar Links */
.api-status-pill {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}
.api-status-pill strong {
  color: #047857 !important;
  font-weight: 800 !important;
}
.quick-link {
  color: #1e293b !important;
  font-weight: 600 !important;
}
.quick-link:hover {
  color: #1d4ed8 !important;
}
.panel-title, .admin-card-title, .card-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

#b2c-sidebar-username {
  color: #0f172a !important;
  font-weight: 800 !important;
}
