/* ============================================================
   style.css — Three Wave Eventos
   Design: minimalista profissional | Paleta: preto, verde, branco
   Font: Poppins
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Paleta */
    --color-bg:         #0d0d0d;
    --color-surface:    #161616;
    --color-surface-2:  #1e1e1e;
    --color-surface-3:  #272727;
    --color-border:     #2e2e2e;
    --color-border-light: #3a3a3a;

    --color-green:      #3ddc84;
    --color-green-dark: #2ab56a;
    --color-green-light:#6aeaa4;
    --color-green-muted:#1a3d2b;

    --color-text:       #f0f0f0;
    --color-text-2:     #a0a0a0;
    --color-text-3:     #606060;

    --color-white:      #ffffff;
    --color-danger:     #f05252;
    --color-warning:    #f59e0b;
    --color-info:       #3b82f6;
    --color-success:    #3ddc84;

    /* Sidebar */
    --sidebar-width:    260px;
    --sidebar-bg:       #0a0a0a;
    --topbar-height:    64px;

    /* Typography */
    --font-main:        'Poppins', sans-serif;

    /* Misc */
    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow:     0 2px 12px rgba(0,0,0,.5);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.6);
    --transition: .2s ease;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--color-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-green-light); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-border-light); border-radius: 4px; }

/* ══════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(61,220,132,.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -150px; right: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(61,220,132,.05) 0%, transparent 70%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-waves {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    margin-bottom: .75rem;
}

.login-logo .logo-waves span {
    display: block;
    width: 8px;
    background: var(--color-green);
    border-radius: 4px;
    animation: wavePulse 1.4s ease-in-out infinite;
}
.login-logo .logo-waves span:nth-child(1) { height: 32px; animation-delay: 0s; }
.login-logo .logo-waves span:nth-child(2) { height: 22px; animation-delay: .2s; opacity: .7; }
.login-logo .logo-waves span:nth-child(3) { height: 14px; animation-delay: .4s; opacity: .4; }

@keyframes wavePulse {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(.6); }
}

.login-logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
}
.login-logo h1 span { color: var(--color-green); }
.login-logo p { font-size: .78rem; color: var(--color-text-2); margin-top: .2rem; letter-spacing: .05em; }

.login-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 99;
    backdrop-filter: blur(2px);
}

/* Logo */
.sidebar-logo { padding: 1.5rem 1.25rem 1rem; border-bottom: 1px solid var(--color-border); }
.logo-link { display: flex; align-items: center; gap: .75rem; }
.logo-icon { flex-shrink: 0; }
.logo-title { display: block; font-size: .95rem; font-weight: 700; color: var(--color-white); line-height: 1.1; }
.logo-sub { display: block; font-size: .68rem; color: var(--color-text-2); letter-spacing: .1em; text-transform: uppercase; }

/* User */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-green-muted);
    color: var(--color-green);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    flex-shrink: 0;
    border: 1.5px solid var(--color-green);
}
.user-name { display: block; font-size: .82rem; font-weight: 600; color: var(--color-text); }
.user-role { display: block; font-size: .7rem; color: var(--color-text-2); }

/* Nav */
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem 0; }
.nav-list { display: flex; flex-direction: column; gap: 2px; padding: 0 .75rem; }
.nav-item { }
.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .9rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-2);
    font-size: .85rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-link:hover { background: var(--color-surface-2); color: var(--color-text); }
.nav-link.active { background: var(--color-green-muted); color: var(--color-green); }
.nav-indicator {
    position: absolute;
    right: .75rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-green);
}

/* Footer */
.sidebar-footer { padding: .75rem; border-top: 1px solid var(--color-border); }
.logout-link { color: var(--color-text-3) !important; }
.logout-link:hover { background: rgba(240,82,82,.1) !important; color: var(--color-danger) !important; }

