/*
 * UK-GIS Portal — Master Stylesheet
 * File: public/admin/dash/css/uk-gis.css
 *
 * Covers:
 *   1. CSS Variables & Reset
 *   2. Auth / Login Layout
 *   3. Admin Layout (wrapper, sidebar, topbar, content, footer)
 *   4. Reusable Components (buttons, alerts, forms, tables, cards, badges)
 *   5. Utility classes
 *   6. Responsive overrides
 */

/* =====================================================================
   1. VARIABLES & RESET
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Noto+Sans:wght@300;400;500&display=fallback');

:root {
  /* Brand palette */
  --uk-navy:        #1a3a5c;
  --uk-navy-dark:   #142d48;
  --uk-navy-light:  #2a4d70;
  --uk-gold:        #f0a500;
  --uk-gold-light:  #ffc740;

  /* Neutrals */
  --bg-page:        #eceae4;
  --bg-surface:     #f5f4f0;
  --bg-white:       #ffffff;
  --border-soft:    #ddd8ce;
  --border-light:   #e8e5de;

  /* Text */
  --text-primary:   #1a2d40;
  --text-secondary: #555;
  --text-muted:     #999;
  --text-hint:      #bbb;

  /* Semantic */
  --color-success-bg:  #eaf3de;
  --color-success-txt: #3B6D11;
  --color-warning-bg:  #FAEEDA;
  --color-warning-txt: #854F0B;
  --color-danger-bg:   #FCEBEB;
  --color-danger-txt:  #A32D2D;
  --color-info-bg:     #E6F1FB;
  --color-info-txt:    #185FA5;

  /* Sidebar dimensions */
  --sidebar-width:      220px;
  --sidebar-collapsed:  64px;
  --topbar-height:      52px;

  /* Typography */
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Noto Sans', sans-serif;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
}

