/* ============================================================
   organisation/assets/css/organisation.css
   Organisation Portal Styles - Matching ASDM Admin Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- CSS Variables (same as admin) ---- */
:root {
  --primary: #0B3D91;
  --primary-light: #1a56db;
  --primary-dark: #07287a;
  --primary-gradient: linear-gradient(135deg, #0B3D91 0%, #1a56db 100%);

  --zim-green: #006400;
  --zim-yellow: #FFD700;
  --zim-red: #D21034;
  --zim-black: #000000;

  --positive: #D21034;
  --positive-bg: #fff0f2;
  --positive-border: #fca5a5;

  --negative: #006400;
  --negative-bg: #f0fdf4;
  --negative-border: #86efac;

  --invalid: #e3a008;
  --invalid-bg: #fffbeb;
  --invalid-border: #fcd34d;

  --white: #ffffff;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --sidebar-bg: #0B3D91;
  --sidebar-text: rgba(255,255,255,0.85);
  --sidebar-active: rgba(255,255,255,0.15);
  --sidebar-hover: rgba(255,255,255,0.08);
  --sidebar-border: rgba(255,255,255,0.1);
  --sidebar-width: 260px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);

  --transition: all 0.2s ease;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-wrap {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
  transition: var(--transition);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: var(--sidebar-border);
}

.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

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

.sidebar-logo-mark img {
  width: 80px;
  object-fit: contain;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-text .brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.sidebar-logo-text .tagline {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.2;
  margin-top: 2px;
}

/* Zimbabwe flag strip */
.sidebar-coa-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 1.5rem;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-coa-strip span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
}
.zim-strip-green { background: var(--zim-green); }
.zim-strip-yellow { background: var(--zim-yellow); }
.zim-strip-red { background: var(--zim-red); }
.zim-strip-black { background: rgba(255,255,255,0.3); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  padding: 0.75rem 0.75rem 0.375rem;
  font-family: var(--font-display);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-md);
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}

.nav-item i {
  width: 18px;
  font-size: 0.875rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--zim-red);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--sidebar-hover);
  margin-bottom: 0.5rem;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info .name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.sidebar-user-info .role {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}

.sidebar-logout:hover {
  background: rgba(210, 16, 52, 0.2);
  color: #fca5a5;
}

/* ---- Main content ---- */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1px;
}

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