/* ══════════════════════════════════════════════
   ADMIN LAYOUT
══════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-2);
    cursor: pointer;
    padding: .4rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}
.menu-toggle:hover { color: var(--color-text); }
.menu-toggle svg { width: 22px; height: 22px; }

.page-title-bar h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}
.page-title-bar .breadcrumb {
    font-size: .72rem;
    color: var(--color-text-2);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: 1px;
}
.breadcrumb-sep { color: var(--color-text-3); }

/* Page Content */
.page-content { padding: 1.5rem; flex: 1; }

/* ── Card ── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.card-header h2 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.card-header h2 svg { color: var(--color-green); width: 18px; height: 18px; }
.card-body { padding: 1.25rem; }

/* ── Stats Cards ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--color-green); }
.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-green-muted);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; color: var(--color-green); }
.stat-info { min-width: 0; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--color-white); line-height: 1; }
.stat-label { font-size: .72rem; color: var(--color-text-2); margin-top: .2rem; }

/* ── Forms ── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-text-2);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.form-control {
    width: 100%;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .6rem .85rem;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: .88rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(61,220,132,.12);
}
.form-control::placeholder { color: var(--color-text-3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: .72rem; color: var(--color-text-3); }
.form-error { font-size: .72rem; color: var(--color-danger); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-sm { padding: .38rem .8rem; font-size: .78rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: .9rem; }
.btn-icon { padding: .5rem; }

.btn-primary { background: var(--color-green); color: #0a1f13; border-color: var(--color-green); }
.btn-primary:hover { background: var(--color-green-light); border-color: var(--color-green-light); color: #0a1f13; }

.btn-secondary { background: transparent; color: var(--color-text-2); border-color: var(--color-border-light); }
.btn-secondary:hover { background: var(--color-surface-3); color: var(--color-text); border-color: var(--color-text-3); }

.btn-danger { background: transparent; color: var(--color-danger); border-color: rgba(240,82,82,.3); }
.btn-danger:hover { background: rgba(240,82,82,.1); }

.btn-ghost { background: transparent; color: var(--color-text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--color-surface-3); color: var(--color-text); }

.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}
.table th {
    padding: .7rem 1rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-2);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.table td {
    padding: .85rem 1rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--color-surface-2); }
.table-actions { display: flex; align-items: center; gap: .35rem; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.badge-success { background: rgba(61,220,132,.15); color: var(--color-green); }
.badge-warning { background: rgba(245,158,11,.15); color: #f59e0b; }
.badge-danger  { background: rgba(240,82,82,.15);  color: var(--color-danger); }
.badge-info    { background: rgba(59,130,246,.15); color: #3b82f6; }
.badge-primary { background: rgba(61,220,132,.15); color: var(--color-green); }
.badge-secondary { background: var(--color-surface-3); color: var(--color-text-2); }

/* ── Alerts ── */
.alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert span { flex: 1; }
.alert-close { background: none; border: none; cursor: pointer; color: inherit; padding: .2rem; border-radius: 4px; opacity: .7; }
.alert-close:hover { opacity: 1; }
.alert-close svg { width: 16px; height: 16px; }

.alert-success { background: rgba(61,220,132,.1); border-color: rgba(61,220,132,.3); color: var(--color-green); }
.alert-error   { background: rgba(240,82,82,.1);  border-color: rgba(240,82,82,.3);  color: var(--color-danger); }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #f59e0b; }
.alert-info    { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #3b82f6; }

/* ── Toolbar (busca + botões) ── */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.toolbar-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}
.toolbar-search .search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-3);
    pointer-events: none;
}
.toolbar-search .search-icon svg { width: 15px; height: 15px; }
.toolbar-search input {
    width: 100%;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .55rem .85rem .55rem 2.2rem;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: .84rem;
    outline: none;
    transition: border-color var(--transition);
}
.toolbar-search input:focus { border-color: var(--color-green); }
.toolbar-search input::placeholder { color: var(--color-text-3); }
.toolbar-actions { display: flex; align-items: center; gap: .5rem; }

