/* ==========================================================
   Aslan Promosyon - Ultra Güvenli Admin Paneli CSS
   ========================================================== */

:root {
  --admin-primary: #00a862;
  --admin-primary-dark: #007f49;
  --admin-primary-light: #e6f6ee;
  --admin-sidebar-bg: #0f172a;
  --admin-sidebar-hover: #1e293b;
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text: #1e293b;
  --admin-muted: #64748b;
  --admin-danger: #ef4444;
  --admin-warning: #f59e0b;
  --admin-success: #10b981;
}

body.admin-body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--admin-sidebar-bg);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 4px 0 12px rgba(0,0,0,0.05);
}

.admin-sidebar-brand {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e293b;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
}

.admin-sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.admin-menu-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  padding: 12px 10px 6px 10px;
  letter-spacing: 0.5px;
}

.admin-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 3px;
}

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

.admin-menu-item.active a {
  background: var(--admin-primary);
  color: #ffffff;
}

.admin-menu-item a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #1e293b;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}

.admin-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--admin-text);
}

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

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

/* Metric / KPI Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.metric-card-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--admin-text);
  line-height: 1.1;
}

.metric-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-muted);
  margin-top: 4px;
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-green { background: #dcfce7; color: #15803d; }
.metric-blue { background: #e0f2fe; color: #0369a1; }
.metric-amber { background: #fef3c7; color: #b45309; }
.metric-purple { background: #f3e8ff; color: #7e22ce; }

/* Data Tables */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--admin-text);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #b45309; }
.status-reviewed { background: #e0f2fe; color: #0369a1; }
.status-quoted { background: #dcfce7; color: #15803d; }
.status-completed { background: #ecfdf5; color: #047857; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

/* Buttons */
.btn-admin-primary {
  background: var(--admin-primary);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-admin-primary:hover {
  background: var(--admin-primary-dark);
}

.btn-admin-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-edit { background: #f1f5f9; color: #334155; }
.btn-edit:hover { background: #e2e8f0; }

.btn-delete { background: #fee2e2; color: #dc2626; border: none; cursor: pointer; }
.btn-delete:hover { background: #fecaca; }

/* Form Elements */
.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text);
  margin-bottom: 6px;
}

.admin-form-input, .admin-form-select, .admin-form-textarea {
  width: 100%;
  border: 1.5px solid var(--admin-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--admin-text);
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
}

.admin-form-input:focus, .admin-form-select:focus, .admin-form-textarea:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 98, 0.15);
}

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

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

/* Dynamic Variant Items (Colors, Specs, FAQs) */
.dynamic-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.dynamic-row-remove {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
