/* ==========================================================================
   PUVIMA Consultancy — Executive Administration Portal Stylesheet
   Modern, High-Contrast Corporate SaaS Aesthetic (Light Theme)
   Clean, Simple, Professional & Intuitive Workflow
   ========================================================================== */

:root {
  --admin-bg: #F8FAFC;
  --admin-surface: #FFFFFF;
  --admin-surface-muted: #F1F5F9;
  --admin-surface-hover: #F8FAFC;
  --admin-border: #E2E8F0;
  --admin-border-subtle: #F1F5F9;
  --admin-border-focus: #0072CE;
  
  --primary: #0072CE;
  --primary-hover: #005FA8;
  --primary-dark: #083670;
  --primary-gradient: linear-gradient(135deg, #0072CE 0%, #083670 100%);
  --primary-glow: rgba(0, 114, 206, 0.18);
  
  --accent-violet: #6366F1;
  --accent-teal: #0284C7;
  --accent-emerald: #059669;
  --accent-amber: #D97706;
  --accent-rose: #DC2626;
  
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-elevated: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--admin-bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--admin-bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   1. LOGIN SCREEN (CLEAN, PROFESSIONAL CARD)
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 100%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.login-brand {
  text-align: center;
  margin-bottom: 26px;
}

.login-brand-logo {
  height: 42px;
  margin-bottom: 14px;
  display: inline-block;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.demo-chip {
  margin: 18px 0 22px 0;
  padding: 12px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.demo-chip:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
  transform: translateY(-1px);
}

.demo-chip-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-chip-meta {
  font-family: var(--font-mono);
  color: #1E3A8A;
  font-size: 0.78rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #FFFFFF;
}

.form-control::placeholder {
  color: #94A3B8;
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 12px var(--primary-glow);
  transition: var(--transition);
  margin-top: 24px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #005FA8 0%, #062B59 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 114, 206, 0.3);
}

.login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.login-error-alert {
  padding: 12px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  color: #991B1B;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: none;
}

/* ==========================================================================
   2. ADMIN SHELL & TOP NAVIGATION
   ========================================================================== */
.admin-shell {
  display: none; /* Revealed upon authentication */
  min-height: 100vh;
  flex-direction: column;
  background: var(--admin-bg);
}

.admin-header {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  height: 30px;
  width: auto;
  display: block;
}

.header-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
}

.status-dot.degraded {
  background: var(--accent-amber);
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.4);
}

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

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-main);
  background: #F8FAFC;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Tab Navigation Bar */
.admin-tab-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast, 150ms);
}

.tab-btn svg, .tab-btn span, .tab-btn .tab-pill {
  pointer-events: none;
}

.tab-btn:hover {
  color: var(--text-main);
  background: #F8FAFC;
}

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

.tab-btn svg {
  color: currentColor;
  flex-shrink: 0;
}

.tab-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: #E2E8F0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}

.tab-btn.active .tab-pill {
  background: #EFF6FF;
  color: var(--primary);
  border: 1px solid #BFDBFE;
}

/* ==========================================================================
   3. MAIN CONTENT BODY & VIEWS
   ========================================================================== */
.admin-content {
  flex: 1;
  padding: 32px 28px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.view-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.view-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ==========================================================================
   4. METRIC KPI CARDS (CLEAN & ACTIONABLE)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: #CBD5E1;
}

.kpi-card.action-priority {
  border-left: 4px solid var(--primary);
}

.kpi-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 12px;
}

.kpi-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--admin-border-subtle);
}

.kpi-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kpi-action-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.15s;
}

.kpi-action-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.badge-info {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-warning {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-success {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* ==========================================================================
   5. FILTER BARS & SEARCH
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

.filter-pill-btn {
  padding: 7px 14px;
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-pill, 999px);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--text-main);
}

.filter-pill-btn.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
  flex-grow: 1;
  max-width: 380px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap .form-control {
  padding-left: 36px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.88rem;
}

/* ==========================================================================
   6. DATA TABLES (HIGH CONTRAST, MODERN & RESPONSIVE)
   ========================================================================== */
.data-table-container {
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  overflow-x: auto;
}

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

.data-table th {
  background: #F8FAFC;
  padding: 13px 18px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.data-table td {
  padding: 15px 18px;
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--admin-border-subtle);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #F8FAFC;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-new,
.status-received {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.status-in_review,
.status-pending_review,
.status-pending,
.status-under_evaluation,
.status-under_review,
.status-interview,
.status-shortlisted {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.status-responded,
.status-confirmed,
.status-completed,
.status-approved,
.status-published,
.status-selected {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.status-archived,
.status-rejected,
.status-cancelled,
.status-closed,
.status-draft {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

/* Action Button Group */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-icon.danger:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: var(--accent-rose);
}

.empty-table-state {
  text-align: center;
  padding: 56px 20px !important;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   7. STANDARD BUTTONS & CONTROLS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #005FA8 0%, #062B59 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-ghost:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--text-main);
}

.btn-sm-danger {
  padding: 6px 12px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm-danger:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

/* ==========================================================================
   8. SETTINGS PANELS (INTUITIVE & PROFESSIONAL)
   ========================================================================== */
.settings-panel {
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.settings-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-section-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Toggle Switch */
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   9. MODALS & DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: var(--shadow-modal);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--admin-border-subtle);
  padding-bottom: 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: #F1F5F9;
}

.modal-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.modal-meta-item {
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.modal-meta-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.modal-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.modal-message-box {
  background: #F8FAFC;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin-bottom: 20px;
}

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

.toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideUp 0.25s ease-out;
}

.toast.success {
  background: #064E3B;
  border: 1px solid #059669;
}

.toast.error {
  background: #7F1D1D;
  border: 1px solid #DC2626;
}

.toast.info {
  background: #1E3A8A;
  border: 1px solid #2563EB;
}

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

/* ==========================================================================
   11. RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 900px) {
  .admin-header {
    padding: 0 16px;
  }
  
  .admin-tab-bar {
    padding: 0 16px;
  }
  
  .admin-content {
    padding: 20px 16px;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-badge,
  .system-status-indicator,
  #adminEmailDisplay {
    display: none;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input-wrap {
    max-width: 100%;
  }
}


/* ==========================================================================
   REVIEW TABLE SHOWCASE ACTIONS (MATCHED TO UI DESIGN SYSTEM)
   ========================================================================== */
.btn-table-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--primary-glow);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-table-publish:hover {
  background: linear-gradient(135deg, #005FA8 0%, #062B59 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 114, 206, 0.32);
}

.btn-table-publish:active {
  transform: translateY(0);
}

.btn-table-publish:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-table-takedown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-table-takedown:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-table-takedown:active {
  transform: translateY(0);
}

.btn-table-takedown:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin 0.8s linear infinite;
}
