/* Nerva Quest theme: dark, blue glow, glass cards */

:root{
  --bg0:#02050a;
  --bg1:#061523;
  --bg2:#0b2436;

  --card:rgba(7, 18, 30, 0.72);
  --card2:rgba(10, 28, 44, 0.62);
  --border:rgba(125, 173, 202, 0.18);

  --text:#e8f4ff;
  --muted:#9bb3c7;

  --link:#7dd3fc;
  --link2:#a78bfa;

  --accent:#4cc9ff;
  --accent2:#8a7dff;

  --good:#39d98a;
  --bad:#ff5b7a;
  --pending:#ffd166;

  --shadow:0 12px 30px rgba(0,0,0,0.45);
  --shadow2:0 0 0 1px rgba(125,173,202,0.10), 0 18px 50px rgba(0,0,0,0.55);
}

html { overflow-y: scroll; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px;
  color: var(--text);

  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(76,201,255,0.18), rgba(0,0,0,0) 55%),
    radial-gradient(900px 600px at 78% 42%, rgba(138,125,255,0.12), rgba(0,0,0,0) 55%),
    url("bg-pattern.png"),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg0));

  background-size:
    auto,
    auto,
    cover,
    auto;

  background-attachment: fixed;
  background-position: center;
}

a{
  color: var(--link);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }
a:visited{ color: var(--link2); }

.card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;

  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow2);
  backdrop-filter: blur(8px);
}

nav.card{
  position: sticky;
  top: 10px;
  z-index: 10;
}

nav a{
  margin-right: 12px;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
}
nav a:hover{
  background: rgba(76,201,255,0.08);
  box-shadow: 0 0 0 1px rgba(76,201,255,0.18) inset;
  text-decoration: none;
}

h1, h2, h3{
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
}
h1{ font-size: 28px; }
h2{ font-size: 22px; }
h3{ font-size: 16px; text-transform: none; }

label{
  display: block;
  margin: 10px 0 6px 0;
  color: var(--muted);
}

input, textarea{
  width: 100%;
  padding: 10px;
  font-size: 14px;
  box-sizing: border-box;

  color: var(--text);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(125,173,202,0.22);
  border-radius: 12px;
  outline: none;
}

input::placeholder, textarea::placeholder{
  color: rgba(155,179,199,0.65);
}

input:focus, textarea:focus{
  border-color: rgba(76,201,255,0.55);
  box-shadow:
    0 0 0 3px rgba(76,201,255,0.18),
    0 0 22px rgba(76,201,255,0.12);
}

