/* ═══════════════════════════════════════════
   THEME SYSTEM — Trend Panel
   Inclua este arquivo em todas as páginas
   ═══════════════════════════════════════════ */

/* ── Dark (padrão) ── */
:root,
[data-theme="dark"] {
    --bg: #0b0f1a;
    --surface: #111827;
    --surface2: #1a2235;
    --accent: #00e5ff;
    --accent2: #7c3aed;
    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --text: #e2e8f0;
    --muted: #64748b;
    --border: rgba(255,255,255,0.06);
    --border-focus: rgba(0,229,255,0.4);
    --input-bg: #0d1421;
    --glow: 0 0 40px rgba(0,229,255,0.12);
    --shadow: 0 32px 80px rgba(0,0,0,0.5);
    --modal-bg: rgba(0,0,0,0.65);
}

/* ── Light ── */
[data-theme="light"] {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --surface2: #f1f5f9;
    --accent: #0891b2;
    --accent2: #7c3aed;
    --green: #059669;
    --red: #dc2626;
    --orange: #d97706;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(0,0,0,0.08);
    --border-focus: rgba(8,145,178,0.4);
    --input-bg: #f8fafc;
    --glow: 0 0 40px rgba(8,145,178,0.10);
    --shadow: 0 16px 48px rgba(0,0,0,0.12);
    --modal-bg: rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════
   THEME COLORS (Ocean, Neon, Ruby, Emerald,
   Amber, Rose, Sky, Midnight, Sunset, Mint)
   ═══════════════════════════════════════════ */

/* Neon (Roxo/Rosa) */
[data-theme-color="neon"] {
    --accent: #f0abfc;
    --accent2: #d946ef;
    --border-focus: rgba(217,70,239,0.4);
    --glow: 0 0 40px rgba(217,70,239,0.12);
}
[data-theme="light"][data-theme-color="neon"] {
    --accent: #c026d3;
    --border-focus: rgba(192,38,211,0.4);
    --glow: 0 0 40px rgba(192,38,211,0.10);
}

/* Ruby (Vermelho/Carmim) */
[data-theme-color="ruby"] {
    --accent: #fb7185;
    --accent2: #e11d48;
    --border-focus: rgba(225,29,72,0.4);
    --glow: 0 0 40px rgba(225,29,72,0.12);
}
[data-theme="light"][data-theme-color="ruby"] {
    --accent: #e11d48;
    --border-focus: rgba(225,29,72,0.4);
    --glow: 0 0 40px rgba(225,29,72,0.10);
}

/* Emerald (Verde Esmeralda) */
[data-theme-color="emerald"] {
    --accent: #34d399;
    --accent2: #059669;
    --border-focus: rgba(5,150,105,0.4);
    --glow: 0 0 40px rgba(5,150,105,0.12);
}
[data-theme="light"][data-theme-color="emerald"] {
    --accent: #059669;
    --border-focus: rgba(5,150,105,0.4);
    --glow: 0 0 40px rgba(5,150,105,0.10);
}

/* Amber (Dourado/Âmbar) */
[data-theme-color="amber"] {
    --accent: #fbbf24;
    --accent2: #d97706;
    --border-focus: rgba(251,191,36,0.4);
    --glow: 0 0 40px rgba(251,191,36,0.12);
}
[data-theme="light"][data-theme-color="amber"] {
    --accent: #d97706;
    --border-focus: rgba(217,119,6,0.4);
    --glow: 0 0 40px rgba(217,119,6,0.10);
}

/* Rose (Rosa/Rosado) */
[data-theme-color="rose"] {
    --accent: #f472b6;
    --accent2: #db2777;
    --border-focus: rgba(244,114,182,0.4);
    --glow: 0 0 40px rgba(244,114,182,0.12);
}
[data-theme="light"][data-theme-color="rose"] {
    --accent: #db2777;
    --border-focus: rgba(219,39,119,0.4);
    --glow: 0 0 40px rgba(219,39,119,0.10);
}

/* Sky (Azul Celeste) */
[data-theme-color="sky"] {
    --accent: #38bdf8;
    --accent2: #0284c7;
    --border-focus: rgba(56,189,248,0.4);
    --glow: 0 0 40px rgba(56,189,248,0.12);
}
[data-theme="light"][data-theme-color="sky"] {
    --accent: #0284c7;
    --border-focus: rgba(2,132,199,0.4);
    --glow: 0 0 40px rgba(2,132,199,0.10);
}

/* Midnight (Índigo/Roxo Profundo) */
[data-theme-color="midnight"] {
    --accent: #818cf8;
    --accent2: #4f46e5;
    --border-focus: rgba(129,140,248,0.4);
    --glow: 0 0 40px rgba(129,140,248,0.12);
}
[data-theme="light"][data-theme-color="midnight"] {
    --accent: #4f46e5;
    --border-focus: rgba(79,70,229,0.4);
    --glow: 0 0 40px rgba(79,70,229,0.10);
}

/* Sunset (Laranja/Coral) */
[data-theme-color="sunset"] {
    --accent: #fb923c;
    --accent2: #ea580c;
    --border-focus: rgba(251,146,60,0.4);
    --glow: 0 0 40px rgba(251,146,60,0.12);
}
[data-theme="light"][data-theme-color="sunset"] {
    --accent: #ea580c;
    --border-focus: rgba(234,88,12,0.4);
    --glow: 0 0 40px rgba(234,88,12,0.10);
}

/* Mint (Teal/Menta) */
[data-theme-color="mint"] {
    --accent: #2dd4bf;
    --accent2: #0d9488;
    --border-focus: rgba(45,212,191,0.4);
    --glow: 0 0 40px rgba(45,212,191,0.12);
}
[data-theme="light"][data-theme-color="mint"] {
    --accent: #0d9488;
    --border-focus: rgba(13,148,136,0.4);
    --glow: 0 0 40px rgba(13,148,136,0.10);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(124,58,237,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(8,145,178,0.06) 0%, transparent 60%) !important;
}

/* ── Ajustes de cores explícitas para modo light ── */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] .card-title,
[data-theme="light"] .modal-title,
[data-theme="light"] .stat-value { color: #0f172a !important; }

[data-theme="light"] .logo-icon { box-shadow: 0 0 40px rgba(8,145,178,0.15), 0 8px 32px rgba(0,0,0,0.1); }

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }

[data-theme="light"] tr:hover td { background: rgba(0,0,0,0.02) !important; }
[data-theme="light"] .modal-overlay { background: var(--modal-bg); }
[data-theme="light"] .modal { box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
[data-theme="light"] .modal-input { background: var(--input-bg); }

/* ── Toggle Button ── */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.08);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ═══════════════════════════════════════════
   LAYOUT GLOBAL (SIDEBAR + MAIN)
   ═══════════════════════════════════════════ */
body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background: radial-gradient(ellipse 60% 50% at 10% 10%, rgba(0,229,255,0.05) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 90% 90%, rgba(124,58,237,0.06) 0%, transparent 60%);
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Sidebar ── */
.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    height: -webkit-fill-available;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 32px 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.sidebar-logo img {
    max-height: 36px;
    max-width: 100%;
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--glow);
}

.sidebar-logo-text {
    font-family: var(--title-font, 'Syne'), sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 80px; /* Garante espaço no final para rolar */
}

.nav-divider {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding: 16px 14px 8px 14px;
    margin-top: 8px;
    opacity: 0.6;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    transition: color 0.2s;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text);
}

.sidebar-link.active {
    background: rgba(0,229,255,0.1);
    color: var(--accent);
}

.sidebar-link.active svg {
    color: var(--accent);
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.sidebar-link.danger:hover {
    background: rgba(239,68,68,0.1);
    color: var(--red);
}

/* ── Submenus Sidebar ── */
.sidebar-link.has-sub { justify-content: space-between; }
.sidebar-link.has-sub .chevron { transition: transform 0.3s; }
.sidebar-link.has-sub.open .chevron { transform: rotate(180deg); }

.submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 44px;
    margin-bottom: 10px;
    animation: fadeDown 0.3s ease both;
}
.submenu.open { display: flex; }