.topbar-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.content {
  flex: 1;
  padding: 2rem;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Zimbabwe header bar --- */
.zim-header {
  display: flex;
  align-items: center;
  gap: 0;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.zim-header span {
  flex: 1;
  height: 100%;
}
.zh-green { background: var(--zim-green); }
.zh-yellow { background: var(--zim-yellow); }
.zh-red { background: var(--zim-red); }
.zh-black { background: var(--zim-black); }

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent, var(--primary));
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Stat color themes */
.stat-card.blue   { --accent: #1a56db; }
.stat-card.blue .stat-icon { background: #eff6ff; color: #1a56db; }
.stat-card.green  { --accent: #006400; }
.stat-card.green .stat-icon { background: #f0fdf4; color: #006400; }
.stat-card.red    { --accent: #D21034; }
.stat-card.red .stat-icon { background: #fff0f2; color: #D21034; }
.stat-card.amber  { --accent: #d97706; }
.stat-card.amber .stat-icon { background: #fffbeb; color: #d97706; }

/* --- Card --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

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

.card-header h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-header i {
  color: var(--primary);
  font-size: 1rem;
}

.card-body {
  padding: 1.5rem;
}

/* --- Table --- */
.table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.data-table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

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

.td-name { font-weight: 600; color: var(--text-primary); }
.td-ref { font-size: 0.75rem; font-family: monospace; color: var(--text-muted); }

/* --- Badges (matching admin) --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-positive {
  background: var(--positive-bg);
  color: var(--positive);
  border: 1px solid var(--positive-border);
}

.badge-negative {
  background: var(--negative-bg);
  color: var(--negative);
  border: 1px solid var(--negative-border);
}

.badge-invalid {
  background: var(--invalid-bg);
  color: var(--invalid);
  border: 1px solid var(--invalid-border);
}

.badge-viewed {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.badge-cert {
  background: #eff6ff;
  color: #1a56db;
  border: 1px solid #bfdbfe;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(11,61,145,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(11,61,145,0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); color: var(--text-primary); }

.btn-success {
  background: var(--zim-green);
  color: #fff;
}
.btn-success:hover { background: #005200; color: #fff; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }

/* --- Action buttons --- */
.action-row {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
}
.action-btn:hover { opacity: 0.82; transform: translateY(-1px); }

.action-btn.ab-view    { background: #eff6ff; color: #1a56db; }
.action-btn.ab-pdf     { background: #fdf4ff; color: #9333ea; }
.action-btn.ab-cert    { background: #fffbeb; color: #d97706; }
.action-btn.ab-download { background: #f0fdf4; color: #16a34a; }

/* --- Filters bar --- */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-select {
  padding: 0.45rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}

.search-box input {
  width: 100%;
  padding: 0.45rem 0.875rem 0.45rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--surface);
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.pagination a,
.pagination span.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.pagination a:hover { background: var(--bg); color: var(--text-primary); }
.pagination span.pg-num.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pagination .pg-info {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--border-light);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* --- Drug results grid --- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.625rem;
}

.result-panel {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.result-panel-name { font-weight: 600; flex: 1; min-width: 0; word-break: break-word; }
.result-panel-status { font-size: 0.7rem; font-weight: 700; white-space: nowrap; }

.result-panel.pos { background: var(--positive-bg); border-color: var(--positive-border); }
.result-panel.pos .result-panel-name { color: var(--positive); }
.result-panel.pos .result-panel-status { color: var(--positive); }

.result-panel.neg { background: var(--negative-bg); border-color: var(--negative-border); }
.result-panel.neg .result-panel-name { color: var(--negative); }
.result-panel.neg .result-panel-status { color: var(--negative); }

.result-panel.inv { background: var(--invalid-bg); border-color: var(--invalid-border); }

/* --- Certificate card (matches admin) --- */
.cert-card {
  background: linear-gradient(135deg, #0B3D91 0%, #1a56db 80%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.cert-code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.cert-holder { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.cert-cert-name { font-size: 0.8125rem; opacity: 0.75; margin-bottom: 1rem; }

.cert-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cert-meta-item label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  display: block;
  margin-bottom: 2px;
}

.cert-meta-item span {
  font-weight: 600;
  font-size: 0.875rem;
}

.cert-validity-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.cert-validity-fill {
  height: 100%;
  background: var(--zim-yellow);
  border-radius: 2px;
}

/* --- Page header --- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.page-header-left h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header-left h1 i { color: var(--primary); font-size: 1.25rem; }
.page-header-left p { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; margin-bottom: 1.5rem; }

/* --- Alert --- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}

.alert-success { background: var(--negative-bg); border-color: var(--negative); color: #166534; }
.alert-error { background: var(--positive-bg); border-color: var(--positive); color: #991b1b; }
.alert-warning { background: var(--invalid-bg); border-color: var(--invalid); color: #92400e; }
.alert-info { background: #eff6ff; border-color: var(--primary-light); color: #1e40af; }

/* --- Profile Grid --- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(11,61,145,0.1);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--border-light);
  border-radius: var(--radius-md);
}

.info-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

/* --- Login page (matching admin) --- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0B3D91 0%, #07287a 50%, #0B3D91 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-box {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.login-box-top {
  background: var(--primary-gradient);
  padding: 2rem;
  text-align: center;
}

.login-coa {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1rem;
  background: white;
  border-radius: 50%;
  padding: 0.5rem;
}

.login-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.login-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.login-zim-strip {
  display: flex;
  height: 5px;
}
.login-zim-strip span { flex: 1; height: 100%; }

.login-form-area {
  padding: 2rem;
}

.login-form-area h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.input-icon-wrap .form-control { padding-left: 2.375rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .content { padding: 1.25rem; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .filter-select { width: 100%; }
  .action-btn span { display: none; }
}