button{
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;

  color: var(--text);
  border: 1px solid rgba(76,201,255,0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(76,201,255,0.22), rgba(0,0,0,0.18));
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

button:hover{
  border-color: rgba(76,201,255,0.50);
  box-shadow:
    0 0 0 3px rgba(76,201,255,0.14),
    0 12px 28px rgba(0,0,0,0.45);
}

button:active{ transform: translateY(1px); }

.muted{ color: var(--muted); }
.bad{ color: var(--bad); font-weight: 700; }
.good{ color: var(--good); font-weight: 700; }
.pending{ color: var(--pending); font-weight: 700; }

.row{ display: flex; gap: 12px; flex-wrap: wrap; }
.col{ flex: 1; min-width: 260px; }

code{
  word-break: break-all;
  color: rgba(232,244,255,0.92);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(125,173,202,0.18);
  padding: 2px 6px;
  border-radius: 10px;
}

table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

th, td{
  padding: 10px 8px;
  border-bottom: 1px solid rgba(125,173,202,0.12);
  vertical-align: top;
}

th{
  text-align: left;
  color: rgba(232,244,255,0.92);
  border-bottom: 1px solid rgba(125,173,202,0.22);
  background: rgba(0,0,0,0.18);
}

tr:hover td{
  background: rgba(76,201,255,0.05);
}

td.num, th.num{ text-align: right; }

/* Leaderboard formatting */
ol.lb{
  padding-left: 22px;
  margin: 0;
}

ol.lb li{ padding: 4px 0; }

ol.lb .lb-item{
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lb-email{
  flex: 1;
  overflow-wrap: anywhere;
}

.lb-points{
  font-weight: 700;
  min-width: 70px;
  text-align: right;
}

/* Status pills */
.status{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(125,173,202,0.18);
}

/* Pending glow animation */
.status.pending{
  background: rgba(255,209,102,0.14);
  color: var(--pending);
  border-color: rgba(255,209,102,0.26);
}

.status.pending.pulse{
  animation: pendingPulse 1.6s ease-in-out infinite;
}

@keyframes pendingPulse{
  0%   { box-shadow: 0 0 0 0 rgba(255,209,102,0.0); }
  50%  { box-shadow: 0 0 0 7px rgba(255,209,102,0.16); }
  100% { box-shadow: 0 0 0 0 rgba(255,209,102,0.0); }
}

/* Optional helpers if you add them later */
.status.good{
  background: rgba(57,217,138,0.12);
  color: var(--good);
  border-color: rgba(57,217,138,0.22);
}
.status.bad{
  background: rgba(255,91,122,0.12);
  color: var(--bad);
  border-color: rgba(255,91,122,0.22);
}

/* Make evidence columns readable on dark */
.evidence, .admin-note{
  color: rgba(232,244,255,0.88);
}






/* Glass nav upgrade */
nav.card{
  position: sticky;
  top: 12px;
  z-index: 50;

  background: rgba(8, 20, 34, 0.55);
  border: 1px solid rgba(125,173,202,0.20);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

nav.card a{
  padding: 8px 12px;
  border-radius: 12px;
}

nav.card a:hover{
  background: rgba(76,201,255,0.10);
  box-shadow: 0 0 0 1px rgba(76,201,255,0.20) inset;
}

/* Hero header */
.hero{
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.hero-inner{
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-media{
  flex: 0 0 260px;
  max-width: 320px;
}

.hero-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(125,173,202,0.20);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

.hero-copy{
  flex: 1;
  min-width: 260px;
}

.hero-title{
  font-size: 28px;
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.hero-tagline{
  margin: 0 0 10px 0;
  color: rgba(232,244,255,0.92);
}

.hero-sub{
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

/* Glow accents inside hero */
.hero::before{
  content:"";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(76,201,255,0.20), rgba(0,0,0,0) 45%),
    radial-gradient(circle at 70% 55%, rgba(138,125,255,0.16), rgba(0,0,0,0) 45%);
  pointer-events: none;
}

.hero > *{
  position: relative;
  z-index: 1;
}

/* Simple CTA button style (optional) */
.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(76,201,255,0.28);
  background: linear-gradient(180deg, rgba(76,201,255,0.22), rgba(0,0,0,0.18));
  color: var(--text);
  text-decoration: none;
}
.btn:hover{
  border-color: rgba(76,201,255,0.50);
  box-shadow: 0 0 0 3px rgba(76,201,255,0.14);
  text-decoration: none;
}

.hero-links{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-ghost{
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid rgba(125,173,202,0.25);
  background: rgba(0,0,0,0.18);
  color: var(--muted);
}

.btn-ghost:hover{
  color: var(--text);
  border-color: rgba(76,201,255,0.45);
  background: rgba(76,201,255,0.08);
}





/* ===== Admin Notice Upgrade ===== */

.notice-card{
  position: relative;
  border: 1px solid rgba(255, 209, 102, 0.35);
  background:
    linear-gradient(180deg,
      rgba(255,209,102,0.10),
      rgba(10,28,44,0.65)
    );
  box-shadow:
    0 0 0 1px rgba(255,209,102,0.08) inset,
    0 18px 45px rgba(0,0,0,0.55);
}

/* subtle glow bar on left */
.notice-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  border-radius:12px 0 0 12px;
  background: linear-gradient(
    180deg,
    #ffd166,
    #ffb703
  );
  box-shadow: 0 0 18px rgba(255,209,102,0.6);
}

/* header row */
.notice-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
  font-size:15px;
  letter-spacing:.3px;
}

/* warning icon */
.notice-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:6px;
  font-size:14px;
  font-weight:700;

  background: rgba(255,209,102,0.18);
  color:#ffd166;
  border:1px solid rgba(255,209,102,0.35);

  box-shadow: 0 0 12px rgba(255,209,102,0.35);
}

/* body text */
.notice-text{
  margin:0;
  color:rgba(232,244,255,0.92);
  font-weight:500;
}


/* ===== Quest Tabs (improved contrast) ===== */

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* INACTIVE tab */
button.tab-btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(125,173,202,0.18);
  background: rgba(8,20,34,0.55);   /* dark glass instead of white */
  color:#9bb3c7;
  font-weight:600;
  cursor:pointer;
  transition: all .15s ease;
}

/* hover */
button.tab-btn:not(.active):hover{
  background: rgba(8,20,34,0.75);
  border-color: rgba(125,173,202,0.35);
  color:#cfe6ff;
}

/* ACTIVE tab (very clear) */
button.tab-btn.active{
  background: rgba(76,201,255,0.18);
  border-color: rgba(76,201,255,0.65);
  color:#7dd3fc;
  box-shadow:
    0 0 0 2px rgba(76,201,255,0.18),
    0 8px 24px rgba(0,0,0,0.45);
}



/* primary button (already in your theme probably) */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(76,201,255,0.28);
  background: linear-gradient(180deg, rgba(76,201,255,0.22), rgba(0,0,0,0.18));
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
}

/* ghost / secondary button */
.btn-ghost{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(125,173,202,0.28);
  background: rgba(8,20,34,0.55);
  color:#cfe6ff;
  text-decoration:none;
}

.btn-ghost:hover{
  border-color: rgba(76,201,255,0.45);
  background: rgba(76,201,255,0.08);
  color:#7dd3fc;
}




/* Resume / Continue action */
.btn-resume{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(34,197,94,0.45);
  background: linear-gradient(
    180deg,
    rgba(34,197,94,0.18),
    rgba(0,0,0,0.25)
  );
color:#d1fae5;
font-weight:600;
letter-spacing:0.2px;
  text-decoration:none;
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.15),
    0 6px 18px rgba(34,197,94,0.15);
  transition: all .18s ease;
}

.btn-resume:hover{
  border-color: rgba(34,197,94,0.7);
  background: linear-gradient(
    180deg,
    rgba(34,197,94,0.28),
    rgba(0,0,0,0.2)
  );
color:#ecfdf5;
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.35),
    0 10px 26px rgba(34,197,94,0.28);
  transform: translateY(-1px);
  
}