/* ── Vhiri brand variables ────────────────────────────────────────────────── */
:root {
    --brand-blue:      #3B7EC8;   /* Vhiri primary blue */
    --brand-blue-dark: #2B64A8;
    --brand-blue-light:#EBF3FB;
    --brand-green:     #7DC842;   /* Vhiri accent green */
    --brand-green-dark:#5EA830;
    --brand-gray:      #7A7A7A;   /* Vhiri neutral gray */
    --text-primary:    #1A1A2E;
    --text-secondary:  #666666;
    --text-hint:       #AAAAAA;
    --input-bg:        #F8F8F8;
    --input-border:    #E0E0E0;
    --divider:         #EEEEEE;
    --surface:         #FFFFFF;
    --radius-pill:     50px;
    --radius-card:     16px;
    --shadow-card:     0 4px 24px rgba(26,167,236,0.10);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
html  { font-size: 16px; scroll-behavior: smooth; }
body  { color: var(--text-primary); font-family: 'Segoe UI', system-ui, sans-serif; margin-bottom: 0; }

/* ── Brand buttons ───────────────────────────────────────────────────────── */
.btn-brand {
    background-color: var(--brand-blue);
    border-color:     var(--brand-blue);
    color:            #fff;
    border-radius:    var(--radius-pill);
    padding:          .6rem 2rem;
    font-weight:      600;
    transition:       background .2s, transform .1s;
}
.btn-brand:hover   { background-color: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; }
.btn-brand:active  { transform: scale(.97); }
.btn-brand-outline {
    background-color: transparent;
    border:           2px solid var(--brand-blue);
    color:            var(--brand-blue);
    border-radius:    var(--radius-pill);
    padding:          .55rem 2rem;
    font-weight:      600;
    transition:       all .2s;
}
.btn-brand-outline:hover { background-color: var(--brand-blue); color: #fff; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar-secure       { background: var(--brand-blue); }
.navbar-secure .navbar-brand, .navbar-secure .nav-link { color: #fff !important; }
.navbar-secure .nav-link:hover { opacity: .8; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section-white  { background: #fff; padding: 5rem 0; }
.section-light  { background: var(--brand-blue-light); padding: 5rem 0; }
.section-title  { font-size: 1.9rem; font-weight: 700; color: var(--text-primary); }
.section-sub    { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── Feature cards ───────────────────────────────────────────────────────── */
.feature-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,167,236,.15); }
.feature-card h5 { font-weight: 700; color: var(--text-primary); }
.feature-card p  { color: var(--text-secondary); font-size: .95rem; line-height: 1.6; }

/* ── Role cards (secure) ─────────────────────────────────────────────────── */
.role-card {
    border: 2px solid var(--input-border);
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}
.role-card:hover, .role-card:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(26,167,236,.15); color: var(--text-primary); }
.role-card .role-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.role-card h5 { font-weight: 700; }
.role-card p  { color: var(--text-secondary); font-size: .9rem; }
.role-card.role-featured { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.role-card.role-featured p { color: rgba(255,255,255,.85); }
.role-card.role-featured:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; }

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dash-stat-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    border: 1px solid var(--divider);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.dash-stat-card .stat-val { font-size: 2rem; font-weight: 700; color: var(--brand-blue); }
.dash-stat-card .stat-lbl { color: var(--text-secondary); font-size: .9rem; }

/* ── Auth card ───────────────────────────────────────────────────────────── */
.auth-card { max-width: 420px; margin: 0 auto; background: #fff; border-radius: var(--radius-card); padding: 2.5rem; box-shadow: 0 4px 24px rgba(0,0,0,.08); border: 1px solid var(--divider); }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.text-brand { color: var(--brand-blue) !important; }
.bg-brand   { background-color: var(--brand-blue) !important; }
/* The scroll box also holds the tables' visually-hidden labels; unpositioned, they escape it and widen the page on a phone. */
.table-responsive { position: relative; }

/* ── Help page (FAQs and how-to videos) ──────────────────────────────────── */
.help-tabs .nav-link { color: var(--text-secondary); }
.help-tabs .nav-link.active { background: var(--brand-blue); color: #fff; }
.help-faq { border: 1px solid var(--divider); border-radius: 10px; padding: .75rem 1rem; margin-bottom: .5rem; background: #fff; }
.help-faq summary { font-weight: 600; cursor: pointer; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: "+"; color: var(--brand-blue); font-size: 1.2rem; line-height: 1; }
.help-faq[open] summary::after { content: "–"; }
.help-faq-answer { color: var(--text-secondary); white-space: pre-line; padding-top: .5rem; line-height: 1.6; }
.help-video { border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; background: #fff; height: 100%; }
.help-video-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.help-video-placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; background: var(--brand-blue-dark); }
.help-video-link { display: block; }
.help-video-body { padding: .75rem 1rem 1rem; }
