/* =============================================
   SSS Admin Panel — Main CSS (Mobile-First)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Rajdhani:wght@600;700&display=swap');

:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-dark: #0d1b6e;
  --accent: #e53935;
  --gold: #f9a825;
  --bg: #f0f2f8;
  --card: #ffffff;
  --text: #1a1a2e;
  --text2: #5c6070;
  --border: #e8eaf6;
  --success: #00897b;
  --warning: #f57c00;
  --danger: #c62828;
  --info: #0277bd;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(26,35,126,0.10);
  --shadow2: 0 2px 8px rgba(26,35,126,0.08);
  --nav-h: 65px;
  --header-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: 'Nunito', sans-serif;
  background: #e8eaf6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===================== MOBILE SHELL ===================== */
#app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* ===================== HEADER ===================== */
.app-header {
  height: var(--header-h);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,35,126,0.3);
  flex-shrink: 0;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.hamburger {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  border: none; color: #fff; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.header-logo-mini { display: flex; align-items: center; gap: 8px; }
.logo-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
}
.header-title { color: #fff; font-weight: 800; font-size: 15px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.hdr-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  border: none; color: #fff; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  position: relative; text-decoration: none;
}
.hdr-badge {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px; background: var(--accent);
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.8);
  font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ff8f00);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 14px;
  text-decoration: none; cursor: pointer;
}