.submenu-link {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
}
.submenu-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.submenu-link.active { color: var(--accent); font-weight: 600; }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── User Dropdown ── */
.user-dropdown {
    position: relative;
    padding: 16px 16px 20px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-trigger:hover { background: rgba(255,255,255,0.04); }

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,229,255,0.2);
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.user-status { font-size: 0.65rem; color: var(--muted); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.status-dot { width: 7px; height: 7px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px rgba(16,185,129,0.5); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeDown 0.3s ease;
}

.dropdown-menu.open { display: flex; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-item svg { color: var(--muted); transition: color 0.2s; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--accent); }
.dropdown-item:hover svg { color: var(--accent); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); color: var(--red); }
.dropdown-item.danger:hover svg { color: var(--red); }

/* ── Main Content ── */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
    max-width: 100%;
}

/* Header comum das páginas */
.page-header { margin-bottom: 40px; animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.page-title { font-family: var(--title-font, 'Syne'), sans-serif; font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.03em; line-height: 1.1; }
.page-sub { font-size: 0.95rem; color: var(--muted); font-weight: 400; line-height: 1.5; max-width: 600px; }
[data-theme="light"] .page-title { color: #0f172a; }

/* Card centralizado antigo (usado nos formulários) */
.form-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 24px; padding: 40px 36px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
    max-width: 480px;
}

/* Mobile Sidebar Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVIDADE GLOBAL
   ═══════════════════════════════════════════ */

/* ── Sidebar mobile (≤860px) ── */
    @media (max-width: 860px) {
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            max-width: 85vw;
            height: 100vh;
            height: 100dvh;
            transform: translateX(-100%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            display: flex !important;
            flex-direction: column;
            overflow-y: auto;
            overflow-x: hidden;
            background: var(--surface);
            padding: 20px 16px 0 16px;
            box-shadow: none;
            border-right: none;
        }

        /* O sidebar-nav não precisa mais scroll próprio,
           pois o sidebar inteiro rola */
        .sidebar-nav {
            overflow-y: visible;
            flex: none;
            min-height: auto;
        }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,0.4);
    }

    .sidebar-logo {
        padding: 8px 4px 20px 4px;
        justify-content: flex-start;
        flex-shrink: 0;
    }

    .user-dropdown {
        flex-shrink: 0;
    }

    /* Main content */
    .main-content {
        margin-left: 0 !important;
        padding: 72px 16px 24px 16px !important;
        width: 100%;
    }

    .mobile-toggle { display: flex; z-index: 1001; }
    .sidebar-overlay.active { display: block; z-index: 999; }

    /* Dropdown positioning */
    .dropdown-menu {
        top: calc(100% + 4px);
        bottom: auto;
        left: 0;
        right: 0;
        position: absolute;
    }

    /* Forms */
    .form-card {
        max-width: 100%;
        padding: 24px 20px;
        border-radius: 16px;
    }

    /* Page header */
    .page-header { margin-bottom: 24px; }
    .page-title { font-size: 1.6rem; }
    .page-sub { font-size: 0.85rem; }

    /* Theme toggle repositioning */
    .theme-toggle {
        top: 16px;
        right: 16px;
    }
}

/* ── Tablet / Medium screens (≤768px) ── */
@media (max-width: 768px) {
    /* Tables with horizontal scroll */
    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Stats grids */
    .stats-row { grid-template-columns: repeat(2, 1fr); }

    /* Dashboard grid */
    .dashboard-grid { grid-template-columns: 1fr; }

    /* Top stats */
    .top-stats { flex-direction: column; }
    .top-stat-box { min-width: 100%; }

    /* Online stats cards */
    .online-stats-row { flex-direction: column; }
    .online-stat-card { min-width: 100%; }
}

