/* ================================================
   VotoChain - Sistema de Votación Online
   Paleta: Blanco / Azul Marino / Gris Elegante
   ================================================ */

/* ---------- CSS VARIABLES (Easy Customization) ---------- */
:root {
  /* Primary Palette */
  --vc-primary:        #0d2b5e;   /* Azul marino principal */
  --vc-primary-dark:   #091d42;   /* Azul marino oscuro */
  --vc-primary-light:  #1a4a9a;   /* Azul marino claro */
  --vc-accent:         #2563eb;   /* Azul accent */
  --vc-accent-hover:   #1d4ed8;

  /* Neutrals */
  --vc-white:          #ffffff;
  --vc-bg:             #f4f7fc;   /* Fondo general */
  --vc-bg-card:        #ffffff;
  --vc-border:         #dce3ef;
  --vc-text:           #1e2a3b;
  --vc-text-muted:     #6b7a97;
  --vc-text-light:     #9baabf;

  /* Status */
  --vc-success:        #16a34a;
  --vc-success-bg:     #f0fdf4;
  --vc-warning:        #d97706;
  --vc-warning-bg:     #fffbeb;
  --vc-danger:         #dc2626;
  --vc-danger-bg:      #fef2f2;
  --vc-info:           #0284c7;
  --vc-info-bg:        #f0f9ff;

  /* Layout */
  --vc-sidebar-w:      260px;
  --vc-topbar-h:       64px;
  --vc-radius:         10px;
  --vc-radius-lg:      16px;
  --vc-radius-sm:      6px;
  --vc-shadow:         0 2px 12px rgba(13,43,94,.08);
  --vc-shadow-md:      0 4px 24px rgba(13,43,94,.14);
  --vc-shadow-lg:      0 8px 48px rgba(13,43,94,.18);

  /* Typography */
  --vc-font:           'Outfit', 'Segoe UI', sans-serif;
  --vc-font-mono:      'JetBrains Mono', monospace;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--vc-font);
  background: var(--vc-bg);
  color: var(--vc-text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

a { color: var(--vc-accent); text-decoration: none; }
a:hover { color: var(--vc-accent-hover); }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--vc-bg); }
::-webkit-scrollbar-thumb { background: var(--vc-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--vc-text-light); }

/* ================================================
   SIDEBAR LAYOUT
   ================================================ */
.vc-layout { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.vc-sidebar {
  width: var(--vc-sidebar-w);
  background: var(--vc-primary);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  transition: transform .3s ease;
  overflow-y: auto;
}

.vc-sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--vc-topbar-h);
}

.vc-sidebar-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--vc-accent);
  border-radius: var(--vc-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.vc-sidebar-brand .brand-name {
  font-size: 17px;
  font-weight: 700;
  color: white;
  letter-spacing: -.3px;
}

.vc-sidebar-brand .brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  display: block;
  margin-top: -2px;
}

/* Business Badge */
.vc-business-badge {
  margin: 16px 16px 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--vc-radius-sm);
  padding: 10px 14px;
}
.vc-business-badge .biz-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.4);
  display: block;
  margin-bottom: 2px;
}
.vc-business-badge .biz-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.vc-sidebar-nav { padding: 8px 0; flex: 1; }

.vc-nav-section {
  padding: 16px 16px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.3);
  font-weight: 600;
}

.vc-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,.75);
  border-radius: 0;
  transition: all .2s;
  font-size: 14px;
  font-weight: 500;
  margin: 1px 8px;
  border-radius: var(--vc-radius-sm);
}

.vc-nav-item a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  opacity: .8;
}

.vc-nav-item a:hover,
.vc-nav-item.active a {
  background: rgba(255,255,255,.12);
  color: white;
}
.vc-nav-item.active a { font-weight: 600; }
.vc-nav-item.active a i { opacity: 1; }

.vc-nav-item .badge-pill {
  margin-left: auto;
  background: var(--vc-accent);
  color: white;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
}

/* Sidebar footer */
.vc-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.vc-sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vc-accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  display: block;
}

