:root {
    --lx-navy: #002B5C;
    --lx-navy-dark: #001a3a;
    --lx-gold: #F5A623;
    --lx-light: #f0f4f8;
}

html {
    font-size: 15px;
}

body {
    background-color: var(--lx-light);
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Imagem de fundo nas páginas internas (tudo excepto home e login) */
body.lx-bg-evento {
    background-image:
        linear-gradient(rgba(240, 244, 248, 0.88), rgba(240, 244, 248, 0.88)),
        url('/images/evento.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Cartaz do evento na homepage */
.lx-event-poster {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1rem;
}

.lx-navbar {
    background-color: var(--lx-navy) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lx-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
}

.lx-navbar .nav-link:hover {
    color: var(--lx-gold) !important;
}

.lx-navbar .navbar-brand {
    font-size: 1.2rem;
}

.lx-footer {
    background-color: var(--lx-navy);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

/* Cards */
.lx-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,43,92,0.08);
    background: #fff;
}

.lx-card .card-header {
    background-color: var(--lx-navy);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn-lx {
    background-color: var(--lx-navy);
    color: white;
    border: none;
    border-radius: 8px;
}

.btn-lx:hover {
    background-color: var(--lx-navy-dark);
    color: white;
}

.btn-lx-gold {
    background-color: var(--lx-gold);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-lx-gold:hover {
    background-color: #e0941a;
    color: #1a1a2e;
}

/* Hero banner */
.lx-hero {
    background: linear-gradient(135deg, var(--lx-navy) 0%, #0a4080 100%);
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

/* Stat boxes */
.lx-stat {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,43,92,0.08);
    text-align: center;
    padding: 1rem;
}

.lx-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lx-navy);
    line-height: 1;
}

.lx-stat .stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.lx-stat-sm {
    padding: 0.5rem 0.75rem;
}

/* 3D nav cards (homepage) */
.lx-nav-card {
    background: linear-gradient(145deg, #1a4a8a 0%, var(--lx-navy) 60%, #001830 100%);
    color: white;
    border-radius: 14px;
    padding: 0.45rem 1rem;
    text-align: center;
    box-shadow:
        0 6px 0 #001020,
        0 8px 16px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(0);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.18);
}

.lx-nav-card:hover {
    transform: translateY(3px);
    box-shadow:
        0 3px 0 #001020,
        0 5px 10px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.lx-nav-card:active {
    transform: translateY(6px);
    box-shadow:
        0 1px 0 #001020,
        0 2px 6px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.lx-nav-card .stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Progress bar */
.lx-progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.lx-progress .progress-bar {
    background-color: var(--lx-navy);
    border-radius: 4px;
}

/* Mobile table rows as cards */
.lx-list-item {
    background: white;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,43,92,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Login page */
.lx-login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--lx-navy) 0%, #0a4080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lx-login-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Badges */
.badge-attending { background-color: #198754; }
.badge-not-attending { background-color: #dc3545; }
.badge-pending { background-color: #6c757d; }

/* Form controls */
.form-control:focus, .form-select:focus {
    border-color: var(--lx-navy);
    box-shadow: 0 0 0 0.2rem rgba(0,43,92,0.15);
}

/* Data grid table */
.lx-table thead tr th {
    background-color: var(--lx-navy) !important;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    border: none;
    white-space: nowrap;
}

.lx-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

.lx-table tbody tr:nth-child(even) td {
    background-color: #f5f5f5;
}

.lx-table tbody td {
    padding: 0.6rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.lx-table tbody tr:hover td {
    background-color: #e8eef5;
}

/* Sortable column headers */
.lx-sortable {
    cursor: pointer;
    user-select: none;
}

.lx-sortable:hover {
    background-color: #1a3a6a !important;
}

.lx-sort-icon {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    opacity: 0.5;
}

.lx-sort-icon.active {
    opacity: 1;
}

.lx-table tfoot td {
    padding: 0.6rem 1rem;
    border-top: 2px solid #dee2e6;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .lx-hero { padding: 0.6rem 1rem; }
    .container-fluid { padding-left: 0.75rem; padding-right: 0.75rem; }
}
