/* ============================================================
   TCV Américano — Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --tcv:        #0d6e3f;
    --tcv-dk:     #094f2d;
    --tcv-lt:     #e8f5ee;
    --text:       #1a1a2e;
    --text-soft:  #4a5568;
    --muted:      #9aa3b0;
    --border:     #e4e7ec;
    --bg:         #f7f8fa;
    --white:      #ffffff;
    --radius:     10px;
    --shadow:     0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
    --shadow-lg:  0 4px 6px rgba(0,0,0,.06), 0 10px 28px rgba(0,0,0,.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
}

/* ── Admin nav ──────────────────────────────────────────────── */

.admin-nav-bg  { background: #094f2d; }
.tcv-header-bg { background: linear-gradient(135deg, #0d6e3f 0%, #094f2d 100%); }

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-size: .875rem;
}

/* ── Admin hamburger ────────────────────────────────────────── */
.admin-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 7px;
    padding: .35rem .5rem;
    cursor: pointer;
}
.admin-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.admin-hamburger:hover { background: rgba(255,255,255,.25); }

/* ── Admin drawer ───────────────────────────────────────────── */
.admin-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: #094f2d;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}
.admin-drawer--open { transform: translateX(0); }

.admin-drawer__inner {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: .4rem;
    flex: 1;
    overflow-y: auto;
}

.admin-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    margin-bottom: .5rem;
}

.admin-drawer__close {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
}
.admin-drawer__close:hover { background: rgba(255,255,255,.28); }

.admin-drawer__item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .65rem .85rem;
    border-radius: 8px;
    transition: background .15s;
}
.admin-drawer__item:hover           { background: rgba(255,255,255,.12); color: #fff; }
.admin-drawer__item--active         { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }
.admin-drawer__item--danger         { color: #fca5a5; }
.admin-drawer__item--danger:hover   { background: rgba(239,68,68,.2); color: #fca5a5; }

.admin-drawer__sep {
    height: 1px;
    background: rgba(255,255,255,.15);
    margin: .4rem 0;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.admin-overlay--show { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) {
    .admin-nav-links  { display: none !important; }
    .admin-nav-extra  { display: none !important; }
    .admin-nav-logout { display: none !important; }
    .admin-hamburger  { display: flex !important; }
}

/* ── Cards ──────────────────────────────────────────────────── */
.admin-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* ── Status badges ──────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 700;
}

/* ── Jauge participants ─────────────────────────────────────── */
.spots-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
}
.spots-bar__fill { height: 100%; border-radius: 3px; transition: width .3s; }
.spots-bar__fill--ok     { background: var(--tcv); }
.spots-bar__fill--almost { background: #f59e0b; }
.spots-bar__fill--full   { background: #dc2626; }

/* ── Tailwind focus overrides ───────────────────────────────── */
.focus\:border-tcv:focus { border-color: #0d6e3f; }