a { color: var(--uk-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-left{
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-left-image{
    position: absolute;
    inset: 0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.auth-overlay{
    position:absolute;
    inset:0;
    background:rgba(8,40,82,.55);
}

.auth-left-content{
    position:relative;
    z-index:2;
    color:#fff;
    max-width:500px;
    padding:50px;
}

.auth-left-title{
    font-size:52px;
    font-weight:700;
    margin-bottom:15px;
}

.auth-left-desc{
    font-size:18px;
    line-height:1.7;
    margin-bottom:40px;
    opacity:.95;
}

.auth-features{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.feature-item{
    display:flex;
    align-items:center;
    gap:15px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    padding:16px 20px;
    border-radius:12px;
}

.feature-item i{
    font-size:24px;
    width:32px;
    color:#fff;
}

.feature-item p{
    margin:0;
    font-size:16px;
}



/* =====================================================================
   2. AUTH LAYOUT
   ===================================================================== */
.auth-body { background: var(--bg-surface); }

.auth-root {
  display: flex;
  min-height: 100vh;
}

.submit-btn {
    display: inline-block;
    background: #198754;
    color: #fff;
    border: 1px solid #198754;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.submit-btn:hover,
.submit-btn:focus,
.submit-btn:active {
    background: #198754;
    color: #fff;
    border-color: #198754;
    text-decoration: none;
    box-shadow: none;
}

.final-submit-badge {
    display: inline-block;
    background: #198754;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.submit-btn:hover,
.submit-btn:focus,
.submit-btn:active {
    background: #198754;
    color: #fff;
    border: 1px solid #198754;
    box-shadow: none;
    outline: none;
}

/* --- Left decorative panel --- */
.auth-left {
  width: 46%;
  background: var(--uk-navy);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  overflow: hidden;
}

.auth-left-map {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  pointer-events: none;
}

.map-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-left-content {
  position: relative;
  z-index: 2;
}

.auth-badge-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.auth-badge {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 0.5px solid rgba(255,255,255,0.2);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.07em;
}

.auth-left-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.auth-left-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.auth-left-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(255,255,255,0.12);
}

.auth-stat { text-align: center; }
.auth-stat-num  { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--uk-gold); }
.auth-stat-label{ display: block; font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; margin-top: 2px; }
.auth-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* --- Right form panel --- */
.auth-right {
  width: 54%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

/* Tricolor strip */
.tricolor-strip {
  display: flex;
  height: 5px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}
.tc-saffron { flex: 1; background: #FF9933; }
.tc-white   { flex: 1; background: #fff; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.tc-green   { flex: 1; background: #138808; }

/* Govt header box */
.govt-header-box {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.2rem 1.4rem 1rem;
  margin-bottom: 1.6rem;
}

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

.govt-emblem { width: 58px; height: 58px; flex-shrink: 0; }
.govt-emblem svg { width: 100%; height: 100%; }

.govt-name { display: flex; flex-direction: column; }
.govt-name-pre  { font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-display); font-weight: 500; }
.govt-name-main { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--uk-navy); line-height: 1.2; }
.govt-name-hindi{ font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }

/* Form title */
.auth-form-area  { padding: 0 0.2rem; }
.auth-form-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.3rem; }
.auth-form-sub   { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1.5rem; }

/* Alerts */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}
.auth-alert-error   { background: var(--color-danger-bg);  color: var(--color-danger-txt);  border: 1px solid #f7c1c1; }
.auth-alert-success { background: var(--color-success-bg); color: var(--color-success-txt); border: 1px solid #C0DD97; }

/* Form fields */
.form-field-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: var(--font-display);
}

.form-input-wrap { position: relative; }

.form-input {
  width: 100%;
  padding: 10px 36px 10px 13px;
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--uk-navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-input.input-error { border-color: #e24b4a; }

.form-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  font-size: 13px;
  pointer-events: none;
}
.form-input-icon[style*="cursor"] { pointer-events: all; }

.form-error {
  display: block;
  font-size: 0.78rem;
  color: var(--color-danger-txt);
  margin-top: 4px;
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  font-size: 0.8rem;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-forgot-link {
  color: var(--uk-navy);
  font-size: 0.8rem;
  text-decoration: none;
}
.form-forgot-link:hover { text-decoration: underline; }

/* Login button */
.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--uk-navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-login:hover { background: var(--uk-navy-dark); }
.btn-login:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-login-arrow { font-size: 12px; }

/* Auth footer */
.auth-footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-hint);
  margin-top: 2rem;
  line-height: 1.7;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}


/* =====================================================================
   3. ADMIN LAYOUT
   ===================================================================== */
.admin-body { background: var(--bg-page); overflow: hidden; }

.admin-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--uk-navy);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.25s ease;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-emblem{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#fff;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid rgba(255,255,255,.4);
}

.sidebar-logo-img{
    width:100%;
    height:100%;
    object-fit:cover;   /* fills the circle */
    border-radius:50%;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.sidebar-emblem { width: 32px; height: 32px; flex-shrink: 0; }
.sidebar-emblem svg { width: 100%; height: 100%; }

.sidebar-brand { display: flex; flex-direction: column; overflow: hidden; }
.sidebar-brand-name { font-family: var(--font-display); color: #fff; font-size: 0.95rem; font-weight: 700; white-space: nowrap; line-height: 1.2; }
.sidebar-brand-sub  { color: rgba(255,255,255,0.35); font-size: 10px; white-space: nowrap; }

.sidebar-nav { flex: 1; padding: 8px 0; }

.sidebar-section-label {
  padding: 10px 0 3px 16px;
  font-size: 9.5px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.14em;
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: rgba(255,255,255,0.58);
  font-size: 12.5px;
  font-family: var(--font-body);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; text-decoration: none; }

.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: var(--uk-gold);
}

.nav-icon {
  width: 16px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-item.active .nav-icon { opacity: 1; }
.nav-item:hover .nav-icon  { opacity: 0.9; }

.sidebar-spacer { flex: 1; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--uk-gold);
  color: var(--uk-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.user-meta { flex: 1; overflow: hidden; }
.user-name  { display: block; color: #fff;                    font-size: 12px;   font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dept  { display: block; color: rgba(255,255,255,0.4);   font-size: 10px;   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-logout {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.user-logout:hover { color: #fff; text-decoration: none; }

/* Collapsed sidebar */
.admin-wrapper.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }
.admin-wrapper.sidebar-collapsed .sidebar-brand,
.admin-wrapper.sidebar-collapsed .sidebar-section-label,
.admin-wrapper.sidebar-collapsed .nav-item span,
.admin-wrapper.sidebar-collapsed .user-meta,
.admin-wrapper.sidebar-collapsed .user-logout { display: none; }
.admin-wrapper.sidebar-collapsed .nav-item { justify-content: center; padding: 10px; }
.admin-wrapper.sidebar-collapsed .nav-icon  { margin: 0; }
.admin-wrapper.sidebar-collapsed .sidebar-user { justify-content: center; padding: 12px 8px; }

/* --- Main area --- */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* --- Topbar --- */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  gap: 12px;
}

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

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.sidebar-toggle:hover { background: var(--bg-surface); }

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

.topbar-breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 11.5px; }
.bc-sep     { color: var(--text-hint); }
.bc-link    { color: var(--text-muted); text-decoration: none; }
.bc-link:hover { text-decoration: underline; }
.bc-current { color: var(--text-muted); }

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--border-soft);
  background: none;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.topbar-btn:hover { background: var(--bg-surface); text-decoration: none; }

.topbar-btn-primary {
  background: var(--uk-navy);
  color: #fff;
  border-color: var(--uk-navy);
}
.topbar-btn-primary:hover { background: var(--uk-navy-dark); }

.topbar-notif {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: background 0.15s;
}
.topbar-notif:hover { background: var(--bg-surface); }

.notif-count {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #e24b4a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

/* Topbar user dropdown */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  position: relative;
}
.topbar-user:hover { background: var(--bg-surface); }

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--uk-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
}

.topbar-username { font-size: 12.5px; font-weight: 500; color: var(--text-primary); }

.topbar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 999;
  overflow: hidden;
  padding: 4px 0;
}
.topbar-user.open .topbar-dropdown { display: block; }

.topbar-dd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-size: 12.5px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
}
.topbar-dd-item:hover { background: var(--bg-surface); text-decoration: none; }
.topbar-dd-item i { width: 14px; font-size: 12px; color: var(--text-muted); }
.topbar-dd-danger { color: var(--color-danger-txt) !important; }
.topbar-dd-danger i { color: var(--color-danger-txt) !important; }
.topbar-dd-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* --- Content area --- */
.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  background: var(--bg-page);
}