/* ── Pagination ── */
.pagination-nav { margin-top: 1rem; display: flex; justify-content: center; }
.pagination { display: flex; gap: .3rem; }
.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 .5rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-2);
    font-size: .8rem;
    transition: all var(--transition);
}
.page-item .page-link:hover { border-color: var(--color-green); color: var(--color-green); }
.page-item.active .page-link { background: var(--color-green); border-color: var(--color-green); color: #0a1f13; font-weight: 700; }

/* ── Modal ── */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn .2s ease;
}
.modal-lg { max-width: 860px; }
@keyframes modalIn {
    from { opacity: 0; transform: scale(.96) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: .95rem; font-weight: 600; color: var(--color-text); display: flex; align-items: center; gap: .5rem; }
.modal-header h3 svg { color: var(--color-green); width: 18px; height: 18px; }
.modal-close { background: none; border: none; color: var(--color-text-2); cursor: pointer; padding: .3rem; border-radius: 4px; transition: color var(--transition); }
.modal-close:hover { color: var(--color-text); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 1.25rem; overflow-y: auto; }
.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

/* ── Calendar-style event blocks ── */
.event-status-line {
    width: 3px;
    border-radius: 2px;
    align-self: stretch;
    flex-shrink: 0;
}
.event-row { display: flex; align-items: center; gap: .75rem; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-2);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: .3; }
.empty-state p { font-size: .9rem; }

/* ══════════════════════════════════════════════
   BOTTOM NAV BAR — Mobile PWA
══════════════════════════════════════════════ */

