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

:root {
    --primary: #044cac;
    --primary-dark: #033a8c;
    --card: #ffffff;
    --background: #f0f0f0;
    --text: #222;
    --text-light: #555;
    --radius: 8px;
    --error: #e74c3c;
    --success: #0aaa05;
}

body {
    margin: 0;
    padding: 20px;
    background: var(--background);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card-event {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-event h3 {
    color: var(--primary);
    font-size: 20px;
}

.card-event h4.subtitulo {
    font-size: 16px;
    color: var(--text-light);
}

.vol-list {
    background: var(--card);
    padding: 10px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.vol-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: var(--background);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    align-items: center;
    color: var(--text);
}

.no-vol {
    color: var(--text-light);
}

.card-empty {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-ok { background: #0077ff; color: #fff; }
.btn-ok:hover { background: #005bbb; }

.btn-cancel { background: var(--error); color: #fff; }
.btn-cancel:hover { background: #c0392b; }

.btn-primary { background: var(--success); color: #fff; }
.btn-primary:hover { background: #078a03; }

.modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 15px;
}

.modal-box {
    background: var(--primary-dark);
    padding: 22px;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    color:white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-top {
    width:100%;
    max-width:420px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--card);
    padding:12px 16px;
    border-radius:12px;
    margin-bottom:14px;
    box-shadow:0 5px 14px rgba(0,0,0,0.06);
}

.user-name {
    font-size:18px;
    font-weight:700;
    color:var(--text);
}

.logout-btn {
    background: var(--error);
    color:white;
    padding:8px 16px;
    border-radius:var(--radius);
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:background .2s ease, transform .15s ease;
}
.logout-btn:hover { background:#b40e0e; }

.dark-toggle {
    width: 50px;
    background: var(--primary);
    color:white;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
}

.hamburger {
    font-size:28px;
    cursor:pointer;
    padding:6px 12px;
    border-radius:8px;
    background: var(--primary);
    color:white;
    transition: .2s ease;
}
.hamburger:hover {
    background: var(--primary-dark);
    transform:scale(1.05);
}

.side-menu {
    position:fixed;
    top:0;
    left:-260px;
    width:260px;
    height:100%;
    background:var(--card);
    padding:20px;
    transition:.35s ease;
    box-shadow:3px 0 12px rgba(0,0,0,.2);
    display:flex;
    flex-direction:column;
    gap:15px;
    z-index:9998;
}

.side-menu.open { left:0; }

.side-menu a {
    padding:12px;
    background:#002980;
    color:white;
    border-radius:8px;
    text-align:center;
    font-weight:600;
}

.overlay {
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,.45);
    z-index:9997;
}
.overlay.show { display:block; }

@media screen and (max-width: 480px) {
    .vol-list { grid-template-columns: 1fr; }
    .btn { width: 100%; }
}