html, body {
    min-height: 100%;
}

body {
    background: url('../img/background.jpg') center center / cover no-repeat fixed;
    font-family: Arial, Helvetica, sans-serif;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box { 
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.82);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 100, 0.25);
}

.login-logo {
    max-width: 150px;
}

/* MENU */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    flex-direction: column;
    padding: 12px 14px;
    z-index: 1000;
    overflow: visible;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

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

.sidebar-nav {
    width: 100%;
}

.sidebar nav a,
.menu-mobile-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 7px 11px;
    border-radius: 9px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.2;
}

.sidebar nav a:hover,
.menu-mobile-links a:hover {
    background: rgba(25,135,84,0.95);
    color: #fff;
}

.sidebar hr,
.menu-mobile-links hr {
    border-color: rgba(255,255,255,0.18);
    margin: 9px 0;
}

.btn-recalcular {
    background: #dc3545 !important;
    color: #fff !important;
    text-align: center;
    font-weight: 600;
    border-radius: 9px;
    margin-top: 8px;
    padding: 7px 10px !important;
    font-size: 13px !important;
}

.btn-recalcular:hover {
    background: #bb2d3b !important;
}

.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    border-radius: 10px;
}

.menu-mobile {
    background: rgba(4, 35, 18, 0.98);
}

.mobile-logo {
    width: 150px;
    height: auto;
    margin: 0 auto;
}

.offcanvas-header {
    position: relative;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 18px;
}

.offcanvas-header .btn-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* CONTEÚDO */

.conteudo {
    margin-left: 220px;
    min-height: calc(100vh - 56px);
    padding: 30px;
}

.painel-card {
    background: rgba(255,255,255,0.94);
    border-radius: 16px;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}

.foto-tabela-usuario {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #28a745;
}

.perfil-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 30px;
}

/* FOOTER */

.footer {
    margin-left: 220px;
    color: #fff;
    text-align: center;
    padding: 16px;
}

.link-pro {
    background: linear-gradient(135deg,#ffc107,#ff9800);
    color: #111 !important;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    margin: 8px 0;
    box-shadow: 0 4px 12px rgba(255,193,7,.35);
}

.link-pro:hover {
    transform: translateY(-1px);
    transition: .2s;
}

/* TELAS MENORES DE ALTURA */

@media (min-width: 768px) and (max-height: 800px) {
    .sidebar {
        width: 210px;
        padding: 8px 14px;
    }

    .sidebar-logo {
        margin-bottom: 8px;
    }

    .sidebar-logo img {
        max-width: 90px;
    }

    .sidebar nav a {
        font-size: 13.5px;
        padding: 5px 10px;
        margin-bottom: 1px;
    }

    .sidebar hr {
        margin: 6px 0;
    }

    .btn-recalcular {
        padding: 6px 10px !important;
        font-size: 12.5px !important;
    }

    .conteudo {
        margin-left: 210px;
        padding: 22px 26px;
    }

    .footer {
        margin-left: 210px;
        padding: 10px;
        font-size: 14px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    body {
        background-attachment: scroll;
    }

    .conteudo {
        margin-left: 0;
        padding: 80px 15px 25px;
    }

    .footer {
        margin-left: 0;
    }

    .texto-footer {
        font-size: 14px;
    }

    .login-box {
        padding: 24px;
    }
}