/* Desktop: esconde TUDO relacionado ao mobile */
.bottom-nav,
.more-drawer,
.more-drawer-overlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {

    /* ── Reativa bottom nav só em mobile ── */
    .bottom-nav {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 64px;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        z-index: 200;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0,0,0,.4);
    }
    .more-drawer,
    .more-drawer-overlay {
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* ── Bottom Nav items ── */
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--color-text-3);
        text-decoration: none;
        font-size: .6rem;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
        padding: 6px 4px;
        transition: color var(--transition);
        cursor: pointer;
        background: none;
        border: none;
        font-family: var(--font-main);
        position: relative;
    }
    .bottom-nav-item svg { width: 22px; height: 22px; stroke-width: 1.6; }
    .bottom-nav-item:hover, .bottom-nav-item.active { color: var(--color-green); }
    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0; left: 20%; right: 20%;
        height: 2px;
        background: var(--color-green);
        border-radius: 0 0 4px 4px;
    }

    /* ── Esconde sidebar em mobile ── */
    .sidebar { display: none !important; }
    .sidebar-overlay { display: none !important; }
    .menu-toggle { display: none !important; }

    /* ── Topbar mobile simplificada ── */
    .topbar { padding: 0 1rem; height: 56px; }
    .topbar-left { gap: .5rem; }
    .page-title-bar h1 { font-size: .92rem; }
    .page-title-bar .breadcrumb { display: none; }

    /* ── Conteúdo principal ── */
    .main-content { margin-left: 0 !important; padding-bottom: 72px; }
    .page-content { padding: .875rem; }

    /* ── Drawer "Mais" ── */
    .more-drawer-overlay {
        display: none !important;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.6);
        z-index: 190;
        backdrop-filter: blur(2px);
    }
    .more-drawer-overlay.open { display: block !important; }
    .more-drawer {
        display: block !important;
        position: fixed;
        bottom: 64px; left: 0; right: 0;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        z-index: 195;
        padding: 1rem;
        transform: translateY(110%);
        transition: transform .25s ease;
        box-shadow: 0 -8px 32px rgba(0,0,0,.5);
    }
    .more-drawer.open { transform: translateY(0) !important; }
    .more-drawer-handle {
        width: 36px; height: 4px;
        background: var(--color-border-light);
        border-radius: 2px;
        margin: 0 auto .875rem;
    }
    .more-drawer-title {
        font-size: .7rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .1em; color: var(--color-text-3);
        margin-bottom: .625rem; padding: 0 .25rem;
    }
    .more-drawer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: .5rem; margin-bottom: .5rem;
    }
    .more-drawer-item {
        display: flex; flex-direction: column; align-items: center;
        gap: 5px; padding: .75rem .25rem;
        border-radius: var(--radius-sm);
        color: var(--color-text-2); text-decoration: none;
        font-size: .65rem; font-weight: 600; text-transform: uppercase;
        letter-spacing: .03em; text-align: center;
        transition: all var(--transition); background: var(--color-surface-2);
    }
    .more-drawer-item svg { width: 22px; height: 22px; color: var(--color-green); }
    .more-drawer-item:hover, .more-drawer-item:active { background: var(--color-green-muted); color: var(--color-green); }
    .more-drawer-logout {
        display: flex; align-items: center; gap: .75rem;
        padding: .5rem; border-radius: var(--radius-sm);
        color: var(--color-text-3); text-decoration: none;
        transition: all var(--transition);
    }
    .more-drawer-logout:hover { color: var(--color-danger); }

    /* ── Cards e layout ── */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: .625rem; }
    .stat-card { padding: .875rem; }
    .stat-value { font-size: 1.2rem !important; }
    .card-header { padding: .875rem 1rem; }
    .card-header h2 { font-size: .88rem; }

    /* ── Tabelas ── */
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { padding: .6rem .75rem; font-size: .78rem; white-space: nowrap; }

    /* ── Botões maiores para toque ── */
    .btn { padding: .6rem 1rem; font-size: .82rem; min-height: 40px; }
    .btn-sm { padding: .45rem .75rem; font-size: .76rem; min-height: 36px; }
    .btn-icon { min-width: 40px; min-height: 40px; justify-content: center; }

    /* ── Formulários ── */
    .form-grid { grid-template-columns: 1fr !important; }
    .form-control { font-size: 16px !important; }

    /* ── Modais ── */
    .modal { max-width: 100% !important; border-radius: var(--radius) var(--radius) 0 0 !important; }
    .modal-backdrop { align-items: flex-end !important; padding: 0 !important; }

    /* ── Toolbar ── */
    .toolbar { flex-direction: column; gap: .625rem; }
    .toolbar-search { max-width: 100%; }
    .toolbar-actions { flex-wrap: wrap; }

    /* ── Badge ── */
    .badge { font-size: .65rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .topbar-right .btn span { display: none; } /* Esconde texto dos botões no topbar em telas pequenas */
    .topbar-right .btn { padding: .5rem; }
    .more-drawer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Utilities ── */
.text-green   { color: var(--color-green); }
.text-muted   { color: var(--color-text-2); }
.text-danger  { color: var(--color-danger); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-1        { gap: .5rem; }
.gap-2        { gap: 1rem; }
.mb-1         { margin-bottom: .5rem; }
.mb-2         { margin-bottom: 1rem; }
.mb-3         { margin-bottom: 1.5rem; }
.mt-1         { margin-top: .5rem; }
.mt-2         { margin-top: 1rem; }
.hidden       { display: none !important; }

/* flatpickr dark overrides */
.flatpickr-calendar {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-lg) !important;
}
.flatpickr-day { color: var(--color-text) !important; }
.flatpickr-day.selected { background: var(--color-green) !important; border-color: var(--color-green) !important; color: #0a1f13 !important; }
.flatpickr-day:hover { background: var(--color-surface-3) !important; }
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday { background: var(--color-surface-2) !important; color: var(--color-text-2) !important; }
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months { color: var(--color-text) !important; background: transparent !important; }
.flatpickr-day.flatpickr-disabled { color: var(--color-text-3) !important; }
