/* ---------- FLUVIUS DESIGN SYSTEM ---------- */
:root{
  --brand:#003366;
  --brand-light:#0059a6;
  --brand-dark:#002244;
  --accent:#9ED200;
  --accent-dark:#7AA300;
  --muted:#596271;
  --border:#e1e4ea;
  --page-bg:#f5f7fa;
  --card:#ffffff;
  --radius:8px;
  --card-padding:20px;
  --max-width:1100px;
  --shadow: rgba(0,0,0,0.04);
}

/* ---------- BASE ---------- */
* { box-sizing:border-box }

html,body{
  height:100%;
  margin:0;
  font-family:'Noto Sans', Roboto, sans-serif;
  background: url("../img/backgr-check.png") no-repeat center center/cover;
  color:#1E2230;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit }
img{ max-width:100%; height:auto; display:block }

/* ---------- TOPBAR ---------- */
.fluvius-topbar{
  width: 100%;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-light));
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 60;
}

.fluvius-topbar-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.fluvius-brand { display:flex; gap:12px; align-items:center }
.fluvius-topbar-logo{ height:40px }
.fluvius-topbar-title{ color:#fff; font-weight:700; font-size:1rem }
.fluvius-topbar-sub{ color:rgba(255,255,255,0.9); font-size:0.85rem }

/* ---------- LAYOUT ---------- */
.page {
  max-width:var(--max-width);
  margin:22px auto;
  padding:20px;
  display:grid;
  grid-template-columns: 1fr 380px;
  gap:24px;
}

header.site { grid-column:1/-1; display:flex; align-items:center; justify-content:center }

/* Cards */
.main {
  background:var(--card);
  border-radius:var(--radius);
  padding:var(--card-padding);
  border:1px solid var(--border);
  box-shadow:0 6px 18px var(--shadow);
}

.main h1 {
  font-size:1.5rem;
  color:var(--brand);
  margin:0 0 10px;
  font-weight:700;
}

form { margin-top:8px }

label{
  display:block;
  font-weight:600;
  color:var(--brand);
  margin:12px 0 6px;
}

input[type=text],input[type=email],input[type=date],select,textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:6px;
  font-size:1rem;
  background:#fff;
  color:#1b2430;
  transition: .18s;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(158,210,0,0.10);
  transform:translateY(-1px);
}

.row { display:flex; gap:12px }
.row .col { flex:1 }

.hint{ font-size:0.86rem; color:var(--muted); margin-top:6px }
.field-error{ color:#c62828; font-size:0.85rem; margin-top:6px; display:none }

.actions { display:flex; gap:10px; margin-top:18px; align-items:center }
.btn { padding:12px 18px; border-radius:8px; cursor:pointer; font-weight:700; border:none }
.btn-primary {
  background:linear-gradient(180deg,var(--accent),var(--accent-dark));
  color:var(--brand-dark);
  box-shadow:0 8px 20px rgba(122,163,0,0.12);
}
.btn-primary:active{ transform:translateY(1px) }

.btn-ghost { background:transparent; color:var(--brand); text-decoration:underline }

.btn[disabled]{ opacity:.6; cursor:not-allowed }

/* Aside */
.aside {
  background:var(--card);
  border-radius:var(--radius);
  padding:var(--card-padding);
  border:1px solid var(--border);
  box-shadow:0 6px 18px var(--shadow);
  height:fit-content;
  position:sticky;
  top:20px;
}

.info-box{
  background:#fff;
  border-left:4px solid var(--brand);
  padding:14px;
  border-radius:6px;
  margin-bottom:14px;
  border:1px solid rgba(0,0,0,0.02);
}

.info-box.warning{
  border-left-color:#ffc107;
  background:#fff9e6;
}

.info-box h3{
  margin:0 0 6px;
  font-size:1rem;
  color:var(--brand);
  font-weight:700;
}

.info-box p{ margin:0; color:#213244; font-size:0.95rem; line-height:1.45 }

.info-list{ margin-top:10px; padding-left:18px }
.info-list li{ margin:8px 0; color:#213244 }

footer.site {
  grid-column:1/-1;
  text-align:center;
  color:var(--muted);
  margin-top:8px;
  font-size:0.9rem;
}

/* Responsive */
@media (max-width:980px){
  .page{ padding:12px; grid-template-columns:1fr }
  .aside{ position:relative; top:auto; order:-1 }
}

@media (max-width:480px){
  .main{ padding:16px }
  .btn{ width:100% }
  .actions{ flex-direction:column-reverse; align-items:stretch }
  .row{ flex-direction:column }
}

/* ================================================================= */
/* ================ ✨ FULLSCREEN PREMIUM LOADER ✨ ================== */
/* ================================================================= */

#fullLoader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeInBg 0.4s ease forwards;
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loader-center {
    text-align: center;
    animation: fadeIn 0.6s ease forwards;
}

.full-logo {
    width: 170px;
    filter: drop-shadow(0 0 20px rgba(0,161,228,0.55));
    animation: pulseGlow 1.8s ease-in-out infinite;
    opacity: 0.95;
}

@keyframes pulseGlow {
    0% { transform: scale(0.88); filter: drop-shadow(0 0 3px #00a1e4); }
    50% { transform: scale(1); filter: drop-shadow(0 0 22px #00a1e4); }
    100% { transform: scale(0.88); filter: drop-shadow(0 0 3px #00a1e4); }
}

.loader-text-big {
    margin-top: 26px;
    font-size: 20px;
    color: var(--brand-dark);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================= */
/* ========================= EIND LOADER ============================ */
/* ================================================================= */
