/* ===== Animated Hand-Raise Background ===== */
.hands-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("assets/img/handriase.gif") center/300px repeat;
  opacity: 0.085; /* subtle, feel free to adjust */
  z-index: -1; /* behind everything */
  pointer-events: none; /* no interaction block */
}


/* ===== Reset & Globals ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  /* Darker, cleaner palette for contrast */
  --bg1: #204013;         /* darker green */
  --bg2: #2f5a1d;
  --bg3: #54452c;         /* toned brown */
  --paper: #ffffff;       /* pure white for max legibility */
  --ink: #1f2937;         /* slate-800 */
  --muted: #374151;       /* slate-700 for body copy */
  --brand: #1c4d2b;       /* deep green; strong on white */
  --accent: #2e7d32;      /* green-800; white text passes AA */
  --border: #d1d5db;      /* neutral-300 */
  --white: #ffffff;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
  color: var(--ink);
}

/* ===== App Container ===== */
.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 5vw, 60px);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  display: flex; align-items: center; gap: 8px;
}
.logo-bars { display: flex; gap: 3px; }
.logo-bar { width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }
.logo-bar.light { background: var(--accent); }

nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); }
nav a {
  text-decoration: none;
  color: var(--ink);        /* darker for contrast on white */
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
nav a:hover { color: var(--brand); border-color: var(--brand); }

.login-btn {
  background: var(--accent);
  color: var(--white);
  padding: 10px 22px;
  border: none; border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.login-btn:hover { filter: brightness(.95); }

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: clamp(30px, 6vw, 80px);
}

.content { flex: 1; max-width: 560px; }

.badge {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--ink);
}
.description {
  color: var(--muted);     /* darker body copy for AA */
  font-size: 16.5px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.button-group { display: flex; gap: 14px; margin-bottom: 22px; }
.btn {
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700; font-size: 15px;
  cursor: pointer;
  border: 2px solid;
}
.btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover { background: #143820; } /* slightly darker for clear hover */
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: #f0f5f1; } /* higher contrast than #efefe6 */

.ethereum-note {
  display: flex; align-items: center; gap: 8px;
  color: #4b5563;          /* slate-600 for better legibility */
  font-size: 14px;
}
.ethereum-icon {
  width: 16px; height: 16px; background: var(--accent); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px;
}

/* ===== Avatar Illustration ===== */
.illustration {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 18px;
  align-items: end;
  justify-items: center;
  min-height: 280px;
}

.avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  width: 100%;
  max-width: 220px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .2s ease;
}
.avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.avatar img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  object-fit: cover;
}
.avatar-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);   /* dark enough on white */
  text-transform: uppercase;
}

/* Remove unused old illustration system */
.voter, .voter-card, .voter-hand, .voter-body { display: none !important; }

/* ===== Footer ===== */
.features {
  background: var(--brand);
  color: var(--white);
  padding: 36px clamp(20px, 5vw, 60px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  position: relative;
}
.feature { display:flex; align-items:center; gap:14px; flex:1; min-width:220px; }
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.18); /* stronger than .12 for clarity */
  display:flex; align-items:center; justify-content:center;
  font-size: 22px;
}

.feature-text h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature-text p  { font-size: 12px; opacity: .95; } /* increase legibility */

.nav-arrows{ display:flex; gap:10px; margin-left:auto; }
.arrow-btn{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.28); /* higher contrast */
  border:none; color:#fff; cursor:pointer;
}