/* --- Footer --- */
.admin-footer {
  height: 38px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
  color: var(--text-hint);
  flex-shrink: 0;
}
.admin-footer a { color: var(--text-muted); }
.admin-footer a:hover { text-decoration: underline; }


/* =====================================================================
   4. REUSABLE COMPONENTS
   ===================================================================== */

/* --- Page header row --- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.page-header-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.page-header-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Stat cards row --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-white);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.stat-card-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card-icon {
  float: right;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-info-bg);
  color: var(--color-info-txt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin: -2px 0 0 8px;
}

/* --- Panel / card --- */
.panel {
  background: var(--bg-white);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.panel-action {
  font-size: 11.5px;
  color: var(--uk-navy);
  cursor: pointer;
  text-decoration: none;
}
.panel-action:hover { text-decoration: underline; }
.panel-body { padding: 14px 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: none;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-surface); text-decoration: none; }

.btn-primary   { background: var(--uk-navy);  color: #fff; border-color: var(--uk-navy);  }
.btn-primary:hover { background: var(--uk-navy-dark); }

.btn-success   { background: var(--color-success-bg); color: var(--color-success-txt); border-color: #C0DD97; }
.btn-danger    { background: var(--color-danger-bg);  color: var(--color-danger-txt);  border-color: #f7c1c1; }
.btn-warning   { background: var(--color-warning-bg); color: var(--color-warning-txt); border-color: #FAC775; }
.btn-info      { background: var(--color-info-bg);    color: var(--color-info-txt);    border-color: #B5D4F4; }

.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-lg { padding: 11px 22px; font-size: 14px; }

/* --- Tables --- */
.uk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.uk-table th {
  padding: 9px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  background: #fafaf8;
  white-space: nowrap;
}
.uk-table td {
  padding: 9px 14px;
  border-bottom: 0.5px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}
.uk-table tr:last-child td { border-bottom: none; }
.uk-table tbody tr:hover   { background: var(--bg-surface); }

/* --- Status badges / pills --- */
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-success { background: var(--color-success-bg); color: var(--color-success-txt); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning-txt); }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger-txt);  }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info-txt);    }
.badge-navy    { background: rgba(26,58,92,0.1);      color: var(--uk-navy);           }

