/* ═══════════════════════════════════════════════════════════════════════════
   URAEUN — Secure Portal Branding (Dark Navy, Gold, Grid)
   Matches uraeun.com website theme
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --navy:       #080f1e;
  --navy-mid:   #0d1a30;
  --navy-light: #132240;
  --gold:       #C9A84C;
  --gold-light: #e0c06a;
  --gold-dim:   #8a7030;
  --cream:      #f0e8d8;
  --text:       #b8c4d4;
  --text-dim:   #5a6a80;
  --border:     rgba(201,168,76,0.18);
  --border-hot: rgba(201,168,76,0.55);
}

/* ── GLOBAL ─────────────────────────────────────────────────────────────── */
body, html {
  height: 100%;
  background-color: var(--navy) !important;
  color: var(--text) !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 300 !important;
}

/* Grid background overlay */
body::before {
  content: '' !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  background-image: linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px) !important;
  background-size: 60px 60px !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Top glow */
body::after {
  content: '' !important;
  display: block !important;
  position: fixed !important;
  top: -20% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 900px !important;
  height: 600px !important;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand, .card-title {
  font-family: 'Cormorant Garamond', serif !important;
  color: var(--cream) !important;
  font-weight: 400 !important;
}

*, p, span, div, label, a {
  color: var(--text) !important;
}

/* ── LOGIN PAGE ─────────────────────────────────────────────────────────── */
#login {
  background: var(--navy) !important;
}

#login form {
  background: var(--navy-mid) !important;
  border: 1px solid var(--border-hot) !important;
  border-radius: 4px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px) !important;
  position: relative;
}

#login form::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) !important;
}

#login h1 {
  color: var(--cream) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
}

#login input[type="text"],
#login input[type="password"] {
  background: rgba(8,15,30,0.6) !important;
  border: 1px solid var(--border) !important;
  color: var(--cream) !important;
  border-radius: 2px !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 300 !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus {
  border-color: var(--gold-dim) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
  outline: none !important;
}

#login input::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
}

#login input[type="submit"],
#login button[type="submit"],
#login .button {
  background: rgba(201,168,76,0.1) !important;
  border: 1px solid var(--border-hot) !important;
  color: var(--gold) !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
}

#login input[type="submit"]:hover,
#login button[type="submit"]:hover,
#login .button:hover {
  background: rgba(201,168,76,0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
}

.login .card input[type="submit"],
.login .card button[type="submit"],
.login .card .button {
  background: rgba(201,168,76,0.1) !important;
  border: 1px solid var(--border-hot) !important;
  color: var(--gold) !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
}

.login .card input[type="submit"]:hover,
.login .card button[type="submit"]:hover,
.login .card .button:hover {
  background: rgba(201,168,76,0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
}

/* ── HEADER / TOP BAR ───────────────────────────────────────────────────── */
header, #header, .header {
  background: rgba(8,15,30,0.95) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(10px) !important;
}

header *, #header *, .header * {
  color: var(--text) !important;
}

header a:hover *, header button:hover,
.header a:hover *, .header button:hover {
  color: var(--gold) !important;
}

/* Brand/title in header */
header .brand, #header .brand, .header .brand {
  font-family: 'Cormorant Garamond', serif !important;
  color: var(--gold) !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
}

/* ── SIDEBAR ────────────────────────────────────────────────────────────── */
#sidebar, .sidebar, nav:not(header nav) {
  background: var(--navy-mid) !important;
  border-right: 1px solid var(--border) !important;
}

#sidebar *, .sidebar * {
  color: var(--text) !important;
}

#sidebar a, .sidebar a {
  transition: all 0.15s !important;
  border-left: 2px solid transparent !important;
}

#sidebar a:hover, .sidebar a:hover {
  background: rgba(201,168,76,0.08) !important;
  color: var(--gold-light) !important;
  border-left-color: transparent !important;
}

#sidebar a.active, .sidebar a.active {
  background: rgba(201,168,76,0.1) !important;
  color: var(--gold-light) !important;
  border-left-color: var(--gold) !important;
}

/* ── MAIN CONTENT ───────────────────────────────────────────────────────── */
#main, main, .main {
  background: var(--navy) !important;
}

/* ── CARDS & DIALOGS ────────────────────────────────────────────────────── */
.card, .card-content, .prompt .card, .dashboard .card, .settings .card {
  background: var(--navy-mid) !important;
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  backdrop-filter: none !important;
}

/* ── FILE LISTING ───────────────────────────────────────────────────────── */
.listing .item {
  border-bottom: 1px solid rgba(201,168,76,0.06) !important;
  transition: background 0.12s !important;
}

.listing .item:hover {
  background: rgba(201,168,76,0.05) !important;
}

.listing .item .name {
  color: var(--cream) !important;
}

.listing .item .size, .listing .item .modified {
  color: var(--text-dim) !important;
}

/* ── BREADCRUMBS ────────────────────────────────────────────────────────── */
.breadcrumbs, .breadcrumbs * {
  font-family: 'Jost', sans-serif !important;
}

.breadcrumbs a, .breadcrumbs span {
  color: var(--text-dim) !important;
}

.breadcrumbs a:hover {
  color: var(--gold) !important;
}

/* ── INPUTS ─────────────────────────────────────────────────────────────── */
input, input[type="text"], input[type="password"], input[type="number"], select, textarea {
  background: rgba(8,15,30,0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  color: var(--cream) !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 300 !important;
  outline: none !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold-dim) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12) !important;
}

input::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
input[type="submit"], button[type="submit"], .button, #upload, .upload-button,
button, .btn {
  background: rgba(201,168,76,0.08) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-size: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

input[type="submit"]:hover, button[type="submit"]:hover, .button:hover,
#upload:hover, button:hover, .btn:hover {
  background: rgba(201,168,76,0.18) !important;
  border-color: var(--gold-dim) !important;
  color: var(--gold) !important;
}

.button--flat, button.action {
  background: transparent !important;
  border: none !important;
  color: var(--text-dim) !important;
}

.button--flat:hover, button.action:hover {
  color: var(--gold) !important;
  background: rgba(201,168,76,0.08) !important;
}

/* ── TABS ───────────────────────────────────────────────────────────────── */
.tabs, .tabs div, .nav-tabs a {
  background: var(--navy-mid) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

.tabs .active, .nav-tabs a.active {
  background: var(--navy-light) !important;
  color: var(--gold) !important;
  border-bottom-color: var(--gold) !important;
}

/* ── CHECKBOXES & TOGGLES ───────────────────────────────────────────────── */
.checkbox, input[type="checkbox"] {
  accent-color: var(--gold) !important;
}

/* ── PROGRESS / USAGE BAR ───────────────────────────────────────────────── */
.progress-bar, .usage .bar {
  background: var(--navy-light) !important;
}

.progress-bar .progress, .usage .bar .used {
  background: var(--gold) !important;
}

/* ── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── SELECTION ──────────────────────────────────────────────────────────── */
::selection {
  background: rgba(201,168,76,0.3) !important;
  color: var(--cream) !important;
}

/* ── LINKS ──────────────────────────────────────────────────────────────── */
a { color: var(--gold-dim) !important; }
a:hover { color: var(--gold) !important; }

/* ── OVERLAY / PROMPTS ──────────────────────────────────────────────────── */
.overlay {
  background: rgba(8,15,30,0.85) !important;
  backdrop-filter: blur(4px) !important;
}

.prompt .card, .prompt .card * {
  color: var(--text) !important;
}

.prompt .card h3 {
  color: var(--cream) !important;
}