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

:root {
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Color Palette - Cyber Dark System */
  --bg-app: #060911;
  --bg-sidebar: #090e1a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 62, 0.85);
  --bg-input: #0c1322;
  --bg-border: rgba(255, 255, 255, 0.08);
  --bg-border-focus: rgba(0, 159, 227, 0.5);

  --color-primary: #009fe3;
  --color-primary-glow: rgba(0, 159, 227, 0.2);
  --color-primary-hover: #0088c2;
  --color-accent: #00d2ff;
  
  --color-success: #10b981;
  --color-success-glow: rgba(16, 185, 129, 0.15);
  --color-warning: #f59e0b;
  --color-warning-glow: rgba(245, 158, 11, 0.15);
  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.15);
  --color-info: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  --shadow-glow: 0 0 25px rgba(0, 159, 227, 0.25);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 159, 227, 0.4);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent);
}

/* Ambient glow accents */
.admin-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.glow-top-left {
  top: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 159, 227, 0.25), transparent 70%);
}
.glow-bottom-right {
  bottom: -150px;
  right: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
}

/* ==========================================================================
   AUTHENTICATION SCREEN
   ========================================================================== */
.auth-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #0f182d 0%, #060911 100%);
  z-index: 9999;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: authFadeIn 0.5s var(--transition-normal);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #009fe3, #00d2ff, #10b981);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo-svg {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-hint-pill {
  background: rgba(0, 159, 227, 0.08);
  border: 1px solid rgba(0, 159, 227, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-hint-pill strong {
  color: var(--color-primary);
}

/* ==========================================================================
   DASHBOARD MAIN LAYOUT
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* --- SIDEBAR --- */
.admin-sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--bg-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo {
  height: 38px;
  width: auto;
}
.sidebar-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid rgba(0, 159, 227, 0.3);
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 700;
  padding: 12px 12px 6px;
  margin-top: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
}
.sidebar-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-link.active {
  color: var(--text-main);
  background: linear-gradient(90deg, rgba(0, 159, 227, 0.15), rgba(0, 159, 227, 0.03));
  border-color: rgba(0, 159, 227, 0.3);
  font-weight: 600;
}
.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}
.sidebar-link.active svg {
  color: var(--color-primary);
}
.sidebar-link:hover svg {
  transform: scale(1.1);
}

.sidebar-link .pill-badge {
  margin-left: auto;
  background: rgba(0, 159, 227, 0.2);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}
.sidebar-link .pill-badge.alert {
  background: rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009fe3, #00d2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info {
  min-width: 0;
}
.sidebar-username {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}
.sidebar-userrole {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* --- MAIN CONTAINER --- */
.admin-main {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Top Navigation Bar */
.admin-topbar {
  height: 70px;
  background: rgba(9, 14, 26, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-title-wrap {
  display: flex;
  flex-direction: column;
}
.topbar-view-title {
  font-size: 1.18rem;
  font-weight: 800;
}
.topbar-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mobile-menu-trigger {
  display: none;
  background: transparent;
  border: 1px solid var(--bg-border);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-view-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-border);
  color: var(--text-main);
  padding: 8px 15px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.btn-view-site:hover {
  background: var(--color-primary-glow);
  border-color: rgba(0, 159, 227, 0.4);
  color: var(--color-accent);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  border-color: var(--color-danger);
}

/* --- CONTENT AREA --- */
.admin-content {
  padding: 32px;
  flex: 1;
}

.view-panel {
  display: none;
  animation: panelFade 0.3s ease;
}
.view-panel.active {
  display: block;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* View Header */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.view-header-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.view-header-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.view-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   METRIC & KPI CARDS
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 159, 227, 0.3);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kpi-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}
.kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-glow);
  color: var(--color-primary);
}
.kpi-icon-wrap.success {
  background: var(--color-success-glow);
  color: var(--color-success);
}
.kpi-icon-wrap.warning {
  background: var(--color-warning-glow);
  color: var(--color-warning);
}
.kpi-icon-wrap.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 6px;
}
.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-border);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   TABLES & LISTS
   ========================================================================== */
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
}
.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 9px 12px 9px 36px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 159, 227, 0.2);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  background: rgba(9, 14, 26, 0.5);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}
.admin-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}
.admin-table tbody tr {
  transition: background var(--transition-fast);
}
.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-new {
  background: rgba(0, 159, 227, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(0, 159, 227, 0.3);
}
.badge-contacted, .badge-reviewed {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-inprogress, .badge-shortlisted {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-closed, .badge-rejected {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Action Buttons */
.btn-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border-color: rgba(0, 159, 227, 0.4);
}
.btn-icon.danger:hover {
  background: var(--color-danger-glow);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Empty State */
.table-empty-state {
  text-align: center;
  padding: 45px 20px;
  color: var(--text-dim);
}
.table-empty-state svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #009fe3, #007bb0);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 159, 227, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00aef7, #009fe3);
  box-shadow: 0 6px 20px rgba(0, 159, 227, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--bg-border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
  outline: none;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}

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

/* Switch Toggle */
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   CARDS GRID (PRODUCTS, VACANCIES, TESTIMONIALS)
   ========================================================================== */
.manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 159, 227, 0.35);
}

.item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.item-card-title {
  font-size: 1.15rem;
  font-weight: 700;
}
.item-card-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.item-card-features {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-card-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-card-features li svg {
  color: var(--color-success);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.item-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0d1424;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 159, 227, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition-fast);
}
.btn-close-modal:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Details Modal Specifics */
.detail-row {
  margin-bottom: 14px;
}
.detail-row-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-row-value {
  font-size: 0.92rem;
  color: var(--text-main);
}
.detail-row-box {
  background: var(--bg-input);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ==========================================================================
   TOAST NOTIFICATION ENGINE
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #0f182d;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}
.toast.toast-success {
  border-left: 4px solid var(--color-success);
}
.toast.toast-error {
  border-left: 4px solid var(--color-danger);
}
.toast.toast-info {
  border-left: 4px solid var(--color-primary);
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }
  .admin-main {
    margin-left: 0;
  }
  .mobile-menu-trigger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .admin-topbar {
    padding: 0 16px;
  }
  .admin-content {
    padding: 20px 16px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .table-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-wrap {
    min-width: 100%;
  }
}