/* ---------- MAIN CONTENT ---------- */
.vc-main {
  margin-left: var(--vc-sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.vc-topbar {
  height: var(--vc-topbar-h);
  background: var(--vc-white);
  border-bottom: 1px solid var(--vc-border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.vc-topbar .breadcrumb {
  margin: 0;
  font-size: 13px;
}

.vc-topbar .breadcrumb-item { color: var(--vc-text-muted); }
.vc-topbar .breadcrumb-item.active { color: var(--vc-text); font-weight: 600; }
.vc-topbar .breadcrumb-item + .breadcrumb-item::before { color: var(--vc-text-light); }

.vc-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-topbar-btn {
  width: 38px; height: 38px;
  border-radius: var(--vc-radius-sm);
  border: 1px solid var(--vc-border);
  background: transparent;
  color: var(--vc-text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 15px;
}
.vc-topbar-btn:hover {
  background: var(--vc-bg);
  color: var(--vc-primary);
  border-color: var(--vc-primary);
}

/* Page content */
.vc-content { padding: 28px; flex: 1; }

.vc-page-header {
  margin-bottom: 24px;
}

.vc-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--vc-primary);
  margin: 0;
  letter-spacing: -.4px;
}

.vc-page-subtitle {
  font-size: 13px;
  color: var(--vc-text-muted);
  margin: 4px 0 0;
}

/* ================================================
   CARDS
   ================================================ */
.vc-card {
  background: var(--vc-bg-card);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
}

.vc-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--vc-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.vc-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--vc-primary);
  margin: 0;
}

.vc-card-subtitle {
  font-size: 12px;
  color: var(--vc-text-muted);
  margin: 2px 0 0;
}

.vc-card-body { padding: 22px; }
.vc-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--vc-border);
  background: var(--vc-bg);
  border-radius: 0 0 var(--vc-radius) var(--vc-radius);
}

/* ================================================
   STAT CARDS
   ================================================ */
.vc-stat {
  background: var(--vc-bg-card);
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--vc-shadow);
  transition: box-shadow .2s, transform .2s;
}
.vc-stat:hover {
  box-shadow: var(--vc-shadow-md);
  transform: translateY(-2px);
}

.vc-stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--vc-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.vc-stat-icon.primary { background: rgba(13,43,94,.08); color: var(--vc-primary); }
.vc-stat-icon.accent  { background: rgba(37,99,235,.1); color: var(--vc-accent); }
.vc-stat-icon.success { background: var(--vc-success-bg); color: var(--vc-success); }
.vc-stat-icon.warning { background: var(--vc-warning-bg); color: var(--vc-warning); }
.vc-stat-icon.danger  { background: var(--vc-danger-bg); color: var(--vc-danger); }

.vc-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--vc-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.vc-stat-label {
  font-size: 12px;
  color: var(--vc-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

.vc-stat-trend {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  align-self: flex-start;
}
.vc-stat-trend.up { background: var(--vc-success-bg); color: var(--vc-success); }
.vc-stat-trend.down { background: var(--vc-danger-bg); color: var(--vc-danger); }

/* ================================================
   BUTTONS
   ================================================ */
.btn-vc-primary {
  background: var(--vc-primary);
  border-color: var(--vc-primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--vc-radius-sm);
  padding: 9px 20px;
  transition: all .2s;
}
.btn-vc-primary:hover {
  background: var(--vc-primary-light);
  border-color: var(--vc-primary-light);
  color: white;
  box-shadow: 0 4px 14px rgba(13,43,94,.35);
  transform: translateY(-1px);
}

.btn-vc-accent {
  background: var(--vc-accent);
  border-color: var(--vc-accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--vc-radius-sm);
  padding: 9px 20px;
  transition: all .2s;
}
.btn-vc-accent:hover {
  background: var(--vc-accent-hover);
  border-color: var(--vc-accent-hover);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
  transform: translateY(-1px);
}

.btn-vc-outline {
  background: transparent;
  border: 1px solid var(--vc-border);
  color: var(--vc-text);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--vc-radius-sm);
  padding: 9px 20px;
  transition: all .2s;
}
.btn-vc-outline:hover {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
  background: rgba(13,43,94,.04);
}

/* ================================================
   FORMS
   ================================================ */
.vc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vc-text);
  margin-bottom: 6px;
  display: block;
}

.vc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-sm);
  font-size: 14px;
  color: var(--vc-text);
  background: white;
  transition: border .2s, box-shadow .2s;
  font-family: var(--vc-font);
}

.vc-input:focus {
  outline: none;
  border-color: var(--vc-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.vc-input::placeholder { color: var(--vc-text-light); }

.vc-input-icon {
  position: relative;
}
.vc-input-icon i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vc-text-muted);
  font-size: 14px;
}
.vc-input-icon .vc-input { padding-left: 38px; }

/* ================================================
   TABLES
   ================================================ */
.vc-table {
  width: 100%;
  border-collapse: collapse;
}

.vc-table thead th {
  background: var(--vc-bg);
  color: var(--vc-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--vc-border);
  white-space: nowrap;
}

