:root {
    --sidebar-width: 250px;
    --sidebar-bg: #1a2035;
    --sidebar-text: #c8d0e0;
    --sidebar-active-bg: #0d6efd;
    --sidebar-active-text: #fff;
    --sidebar-hover-bg: rgba(255,255,255,0.08);
    --topbar-height: 54px;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: width .25s ease;
    flex-shrink: 0;
}

.sidebar-header {
    min-height: var(--topbar-height);
    background: rgba(0,0,0,.2);
}

.sidebar-club-name {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}

.sidebar-escudo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.sidebar-icon-placeholder {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #6c8ebf;
}

.sidebar-divider {
    border-color: rgba(255,255,255,.1);
    margin: 0;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    border-radius: 6px;
    padding: .5rem .75rem;
    font-size: .875rem;
    transition: background .15s;
}

.sidebar .nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: #fff;
}

.sidebar .nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sidebar-footer {
    background: rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.1);
}

/* ── Topbar ── */
.topbar {
    height: var(--topbar-height);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ── Cards ── */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .15s, box-shadow .15s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ── Tables ── */
.table th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    border-top: none;
}

.table-hover tbody tr:hover {
    background: rgba(13,110,253,.04);
}

/* ── Badges estado pago ── */
.badge-pendiente  { background: #ffc107; color: #000; }
.badge-pagado     { background: #198754; color: #fff; }
.badge-exento     { background: #6c757d; color: #fff; }

/* ── Asistencia ── */
.btn-asistencia {
    min-width: 110px;
}

/* ── Login page ── */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2035 0%, #2d4a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* ── Mobile ── */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1045;
        transform: translateX(-100%);
        min-height: 100vh;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    #page-content {
        width: 100%;
    }
}
