/* ===========================
   Root Variables & Base — SimpleFLO Theme
   =========================== */
:root {
  --bg: #f8fafc;          /* light neutral background */
  --bg2: #ffffff;         /* panels/cards */
  --ink: #1e293b;         /* main text (slate-900) */
  --muted: #64748b;       /* muted text (slate-500) */
  --brand: #0ea5e9;       /* SimpleFLO teal-blue */
  --brand2: #06b6d4;      /* lighter accent teal */
  --accent: #f97316;      /* orange accent */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Arial;
}

/* Links */
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; opacity: .9; }

/* ===========================
   Header & Navigation
   =========================== */
header {
  background: var(--bg2);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--brand);
}
.brand img { height: 36px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
}
.site-nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pwaInstallBtn {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  color: var(--ink);
}

/* ===========================
   Buttons
   =========================== */
button,
.btn {
  cursor: pointer;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg,var(--brand),var(--brand2));
  color: #fff;
  font-weight: 600;
  line-height: 1;
  transition: transform .15s ease, opacity .2s ease;
}
button:hover,
.btn:hover {
  opacity: .95;
  transform: translateY(-1px);
}
.site-nav .btn.active {
  border-bottom: 2px solid var(--accent);
}

/* ===========================
   Forms & Inputs
   =========================== */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=date],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(14,165,233,0.15);
  outline: none;
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--ink) !important;
}


/* ===========================
   Main Layout
   =========================== */
main { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

h1 { font-size: clamp(32px,6vw,56px); color: var(--brand); }
h2 { font-size: clamp(24px,4vw,36px); margin-top: 60px; color: var(--ink); }
p { max-width: 780px; margin: 0 auto; }

/* Cards */
.card {
  background: var(--bg2);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.card h3 { margin-top: 0; color: var(--ink); }

/* ===========================
   Tables
   =========================== */
.table-wrap { max-width: 100%; overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.table th { color: var(--muted); text-align: left; }
.force-wrap { word-break: break-word; overflow-wrap: anywhere; }

/* ===========================
   Footer
   =========================== */
footer {
  padding: 40px 20px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
}

/* ===========================
   Helpers
   =========================== */
.dyor {
  font-weight: bold;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===========================
   Dropdown Menu (Allocations)
   =========================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 999;
  overflow: hidden;
}

.dropdown-content a {
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: var(--brand);
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content.show { display:block; }

footer {
  padding: 40px 20px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
footer a {
  color: var(--brand);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
/* ===========================
   Auth Pages (login, forgot, reset)
   =========================== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg);
  padding: 20px;
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
}

.auth-card {
  background: var(--bg2);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  animation: fadeInUp .4s ease;
}

.auth-card h1 {
  color: var(--brand);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1rem;
}

.auth-card img.logo {
  display: block;
  width: 160px;
  margin: 0 auto 20px;
}

.auth-card p.error {
  color: #e11d48;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-footer {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 24px;
}

.auth-footer a {
  color: var(--brand);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* subtle entry animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

