/* PalmFire Neon Sunset Theme */
:root{
  --bg:#0D0E12;
  --surface:#141726;
  --text:#F2F4FA;
  --muted:#A5AEC3;
  --primary:#00E0FF;
  --accent:#FF4FA3;
  --accent2:#7A2CF3;
  --accent3:#FF7AC8;
  --olive:#6B7D59;
  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --border:rgba(255,255,255,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Ubuntu, Arial;
  color:var(--text); background: var(--bg); overflow-x:hidden;}

/* Animated neon sunset background */
.bg-anim{
  position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(1200px 800px at 10% 20%, color-mix(in oklab, var(--accent2) 22%, transparent), transparent 60%),
    radial-gradient(1000px 600px at 90% 80%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.02));
  filter:saturate(115%);
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float{to{ transform: translateY(-10px)}}

.container{max-width:1180px; margin:0 auto; padding:32px 24px;}
.header{display:flex; gap:18px; align-items:center; justify-content:space-between; padding:18px 0;}
.brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.6px; font-size:20px}
.brand .logo{width:44px; height:44px; border-radius:12px; overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--border);}
.brand .wordmark{background: linear-gradient(90deg, var(--accent), var(--primary)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.badge{font-size:12px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.06); color:var(--muted); border:1px solid var(--border)}

.nav a{color:var(--muted); text-decoration:none; margin:0 8px; padding:8px 10px; border-radius:10px; border:1px solid transparent}
.nav a:hover{background:rgba(255,255,255,.05); color:var(--text); border-color:var(--border)}

.hero{
  display:grid; grid-template-columns: 1.25fr 1fr; gap:28px; align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%);
  border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); border:1px solid var(--border);
}
.hero h1{margin:0 0 8px 0; font-size:clamp(26px, 4vw, 44px)}
.hero p{color:var(--muted); margin:0 0 14px 0}
.cta{display:flex; gap:12px; flex-wrap:wrap}
.btn{border:0; background:linear-gradient(90deg, var(--accent), var(--primary)); color:white; padding:12px 16px; border-radius:12px; font-weight:700; cursor:pointer;
  box-shadow:0 10px 24px rgba(0,224,255,.25);}
.btn.alt{background:transparent; color:var(--text); border:1px solid var(--border)}
.btn.olive{background:var(--olive)}

.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow: var(--shadow);}
.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:18px}
.footer{opacity:.85; color:var(--muted); font-size:14px; padding:24px 0}

.form{display:grid; gap:12px}
.input{background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:12px; padding:12px 14px; color:var(--text); outline:none;}
.input:focus{border-color: color-mix(in oklab, var(--primary) 35%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent)}

.form .row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.link{color:var(--primary); text-decoration:none}
.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:10px 8px; border-bottom:1px solid var(--border); text-align:left}
.status{font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid var(--border)}
.status.ok{color:#55efc4; border-color: color-mix(in oklab, #55efc4 60%, transparent)}
.status.pending{color:#ffd86b; border-color: color-mix(in oklab, #ffd86b 60%, transparent)}
.status.danger{color:#ff5a7a; border-color: color-mix(in oklab, #ff5a7a 60%, transparent)}

.lang{margin-left:10px}
.lang select{background:transparent; color:var(--muted); border:1px solid var(--border); padding:6px 8px; border-radius:10px}

/* Anti-flicker: hide nav until auth-ui signals ready */
#navHost{ visibility: hidden; }

.kicker{color:var(--accent3); font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:12px}

.hero-img{display:flex; align-items:center; justify-content:center}
.hero-img .poster{width:100%; max-width:520px; border-radius:16px; overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow);}

/* ---- Select (dark) — melhora contraste e seta custom ---- */
select.input,
select#wkStatus {
  --select-bg: #0e1422;
  --select-fg: #e7eefc;
  --select-border: #243149;
  --select-hover: #121a2b;
  --select-active: #1a2740;

  appearance: none;            /* remove UI nativa */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: var(--select-bg);
  color: var(--select-fg);
  border: 1px solid var(--select-border);
  border-radius: 12px;
  padding: 10px 40px 10px 12px; /* espaço pra seta */
  line-height: 1.2;
  cursor: pointer;

  /* seta SVG (usa cor clara) */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a8b2d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

select.input:hover,
select#wkStatus:hover { background-color: var(--select-hover); }

select.input:focus,
select#wkStatus:focus {
  outline: none;
  border-color: #3aa9ff;
  box-shadow: 0 0 0 3px rgba(58,169,255,.25);
}

/* Estilo do popup de opções (suportado nos navegadores modernos) */
select.input option,
select#wkStatus option {
  background-color: var(--select-bg);
  color: var(--select-fg);
}

select.input option:checked,
select#wkStatus option:checked {
  background-color: var(--select-active);
  color: #fff;
}

/* Opções desativadas ficam legíveis */
select.input option:disabled,
select#wkStatus option:disabled { color: #7f8aad; }

/* remove seta antiga no IE/Edge Legacy */
select.input::-ms-expand,
select#wkStatus::-ms-expand { display: none; }

/* ajuda os navegadores a usarem paleta escura nativa */
select, input, textarea, button { color-scheme: dark; }

/* Clickable images (modals, galleries) */
.clickable-img{
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .22s ease, filter .18s ease;
  border-radius: 8px;
}
/* Neon green glow on hover (matches status-ok palette) */
.clickable-img:hover{
  transform: scale(1.02);
  /* base drop shadow + layered neon glow */
  box-shadow:
    0 6px 18px rgba(0,0,0,.35),                 /* depth */
    0 0 0 2px rgba(85,239,196,.95),             /* crisp edge */
    0 0 22px rgba(85,239,196,.55),              /* outer glow */
    0 0 48px rgba(85,239,196,.35);              /* soft halo */
  filter: saturate(1.08) brightness(1.06);
}

@media (max-width: 900px){
  .hero{grid-template-columns: 1fr}
  .grid{grid-template-columns: 1fr}
}