.vc-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--vc-border);
  font-size: 14px;
  vertical-align: middle;
}

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

.vc-table tbody tr:hover td { background: rgba(13,43,94,.025); }

/* ================================================
   BADGES
   ================================================ */
.vc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.vc-badge-success { background: var(--vc-success-bg); color: var(--vc-success); }
.vc-badge-warning { background: var(--vc-warning-bg); color: var(--vc-warning); }
.vc-badge-danger  { background: var(--vc-danger-bg);  color: var(--vc-danger); }
.vc-badge-info    { background: var(--vc-info-bg);    color: var(--vc-info); }
.vc-badge-primary { background: rgba(13,43,94,.08);   color: var(--vc-primary); }

/* ================================================
   PROGRESS BARS
   ================================================ */
.vc-progress {
  background: var(--vc-border);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}
.vc-progress-bar {
  height: 100%;
  border-radius: 20px;
  background: var(--vc-accent);
  transition: width .6s ease;
}
.vc-progress-bar.primary { background: var(--vc-primary); }
.vc-progress-bar.success { background: var(--vc-success); }

/* ================================================
   AUTH PAGES
   ================================================ */
.vc-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vc-primary);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(37,99,235,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,74,154,.4) 0%, transparent 50%);
  padding: 20px;
}

.vc-auth-card {
  background: white;
  border-radius: var(--vc-radius-lg);
  box-shadow: var(--vc-shadow-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.vc-auth-header {
  background: var(--vc-primary);
  padding: 36px 40px 28px;
  text-align: center;
}

.vc-auth-logo {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: var(--vc-radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: white;
}

.vc-auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.vc-auth-header p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 6px 0 0;
}

.vc-auth-body { padding: 36px 40px; }

/* ================================================
   VOTING WEBAPP
   ================================================ */
.vc-voting-page {
  min-height: 100vh;
  background: var(--vc-bg);
}

.vc-voting-header {
  background: var(--vc-primary);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.vc-voting-header .brand {
  font-size: 16px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-voting-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Election Info Banner */
.vc-election-banner {
  background: var(--vc-primary);
  color: white;
  border-radius: var(--vc-radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

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

.vc-election-banner h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.vc-election-banner .meta {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.vc-election-banner .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Candidate Cards */
.vc-candidate-card {
  background: white;
  border: 2px solid var(--vc-border);
  border-radius: var(--vc-radius);
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.vc-candidate-card:hover {
  border-color: var(--vc-accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.vc-candidate-card.selected {
  border-color: var(--vc-accent);
  background: rgba(37,99,235,.03);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.vc-candidate-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--vc-bg);
  border: 2px solid var(--vc-border);
  object-fit: cover;
  flex-shrink: 0;
}

.vc-candidate-avatar-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(13,43,94,.08);
  color: var(--vc-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.vc-candidate-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--vc-primary);
  margin: 0 0 3px;
}

.vc-candidate-info p {
  font-size: 13px;
  color: var(--vc-text-muted);
  margin: 0;
}

.vc-candidate-radio {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--vc-border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}

.vc-candidate-card.selected .vc-candidate-radio {
  border-color: var(--vc-accent);
  background: var(--vc-accent);
}

.vc-candidate-card.selected .vc-candidate-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
}

/* Face Verification */
.vc-camera-modal .modal-content {
  border-radius: var(--vc-radius-lg);
  border: none;
  overflow: hidden;
}

.vc-camera-modal .modal-header {
  background: var(--vc-primary);
  color: white;
  border: none;
  padding: 18px 24px;
}

.vc-camera-modal .modal-title {
  font-size: 16px;
  font-weight: 700;
}

.vc-camera-modal .btn-close { filter: invert(1); }

.vc-camera-container {
  position: relative;
  background: #000;
  border-radius: var(--vc-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.vc-camera-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc-camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vc-face-guide {
  width: 200px; height: 240px;
  border: 3px solid rgba(37,99,235,.8);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.2),
    inset 0 0 30px rgba(37,99,235,.1);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,99,235,.2), inset 0 0 30px rgba(37,99,235,.1); }
  50%       { box-shadow: 0 0 0 8px rgba(37,99,235,.15), inset 0 0 30px rgba(37,99,235,.15); }
}

.vc-camera-status {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.7);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.vc-verification-result {
  padding: 20px;
  border-radius: var(--vc-radius);
  text-align: center;
}

.vc-verification-result.success {
  background: var(--vc-success-bg);
  border: 1px solid rgba(22,163,74,.2);
}

.vc-verification-result.error {
  background: var(--vc-danger-bg);
  border: 1px solid rgba(220,38,38,.2);
}

.vc-verification-result .result-icon {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}

/* ================================================
   STEPS / WIZARD
   ================================================ */
.vc-steps {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  counter-reset: step;
}

.vc-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.vc-step:last-child { flex: none; }

.vc-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vc-border);
  color: var(--vc-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .3s;
  position: relative;
  z-index: 1;
}

.vc-step.done .vc-step-num {
  background: var(--vc-success);
  color: white;
}

.vc-step.active .vc-step-num {
  background: var(--vc-accent);
  color: white;
  box-shadow: 0 0 0 5px rgba(37,99,235,.2);
}

.vc-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-text-muted);
  margin-left: 10px;
  white-space: nowrap;
}

.vc-step.active .vc-step-label,
.vc-step.done .vc-step-label {
  color: var(--vc-text);
}

.vc-step-line {
  flex: 1;
  height: 2px;
  background: var(--vc-border);
  margin: 0 12px;
}

.vc-step.done + .vc-step .vc-step-line,
.vc-step.done ~ .vc-step-line {
  background: var(--vc-success);
}

/* ================================================
   RESULTS / CHARTS
   ================================================ */
.vc-result-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.vc-result-bar .candidate-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--vc-text);
  min-width: 160px;
}

.vc-result-bar .bar-wrap {
  flex: 1;
  background: var(--vc-border);
  border-radius: 20px;
  height: 24px;
  overflow: hidden;
  position: relative;
}

.vc-result-bar .bar-fill {
  height: 100%;
  background: var(--vc-accent);
  border-radius: 20px;
  transition: width .8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.vc-result-bar .bar-fill.winner { background: var(--vc-primary); }

.vc-result-bar .bar-pct {
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.vc-result-bar .vote-count {
  font-size: 13px;
  color: var(--vc-text-muted);
  min-width: 70px;
  text-align: right;
}

/* ================================================
   MOBILE / RESPONSIVE
   ================================================ */
.vc-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--vc-text-muted);
  cursor: pointer;
  padding: 0;
}

@media (max-width: 991.98px) {
  .vc-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .vc-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--vc-shadow-lg);
  }

  .vc-main { margin-left: 0; }

  .vc-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999;
  }

  .vc-sidebar-overlay.show { display: block; }

  .vc-sidebar-toggle { display: flex; }

  .vc-content { padding: 20px 16px; }

  .vc-auth-body { padding: 24px; }
  .vc-auth-header { padding: 28px 24px 20px; }

  .vc-steps .vc-step-label { display: none; }
}