/* ===================== CONTENT ===================== */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + 16px);
}
.content::-webkit-scrollbar { display: none; }

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
  height: var(--nav-h);
  background: #fff;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding: 0 4px;
  box-shadow: 0 -4px 20px rgba(26,35,126,0.08);
  flex-shrink: 0;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 4px; cursor: pointer;
  transition: all 0.2s; border-radius: 12px; gap: 3px;
  text-decoration: none;
}
.nav-item i { font-size: 20px; color: #bbc0d8; transition: all 0.2s; }
.nav-item span { font-size: 10px; font-weight: 600; color: #bbc0d8; transition: all 0.2s; }
.nav-item.active i { color: var(--primary); }
.nav-item.active span { color: var(--primary); }
.nav-item.active { background: #eef0fb; }

/* ===================== SIDEBAR ===================== */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200; display: none;
  backdrop-filter: blur(2px);
  max-width: 480px; margin: 0 auto;
}
.sidebar-overlay.open { display: block; }
.sidebar {
  position: fixed; left: -290px; top: 0; bottom: 0;
  width: 290px;
  background: #fff; z-index: 201;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}
.sidebar.open { left: 0; }
.sidebar-header {
  background: linear-gradient(135deg, var(--primary), #1565c0);
  padding: 44px 20px 24px;
}
.sidebar-user { display: flex; align-items: center; gap: 12px; }
.sidebar-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ff8f00);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 22px;
  border: 3px solid rgba(255,255,255,0.4);
}
.sidebar-user-info strong { color: #fff; font-size: 15px; font-weight: 800; display: block; }
.sidebar-user-info small { color: rgba(255,255,255,0.7); font-size: 11px; }
.sidebar-menu { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-menu::-webkit-scrollbar { display: none; }
.menu-label {
  font-size: 10px; font-weight: 700; color: #bbc0d8;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 12px 20px 6px;
}
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; cursor: pointer; transition: all 0.2s;
  text-decoration: none; position: relative;
}
.menu-item:hover, .menu-item.active { background: #eef0fb; }
.menu-item .mi-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.menu-item .mi-text { font-size: 14px; font-weight: 600; color: var(--text); }
.menu-item.active .mi-text { color: var(--primary); }
.menu-item .mi-badge {
  margin-left: auto; background: var(--accent);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}
.sidebar-logout { padding: 16px 20px; border-top: 1px solid var(--border); }
.btn-logout {
  width: 100%; padding: 12px; background: #fee;
  border: none; border-radius: 12px; color: var(--danger);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}

/* ===================== CARDS ===================== */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow2); margin: 0 16px 16px; padding: 16px;
}
.section-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; margin-bottom: 16px; }
.stat-card {
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow2); position: relative; overflow: hidden;
  cursor: pointer; transition: transform 0.2s;
}
.stat-card:active { transform: scale(0.97); }
.stat-card .sc-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.stat-card .sc-val { font-size: 30px; font-weight: 900; color: #fff; line-height: 1; }
.stat-card .sc-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85); }
.stat-card .sc-bg {
  position: absolute; right: -10px; bottom: -10px;
  font-size: 70px; color: rgba(255,255,255,0.1);
}
.sc-blue { background: linear-gradient(135deg, #1a237e, #283593); }
.sc-green { background: linear-gradient(135deg, #00695c, #00897b); }
.sc-orange { background: linear-gradient(135deg, #e65100, #f57c00); }
.sc-red { background: linear-gradient(135deg, #b71c1c, #c62828); }
.sc-purple { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.sc-teal { background: linear-gradient(135deg, #006064, #00838f); }

/* ===================== WELCOME BANNER ===================== */
.welcome-banner {
  margin: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #1565c0);
  padding: 20px; position: relative; overflow: hidden;
}
.welcome-banner h2 { color: #fff; font-size: 18px; font-weight: 800; }
.welcome-banner p { color: rgba(255,255,255,0.7); font-size: 12px; margin-top: 4px; }
.welcome-banner .wb-icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 60px; color: rgba(255,255,255,0.08);
}
.wb-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.2); padding: 4px 10px;
  border-radius: 20px; color: #fff; font-size: 11px;
  font-weight: 600; margin-top: 10px;
}

/* ===================== LIST ITEMS ===================== */
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none;
}
.list-item:last-child { border-bottom: none; }
.li-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; font-weight: 800;
}
.li-info { flex: 1; min-width: 0; }
.li-info strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-info small { font-size: 12px; color: var(--text2); }
.li-chevron { color: #bbc0d8; font-size: 13px; flex-shrink: 0; }

/* ===================== BADGES ===================== */
.badge-pill { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bp-success { background: #e0f5f1; color: var(--success); }
.bp-warning { background: #fff3e0; color: var(--warning); }
.bp-danger { background: #ffebee; color: var(--danger); }
.bp-info { background: #e3f2fd; color: var(--info); }
.bp-primary { background: #e8eaf6; color: var(--primary); }
.bp-secondary { background: #f5f5f5; color: #616161; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 12px; border: none;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; text-decoration: none; width: 100%;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 4px 16px rgba(26,35,126,0.25); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #e53935); color: #fff; box-shadow: 0 4px 16px rgba(198,40,40,0.25); }
.btn-success { background: linear-gradient(135deg, var(--success), #26a69a); color: #fff; box-shadow: 0 4px 16px rgba(0,137,123,0.25); }
.btn-warning { background: linear-gradient(135deg, var(--warning), #f9a825); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; width: auto; }
.btn-sm-primary { background: #e8eaf6; color: var(--primary); }
.btn-sm-danger { background: #ffebee; color: var(--danger); }
.btn-sm-success { background: #e0f5f1; color: var(--success); }
.btn-sm-warning { background: #fff3e0; color: var(--warning); }

/* ===================== FORMS ===================== */
.form-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; display: block; }
.form-ctrl {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: 12px;
  font-family: 'Nunito', sans-serif; font-size: 14px; color: var(--text);
  background: #f8f9ff; outline: none; margin-bottom: 14px; transition: all 0.2s;
  appearance: none;
}
.form-ctrl:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(26,35,126,0.06); }
textarea.form-ctrl { resize: vertical; min-height: 100px; }
.inp-group { position: relative; margin-bottom: 16px; }
.inp-group i.icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9fa8da; font-size: 15px; }
.inp-group input { padding-left: 44px; margin-bottom: 0; }
.inp-group input, .inp-group select { width: 100%; padding: 14px 16px 14px 44px; border: 2px solid var(--border); border-radius: 12px; font-family: 'Nunito', sans-serif; font-size: 14px; color: var(--text); background: #f8f9ff; outline: none; transition: all 0.2s; }
.inp-group input:focus, .inp-group select:focus { border-color: var(--primary); background: #fff; }
.toggle-pw { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #9fa8da; cursor: pointer; font-size: 14px; background: none; border: none; }

/* ===================== TABS ===================== */
.tabs { display: flex; gap: 6px; padding: 0 16px; margin-bottom: 12px; overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 8px 16px; border-radius: 20px; border: 2px solid var(--border);
  background: #fff; color: var(--text2); font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===================== SEARCH BAR ===================== */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 12px 16px;
  margin: 0 16px 16px; box-shadow: var(--shadow2);
}
.search-bar i { color: #bbc0d8; }
.search-bar input { border: none; outline: none; flex: 1; font-family: 'Nunito', sans-serif; font-size: 14px; color: var(--text); background: transparent; }

/* ===================== PAGE HEADER ===================== */
.page-header { padding: 16px 16px 0; margin-bottom: 16px; }
.page-header h2 { font-size: 20px; font-weight: 900; color: var(--text); }
.page-header p { font-size: 12px; color: var(--text2); margin-top: 2px; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0; margin-bottom: 16px; }
.page-header-row h2 { font-size: 20px; font-weight: 900; color: var(--text); }

/* ===================== ACTIVITY ===================== */
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.act-text { font-size: 13px; color: var(--text); font-weight: 600; }
.act-time { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* ===================== COMPLAINT CARD ===================== */
.complaint-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow2);
  margin: 0 16px 12px; padding: 14px; border-left: 4px solid var(--primary);
}
.complaint-card.urgent { border-left-color: var(--accent); }
.complaint-card.resolved { border-left-color: var(--success); }
.complaint-card.inprogress { border-left-color: var(--warning); }
.cc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cc-id { font-size: 11px; font-weight: 700; color: var(--text2); }
.cc-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cc-desc { font-size: 12px; color: var(--text2); }
.cc-footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cc-apt { font-size: 11px; color: var(--text2); }

/* ===================== SECURITY CARD ===================== */
.sec-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow2); margin: 0 16px 12px; padding: 14px; }
.sec-header { display: flex; align-items: center; gap: 12px; }
.sec-avatar { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; font-weight: 700; flex-shrink: 0; }
.sec-meta { flex: 1; }
.sec-meta strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.sec-meta small { font-size: 11px; color: var(--text2); }
.sec-footer { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sec-chip { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #e8eaf6; color: var(--primary); }

/* ===================== NOTICE CARD ===================== */
.notice-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow2); margin: 0 16px 12px; overflow: hidden; }
.nc-header { padding: 12px 14px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.nc-header h4 { color: #fff; font-size: 14px; font-weight: 700; }
.nc-header small { color: rgba(255,255,255,0.7); font-size: 11px; }
.nc-body { padding: 12px 14px; }
.nc-body p { font-size: 13px; color: var(--text2); }

/* ===================== AD CARD ===================== */
.ad-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow2); margin: 0 16px 12px; overflow: hidden; }
.ad-img { height: 130px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 40px; }
.ad-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-body { padding: 12px 14px; }
.ad-body strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.ad-body small { font-size: 12px; color: var(--text2); }
.ad-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ===================== LOG TIMELINE ===================== */
.log-wrap { padding: 16px 0; }
.log-item { display: flex; gap: 12px; padding: 0 16px 16px; }
.log-line { display: flex; flex-direction: column; align-items: center; }
.log-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.log-bar { width: 2px; flex: 1; background: var(--border); margin-top: 4px; }
.log-content { flex: 1; }
.log-content strong { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.log-content small { font-size: 11px; color: var(--text2); }
.log-content p { font-size: 12px; color: var(--text2); margin-top: 4px; background: #f8f9ff; padding: 8px; border-radius: 8px; }

/* ===================== PROFILE ===================== */
.profile-hero { background: linear-gradient(135deg, var(--primary), #1565c0); padding: 32px 16px 80px; text-align: center; position: relative; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ff8f00); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; font-weight: 900; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,0.4); }
.profile-hero h2 { color: #fff; font-size: 20px; font-weight: 800; }
.profile-hero p { color: rgba(255,255,255,0.7); font-size: 12px; }
.profile-stats { background: #fff; border-radius: var(--radius); margin: -50px 16px 16px; box-shadow: var(--shadow); display: flex; }
.ps-item { flex: 1; text-align: center; padding: 20px 8px; }
.ps-item:not(:last-child) { border-right: 1px solid var(--border); }
.ps-val { font-size: 22px; font-weight: 900; color: var(--primary); }
.ps-label { font-size: 10px; color: var(--text2); font-weight: 600; margin-top: 2px; }
.setting-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.setting-item:last-child { border-bottom: none; }
.si-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.si-text { flex: 1; }
.si-text strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.si-text small { font-size: 11px; color: var(--text2); }

/* ===================== NOTIFICATIONS ===================== */
.notif-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { position: relative; }
.ni-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ni-content { flex: 1; min-width: 0; }
.ni-content strong { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.ni-content p { font-size: 12px; color: var(--text2); margin-top: 2px; }
.ni-time { font-size: 10px; color: #bbc0d8; margin-top: 4px; display: block; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 18px; }

/* ===================== CHART ===================== */
.chart-wrap { position: relative; height: 190px; }

/* ===================== FAB ===================== */
.fab {
  position: fixed; right: calc(50% - 240px + 16px); bottom: calc(var(--nav-h) + 16px);
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e91e63);
  border: none; color: #fff; font-size: 22px;
  box-shadow: 0 6px 20px rgba(229,57,53,0.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 99; transition: all 0.2s; text-decoration: none;
}
.fab:active { transform: scale(0.92); }

/* ===================== QUICK ACTIONS ===================== */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.quick-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.quick-label { font-size: 10px; font-weight: 700; color: var(--text2); text-align: center; }

/* ===================== EMPTY STATE ===================== */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state i { font-size: 60px; color: #e0e0e0; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text2); }
.empty-state p { font-size: 13px; color: #bbc0d8; margin-top: 8px; }

/* ===================== POLL BAR ===================== */
.poll-option { margin-bottom: 12px; }
.poll-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.poll-bar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.poll-fill { height: 100%; border-radius: 4px; background: var(--primary); transition: width 0.5s ease; }

/* ===================== LOGIN ===================== */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(160deg, #0d1b6e 0%, #1a237e 40%, #283593 70%, #1565c0 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.login-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 20px; }
.login-logo-ring {
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 3px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  box-shadow: 0 0 40px rgba(249,168,37,0.3);
}
.login-logo-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; color: #fff; font-weight: 700;
}
.login-logo-placeholder img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(200, 150, 12, .15);
    object-fit: cover;
}
.login-title { color: #fff; font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.login-sub { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 4px; }
.login-card {
  background: #fff; border-radius: 28px 28px 0 0;
  padding: 32px 28px 50px; width: 100%;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}
.login-card h3 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.login-card p { font-size: 13px; color: var(--text2); margin-bottom: 28px; }
.login-footer { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text2); }
.error-msg { background: #ffebee; color: var(--danger); padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ===================== ALERTS ===================== */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #e0f5f1; color: var(--success); }
.alert-danger { background: #ffebee; color: var(--danger); }
.alert-warning { background: #fff3e0; color: var(--warning); }
.alert-info { background: #e3f2fd; color: var(--info); }

/* ===================== MISC ===================== */
.divider { height: 1px; background: var(--border); margin: 8px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text2); font-size: 13px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-8 { gap: 8px; }
.flex-1 { flex: 1; }
.ml-auto { margin-left: auto; }
.fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; }

/* Responsive for desktop */
@media (min-width: 481px) {
  .fab { right: calc(50% - 225px); }
  .sidebar { max-width: 290px; }
}

/* AOS Animations */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
