/* ===============================
   ALTA PERFORMANCE POSTURAL - CSS
   Versão: 2.1 FIXED
   =============================== */

/* 1. RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. VARIÁVEIS */
:root {
    --navy: #000620;
    --royal: #174b96;
    --cyan: #2aa8e8;
    --light-bg: #f5f7fa;
}

/* 3. LAYOUT */
main {
    flex: 1;
    padding-top: 70px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   4. NAVBAR - CORRIGIDA E VISÍVEL! 🆕
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 12px 0 !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.brand-alta { color: #00062a; }
.brand-performance { color: #2aa8e8; }
.brand-postural { color: #00062a; }

.nav-link {
    color: var(--navy) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--royal) !important;
}

/* ============================================
   🆕 BOTÃO HAMBÚRGUER - PEQUENO E NO CANTO
   ============================================ */
.navbar-toggler {
    width: 35px !important;
    height: 35px !important;
    padding: 5px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin-left: auto;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(42, 168, 232, 0.25) !important;
}

.navbar-toggler-icon {
    width: 20px !important;
    height: 20px !important;
    background-size: 100%;
}

/* 5. BOTÕES */
.btn-primary {
    background: linear-gradient(135deg, #2aa8e8, #1e8dd3) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(42, 168, 232, 0.4) !important;
    transition: all 0.3s ease !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(42, 168, 232, 0.5) !important;
}

.btn-outline-dark {
    border: 2px solid white !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-3px) !important;
}

/* 6. HERO */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 100px;
    overflow: hidden;
    background-image: url('../images/hero-illustration.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 40, 71, 0.90) 0%, rgba(30, 74, 122, 0.88) 50%, rgba(23, 75, 150, 0.90) 100%);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23f5f7fa' d='M0,224L80,213.3C160,203,320,181,480,186.7C640,192,800,224,960,224C1120,224,1280,192,1360,176L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-text h1 .highlight {
    color: #5ec5ff;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(94, 197, 255, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 40px;
    max-width: 750px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 7. SETORES */
.sectors {
    background: var(--light-bg);
    padding: 100px 0 150px;
    position: relative;
}

.sectors h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 20px;
}

.sectors-subtitle, .sectors-note {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.6;
}

.sectors-subtitle {
    margin-bottom: 60px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.sectors-note {
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.sector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.sector-card {
    background: white;
    padding: 30px 20px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid rgba(42, 168, 232, 0.1);
}

.sector-illustration img {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.sector-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.sector-card p {
    font-size: 0.85rem;
    color: #6b7280;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(23, 75, 150, 0.15), 0 0 30px rgba(42, 168, 232, 0.4);
    border-color: #2aa8e8;
}

.sectors::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231a5ba8' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,186.7C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 1;
}

/* 8. BENEFÍCIOS */
.benefits {
    background: linear-gradient(180deg, #1a5ba8 0%, #174b96 100%);
    padding: 120px 0 150px;
    position: relative;
    color: white;
}

.benefits h2 {
    color: white;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 20px;
}

.benefits-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    text-align: center;
    border: 2px solid rgba(42, 168, 232, 0.1);
}

.benefit-icon img {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f4fb, #d1e9f6);
    border-radius: 12px;
    object-fit: contain;
}

.benefit-card h3 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.benefit-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--royal);
    margin-bottom: 10px;
}

.benefit-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(42, 168, 232, 0.5);
    border-color: #2aa8e8;
}

.benefits::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160L48,144C96,128,192,96,288,90.7C384,85,480,107,576,128C672,149,768,171,864,165.3C960,160,1056,128,1152,128C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 1;
}

/* 9. PLANOS */
.plans {
    background: white;
    padding: 100px 0;
}

.plans h2 {
    color: var(--navy);
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 60px;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid rgba(42, 168, 232, 0.15);
    text-align: center;
}

.plan-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f4fb, #d1e9f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.plan-card p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.plan-card.featured {
    border-color: var(--cyan);
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(42, 168, 232, 0.2);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(42, 168, 232, 0.4);
    border-color: #2aa8e8;
}

.plan-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
}