/* ── Small screens (≤640px) ── */
@media (max-width: 640px) {
    /* Responsive card tables — used by renew_users, view_resellers, admin_users */
    .user-table,
    .user-table thead,
    .user-table tbody,
    .user-table th,
    .user-table td,
    .user-table tr {
        display: block;
    }

    .user-table thead {
        display: none;
    }

    .user-table {
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .user-table tr {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        margin-bottom: 12px;
        padding: 16px;
    }

    .user-table tr:hover td {
        background: transparent;
    }

    .user-table td {
        border: none;
        padding: 6px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .user-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--muted);
        font-weight: 700;
        flex-shrink: 0;
    }

    /* Action buttons in card table */
    .user-table td:last-child {
        padding-top: 10px;
        border-top: 1px solid var(--border);
        margin-top: 6px;
    }

    /* Modals */
    .modal-content,
    .modal {
        max-width: 100%;
        border-radius: 20px;
    }

    .modal-content {
        padding: 24px 20px;
    }

    .modal-bouquets-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    /* Filter row */
    .filter-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Search bars */
    .search-bar {
        flex-direction: column;
    }

    .search-bar .search-btn {
        padding: 12px;
    }
}

/* ── Extra small screens (≤480px) ── */
@media (max-width: 480px) {
    .main-content {
        padding: 64px 12px 20px 12px !important;
    }

    .stats-row { grid-template-columns: 1fr; }
    .page-title { font-size: 1.3rem; }
    .page-sub { font-size: 0.8rem; }

    .theme-toggle { top: 10px; right: 10px; width: 34px; height: 34px; }
    .mobile-toggle { top: 10px; left: 10px; width: 36px; height: 36px; }

    /* Dashboard stat values */
    .top-stat-val { font-size: 1.6rem; }
    .stat-value { font-size: 1.4rem; }

    /* Online stat cards */
    .online-stat-val { font-size: 1.6rem; }

    /* Form cards */
    .form-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    /* Bouquets grid compact */
    .bouquets-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    /* Card titles */
    .dash-card-title { font-size: 0.95rem; }

    /* Movie grids */
    .movies-grid { grid-template-columns: 1fr; }

    /* Player modal */
    .player-container { border-radius: 12px; }
    .player-header { padding: 12px 16px; }
    .player-header h4 { font-size: 0.9rem; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════ */
/*  BOTÕES PADRONIZADOS — Gradiente  */
/* ═══════════════════════════════════ */

.btn-submit,
.btn-primary,
.btn-save,
.btn-update,
.btn-action,
.btn-primary-wide,
.btn-primary-modal,
.modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    outline: none;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0,229,255,0.2);
}

.btn-submit:hover,
.btn-primary:hover,
.btn-save:hover,
.btn-update:hover,
.btn-action:hover,
.btn-primary-wide:hover,
.btn-primary-modal:hover,
.modal-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,229,255,0.3);
}

.btn-submit:active,
.btn-primary:active,
.btn-save:active,
.btn-update:active,
.btn-action:active,
.btn-primary-wide:active,
.btn-primary-modal:active,
.modal-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled,
.btn-primary:disabled,
.btn-save:disabled,
.btn-update:disabled,
.btn-action:disabled,
.btn-primary-wide:disabled,
.btn-primary-modal:disabled,
.modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit svg,
.btn-primary svg,
.btn-save svg,
.btn-update svg,
.btn-action svg,
.btn-primary-wide svg,
.btn-primary-modal svg,
.modal-submit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Botão outline (ex: Limpar, Cancelar) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-decoration: none;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,229,255,0.04);
}

/* Botão danger (excluir, bloquear) */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    outline: none;
    text-decoration: none;
}
.btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239,68,68,0.35);
    transform: translateY(-1px);
}

/* Botão small (ex: Filtrar, Buscar) */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.btn-sm:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Spinner de loading */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    display: none;
}
.btn-loading .btn-spinner { display: inline-block; }
.btn-loading { opacity: 0.7; pointer-events: none; }

@keyframes btnSpin { to { transform: rotate(360deg); } }