@media (max-width: 575.98px) {
  .vc-stat { padding: 16px; }
  .vc-stat-value { font-size: 22px; }
  .vc-candidate-card { flex-wrap: wrap; }
  .vc-result-bar .candidate-name { min-width: 100px; font-size: 12px; }
}

/* ================================================
   ALERTS
   ================================================ */
.vc-alert {
  padding: 14px 18px;
  border-radius: var(--vc-radius-sm);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid;
}

.vc-alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.vc-alert-info    { background: var(--vc-info-bg);    border-color: var(--vc-info);    color: #0369a1; }
.vc-alert-success { background: var(--vc-success-bg); border-color: var(--vc-success); color: #15803d; }
.vc-alert-warning { background: var(--vc-warning-bg); border-color: var(--vc-warning); color: #b45309; }
.vc-alert-danger  { background: var(--vc-danger-bg);  border-color: var(--vc-danger);  color: #b91c1c; }

/* ================================================
   UTILITIES
   ================================================ */
.text-primary-vc { color: var(--vc-primary) !important; }
.text-accent-vc  { color: var(--vc-accent) !important; }
.text-muted-vc   { color: var(--vc-text-muted) !important; }
.bg-primary-vc   { background: var(--vc-primary) !important; }
.bg-accent-vc    { background: var(--vc-accent) !important; }
.separator       { border: none; border-top: 1px solid var(--vc-border); margin: 20px 0; }

/* Loading spinner */
.vc-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--vc-border);
  border-top-color: var(--vc-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================
   EMPTY STATE
   ================================================ */
.vc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--vc-text-muted);
}
.vc-empty i { font-size: 48px; display: block; margin-bottom: 16px; opacity: .4; }
.vc-empty h5 { font-size: 16px; font-weight: 700; color: var(--vc-text); margin-bottom: 8px; }
.vc-empty p  { font-size: 14px; max-width: 320px; margin: 0 auto; }