/* 10. FOOTER */
.footer {
    background: #0a2847;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 11. ANIMAÇÕES */
.animate-fade, .animate-up, .animate-left, .animate-right, .animate-zoom {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade.show { opacity: 1; }
.animate-up { transform: translateY(30px); }
.animate-up.show { opacity: 1; transform: translateY(0); }
.animate-left { transform: translateX(-30px); }
.animate-left.show { opacity: 1; transform: translateX(0); }
.animate-right { transform: translateX(30px); }
.animate-right.show { opacity: 1; transform: translateX(0); }
.animate-zoom { transform: scale(0.9); }
.animate-zoom.show { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   12. RESPONSIVO - MOBILE
   ============================================ */
@media (max-width: 991px) {
    .hero { 
        min-height: 65vh; 
        padding: 100px 0 80px; 
        background-attachment: scroll; 
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { font-size: 1.15rem; }
}

@media (max-width: 768px) {
    main { padding-top: 60px !important; }
    
    .hero {
        min-height: 60vh;
        padding: 70px 0 50px;
        background-attachment: scroll;
    }
    
    .hero::before {
        background: linear-gradient(135deg, rgba(10, 40, 71, 0.93), rgba(30, 74, 122, 0.91), rgba(23, 75, 150, 0.93));
    }
    
    .hero-text h1 { 
        font-size: 2.2rem; 
        line-height: 1.25; 
        margin-bottom: 20px; 
        padding: 0 10px; 
    }
    
    .hero-text p { 
        font-size: 1.05rem; 
        padding: 0 15px; 
        margin-bottom: 30px; 
    }
    
    /* Navbar mobile */
    .navbar { 
        padding: 10px 0 !important; 
    }
    
    .navbar-brand { 
        font-size: 0.95rem; 
        gap: 8px; 
    }
    
    .navbar-logo { 
        height: 34px; 
    }
    
    .brand-text { 
        font-size: 0.8rem; 
        gap: 3px; 
    }
    
    /* Botão hambúrguer bem pequeno */
    .navbar-toggler {
        width: 32px !important;
        height: 32px !important;
        padding: 4px !important;
    }
    
    .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .sectors h2, .benefits h2, .plans h2 { 
        font-size: 1.8rem; 
        padding: 0 15px; 
    }
    
    .sectors { padding: 70px 0 110px; }
    .benefits { padding: 90px 0 110px; }
    .plans { padding: 70px 0; }
    
    .sector-cards { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: 0 15px; 
    }
    
    .sector-card { padding: 25px 20px; }
    .benefit-cards, .plan-cards { grid-template-columns: 1fr; gap: 20px; }
    .container { padding: 0 15px; }
    
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        padding: 0 25px; 
    }
    
    .hero-actions .btn { 
        width: 100%; 
        max-width: 300px; 
        padding: 12px 24px; 
        font-size: 0.95rem; 
    }
    
    .navbar-nav .btn { 
        font-size: 0.8rem; 
        padding: 8px 14px; 
    }
    
    .sectors-subtitle, .benefits-subtitle { 
        font-size: 0.95rem; 
        padding: 0 20px; 
    }
    
    /* ADMIN */
    .page-header, .dashboard-header { padding: 20px !important; }
    .page-header h1, .dashboard-header h1 { font-size: 1.5rem !important; }
    .page-header p, .dashboard-header p { font-size: 0.9rem !important; }
    
    .d-flex.gap-2, .d-flex.gap-3, .btn-group { 
        flex-direction: column !important; 
        width: 100% !important; 
        gap: 10px !important; 
    }
    
    .btn, button, a.btn { 
        width: 100% !important; 
        justify-content: center !important; 
        white-space: normal !important; 
        font-size: 0.9rem !important; 
        padding: 10px 20px !important; 
    }
    
    .card-body { padding: 20px 15px !important; }
    .dashboard-grid, .dashboard-grid-2 { grid-template-columns: 1fr !important; }
    
    .table { font-size: 0.85rem !important; }
    .table th, .table td { padding: 8px 10px !important; white-space: nowrap; }
}

@media (max-width: 480px) {
    .hero { min-height: 55vh; padding: 60px 0 45px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 0.95rem; }
    .navbar { padding: 8px 0 !important; }
    .navbar-logo { height: 30px; }
    .brand-text { font-size: 0.7rem; }
    .sectors h2, .benefits h2, .plans h2 { font-size: 1.5rem; }
    
    /* Botão ainda menor em telas muito pequenas */
    .navbar-toggler {
        width: 30px !important;
        height: 30px !important;
    }
    
    .navbar-toggler-icon {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 375px) {
    .hero { min-height: 50vh; }
    .hero-text h1 { font-size: 1.6rem; }
    .navbar-logo { height: 28px; }
    .brand-text { font-size: 0.65rem; }
}

/* ============================================
   🔥 CSS GLOBAL MOBILE FIX - TODAS AS PÁGINAS
   Cole no FINAL do arquivo home.css
   ============================================ */

/* ===== MOBILE - TODAS AS PÁGINAS ADMIN ===== */
@media (max-width: 991px) {
    
    /* ===== 1. BOTÃO HAMBÚRGUER PEQUENO ===== */
    .mobile-menu-btn {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1100 !important;
        background: linear-gradient(135deg, #64b5f6, #42a5f5) !important;
        border: none !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3) !important;
    }

    .mobile-menu-btn i {
        font-size: 1.3rem !important;
        margin: 0 !important;
    }

    /* ===== 2. DASHBOARD CONTENT COM ESPAÇO PRO BOTÃO ===== */
    .dashboard-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 80px 15px 20px 15px !important;
    }

    /* ===== 3. HEADERS DE PÁGINAS ===== */
    .page-header,
    .dashboard-header {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .page-header h1,
    .dashboard-header h1 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }

    .page-header p,
    .dashboard-header p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    /* ===== 4. CONTAINERS DE BOTÕES EMPILHADOS ===== */
    .page-header .d-flex,
    .dashboard-header .d-flex,
    .d-flex.justify-content-between,
    .d-flex.align-items-center,
    .d-flex.gap-2,
    .d-flex.gap-3,
    .btn-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* ===== 5. TODOS OS BOTÕES - TAMANHO REDUZIDO ===== */
    .page-header .btn,
    .page-header button,
    .page-header a.btn,
    .dashboard-header .btn,
    .dashboard-header button,
    .dashboard-header a.btn,
    .btn,
    button,
    a.btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline-secondary,
    .btn-outline-primary,
    .btn-primary-custom,
    .btn-outline-dark {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* ===== 6. ÍCONES DOS BOTÕES MENORES ===== */
    .btn i,
    button i,
    a.btn i {
        font-size: 0.85rem !important;
        margin-right: 6px !important;
    }

    /* ===== 7. BREADCRUMBS MENORES ===== */
    .breadcrumb {
        padding: 10px 15px !important;
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }

    .breadcrumb-item {
        font-size: 0.8rem !important;
    }

    /* ===== 8. CARDS E CONTAINERS ===== */
    .card {
        margin-bottom: 15px !important;
    }

    .card-body {
        padding: 15px !important;
    }

    /* ===== 9. CONTAINERS GERAIS ===== */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* ===== 10. GRIDS ===== */
    .dashboard-grid,
    .stats-grid,
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col,
    [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* ===== 11. TABELAS ===== */
    .table-responsive {
        font-size: 0.8rem !important;
    }

    .table th,
    .table td {
        padding: 8px 6px !important;
        font-size: 0.8rem !important;
    }

    /* ===== 12. FORMULÁRIOS ===== */
    .form-card,
    .form-container {
        padding: 20px 15px !important;
    }

    .form-group {
        margin-bottom: 15px !important;
    }

    .form-control {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }

    /* ===== 13. STATS CARDS ===== */
    .stat-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
    }

    /* ===== 14. MODALS ===== */
    .modal-content {
        margin: 15px !important;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px !important;
    }

    /* ===== 15. ALERTS E MENSAGENS ===== */
    .alert {
        padding: 12px 15px !important;
        font-size: 0.85rem !important;
    }
}

/* ===== MOBILE MUITO PEQUENO (< 480px) ===== */
@media (max-width: 480px) {
    
    /* Botão hambúrguer ainda menor */
    .mobile-menu-btn {
        width: 40px !important;
        height: 40px !important;
        top: 12px !important;
        right: 12px !important;
    }

    .mobile-menu-btn i {
        font-size: 1.1rem !important;
    }

    /* Headers ainda menores */
    .page-header h1,
    .dashboard-header h1 {
        font-size: 1.2rem !important;
    }

    .page-header p,
    .dashboard-header p {
        font-size: 0.8rem !important;
    }

    /* Botões ainda mais compactos */
    .btn,
    button,
    a.btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }

    .btn i,
    button i {
        font-size: 0.75rem !important;
        margin-right: 4px !important;
    }

    /* Dashboard content com menos padding */
    .dashboard-content {
        padding: 70px 10px 15px 10px !important;
    }

    /* Cards mais compactos */
    .card-body {
        padding: 12px !important;
    }

    /* Stats menores */
    .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }
}

/* ===== FIX PARA BOTÕES QUE ESCAPAM ===== */
@media (max-width: 991px) {
    /* Garante que NADA escape da tela */
    * {
        max-width: 100vw !important;
    }

    body {
        overflow-x: hidden !important;
    }

    /* Botões sempre dentro */
    .btn,
    button,
    a.btn {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Flex containers não quebram */
    .d-flex,
    .flex-row,
    .flex-column {
        flex-wrap: wrap !important;
    }

    /* Inputs e selects não escapam */
    input,
    select,
    textarea,
    .form-control {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ===== SIDEBAR DO DASHBOARD ===== */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    /* Overlay quando sidebar aberta */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block !important;
    }
}