.dots{
  position:absolute;
  bottom:14px; left:50%; transform:translateX(-50%);
  display:flex; gap:8px;
}
.dot { width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.6); }
.dot.active { background:#ffffff; }

/* ===== Responsive ===== */
@media (max-width: 900px){
  .main-content{
    flex-direction: column;
    text-align:center;
    gap: 36px;
    padding: 32px;
  }
  .illustration {
    grid-template-columns: repeat(2, minmax(140px,1fr));
  }
  .content { max-width:100%; }
}
/* ===== New Header Style (sticky + glass + no underline) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  margin: 6px 0 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* Logo (CampusCast) */
.logo {
  text-decoration: none;              /* no underline */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.logo-text { display: flex; align-items: center; gap: 10px; }
.logo-bars { display: flex; gap: 4px; height: 18px; align-items: stretch; }
.bar { width: 8px; background: #a4d65e; border-radius: 2px; }
.bar.alt { background: #fff; }
.logo-subtitle { font-size: 11px; color: #a4d65e; letter-spacing: 1px; font-weight: 600; }

/* Navigation */
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav .nav-link {
  color: #ffffff;
  text-decoration: none;              /* no underline */
  font-size: 15px;
  opacity: .95;
  padding: 8px 2px;
  border-radius: 6px;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
}

/* Login button aligned with nav */
.login-btn {
  text-decoration: none;              /* no underline */
  background: #d4e8b8;
  color: #0d3a1a;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
  border: 2px solid #d4e8b8;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.login-btn:hover,
.login-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* Ensure all anchors in the header have no underline */
.site-header a { text-decoration: none; }

/* Responsive tweaks */
@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .site-nav {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* === FIX: make header visible everywhere (stronger bg + higher z + clear text) === */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;                       /* keep it above everything */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  margin: 6px 0 18px;
  border-radius: 14px;

  /* darker, semi-opaque background so white text pops over white sections */
  background: rgba(13, 58, 26, 0.95);  /* deep green */
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
}

/* ensure everything inside the header has high-contrast text and no underlines */
.site-header a,
.site-header .logo,
.site-header .logo * {
  color: #fff !important;
  text-decoration: none !important;
}

/* brand bars & subtitle keep brand colors */
.site-header .logo-bars .bar    { background:#a4d65e; }
.site-header .logo-bars .bar.alt{ background:#fff; }
.site-header .logo-subtitle     { color:#a4d65e; }

/* nav links hover state */
.site-header .site-nav .nav-link{
  color:#fff;
  opacity:.95;
  padding: 8px 6px;
  border-radius:6px;
  transition: opacity .2s, transform .2s, background-color .2s;
}
.site-header .site-nav .nav-link:hover,
.site-header .site-nav .nav-link:focus-visible{
  opacity:1;
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* login button contrast on the darker header */
.site-header .login-btn{
  background:#d4e8b8;
  color:#0d3a1a;
  border:2px solid #d4e8b8;
  padding:8px 14px;
  border-radius:10px;
  font-weight:800;
}
.site-header .login-btn:hover{ box-shadow:0 8px 20px rgba(0,0,0,.25); transform:translateY(-2px); }

/* keep animated background behind the header */
.hands-bg{ z-index:-1 !important; }

/* if any content is anchor-linked, avoid being hidden under the sticky header */
.main-content{ scroll-margin-top: 90px; }


/* =========================
   TABLET (iPad & smaller) 
   Up to 1024px
   ========================= */
@media (max-width: 1024px) {
  /* Header stacks nicely */
  .site-header { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 12px; 
    padding: 12px 14px; 
  }
  .site-nav { 
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: space-between; 
  }

  /* Main content becomes single column */
  .main-content { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 24px; 
    padding: 24px; 
  }

  /* Avatar grid → 2 columns */
  .illustration { 
    grid-template-columns: repeat(2, minmax(160px, 1fr)); 
    gap: 16px; 
  }

  /* Form / card widths */
  .content { max-width: 100% !important; }
  .login-footer { gap: 10px; flex-wrap: wrap; }

  /* Buttons wrap */
  .button-group { flex-wrap: wrap; gap: 10px; }
}

/* =========================
   PHONE (most mobiles)
   Up to 600px
   ========================= */
@media (max-width: 600px) {
  /* Tighten paddings */
  .site-header { padding: 10px 12px; border-radius: 10px; }
  .logo-text span { font-size: 16px; }
  .logo-subtitle { font-size: 10px; }

  /* Make nav easier to tap */
  .site-nav { gap: 8px; }
  .site-nav .nav-link, .login-btn { padding: 10px 12px; font-size: 14px; }

  /* Single-column content */
  .main-content { padding: 18px 14px; gap: 20px; }

  /* Avatar grid → 1 column on phones */
  .illustration { grid-template-columns: 1fr; gap: 14px; }

  /* Cards fill width */
  .avatar { max-width: 100%; }
  
  /* Forms: comfy inputs & prevent iOS zoom */
  input, select, textarea { font-size: 16px; }
  .form-group { margin-bottom: 12px; }

  /* Buttons full-width on phone */
  .btn, .login-btn { width: 100%; text-align: center; }
  .button-group { flex-direction: column; gap: 10px; }

  /* Typography scaling (you already use clamp, this just helps) */
  h1 { font-size: clamp(24px, 7vw, 36px); }
  h2 { font-size: clamp(18px, 5.5vw, 24px); }
  .description { font-size: clamp(14px, 4.2vw, 16px); }

  /* Footer stacks */
  .features { gap: 12px; }
  .feature { min-width: 100%; }
  .nav-arrows, .dots { display: none; } /* optional: hide carousel UI on tiny screens */
}

/* =========================
   SUPERVISOR DASHBOARD STYLES
   ========================= */

.supervisor-main {
  flex-direction: column;
  gap: 28px;
}

.supervisor-grid {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.super-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 18px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.super-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.super-card p {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
  margin: 0;
}