/* --- Alerts / info boxes --- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  border-width: 1px;
  border-style: solid;
}
.alert-success { background: var(--color-success-bg); color: var(--color-success-txt); border-color: #C0DD97; }
.alert-danger  { background: var(--color-danger-bg);  color: var(--color-danger-txt);  border-color: #f7c1c1; }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning-txt); border-color: #FAC775; }
.alert-info    { background: var(--color-info-bg);    color: var(--color-info-txt);    border-color: #B5D4F4; }
.alert i       { margin-top: 1px; flex-shrink: 0; }

/* --- Pagination (DataTables friendly) --- */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-display) !important;
  font-size: 12px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--uk-navy) !important;
  border-color: var(--uk-navy) !important;
  color: #fff !important;
}


/* =====================================================================
   5. UTILITY CLASSES
   ===================================================================== */
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-success { color: var(--color-success-txt); }
.text-danger  { color: var(--color-danger-txt); }
.text-warning { color: var(--color-warning-txt); }
.text-info    { color: var(--color-info-txt); }
.text-navy    { color: var(--uk-navy); }
.text-gold    { color: var(--uk-gold); }

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex   { display: flex; }
.flex-1   { flex: 1; }
.gap-1    { gap: 8px; }
.gap-2    { gap: 16px; }
.gap-3    { gap: 24px; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }

.w-100 { width: 100%; }


/* =====================================================================
   6. RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .auth-left   { display: none; }
  .auth-right  { width: 100%; padding: 2rem 1.5rem; }
  .auth-card   { max-width: 100%; }
}

@media (max-width: 768px) {
  .admin-wrapper { position: relative; }
  .sidebar {
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .admin-wrapper.sidebar-open .sidebar { transform: translateX(0); }
  .admin-wrapper.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
  }

  .topbar-breadcrumb { display: none; }
  .admin-content { padding: 14px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .admin-content { padding: 12px; }
}

/* .captcha-box {
  background: #e9ecef;
  padding: 10px 15px;
  font-weight: bold;
  letter-spacing: 3px;
  border-radius: 5px;
  user-select: none;
} */
 .captcha-box {
  background: #eee;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
  border-radius: 5px;
  min-width: 120px;
  text-align: center;
}

.auth-left {
    width: 50%;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #0a2a43, #0f4c75);
    color: white;
    overflow: hidden;
}

/* MAP BACKGROUND */
.auth-left-map {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.25;
}

.map-svg {
    width: 100%;
    height: 100%;
}

/* GRID */
.grid-lines line {
    stroke: #ffffff;
    stroke-width: 0.5;
    stroke-dasharray: 4,6;
    opacity: 0.4;
}

/* MAP SHAPE */
.map-shape {
    fill: none;
    stroke: #00e5ff;
    stroke-width: 3;
    filter: drop-shadow(0 0 6px #00e5ff);
}

/* POINTS */
.map-point {
    fill: #00ffcc;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { r: 3; opacity: 0.6; }
    50% { r: 6; opacity: 1; }
    100% { r: 3; opacity: 0.6; }
}

/* CONTENT */
.auth-left-content {
    position: relative;
    z-index: 2;
    padding: 80px 60px;
}

/* TITLE */
.auth-left-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* DESC */
.auth-left-desc {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.85;
}

/* FEATURES */
.auth-features {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    font-size: 15px;
}

.feature-item span {
    font-size: 20px;
}

.logout-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-tile i {
    font-size: 16px;
}

.logout-tile:hover {
    background: #ff4d4d;
    color: #fff;
    transform: translateX(3px);
}