:root{
    --bg:#d0ccc9;
    --panel:#ffffff;
    --panel-soft:#f7f6f5;
    --text:#111111;
    --muted:#666666;
    --line:#d8d3cf;
    --black:#000000;
    --green:#b0efc2;
    --green-dark:#9eddb0;
    --danger:#b42318;
    --radius:18px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:Arial, Helvetica, sans-serif;
}

/* LOGIN */
.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.login-card{
    width:100%;
    max-width:430px;
    background:var(--panel);
    border:2px solid var(--black);
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    padding:32px 24px;
}

.logo-area{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:20px;
    min-height:110px;
}

.logo{
    max-width:220px;
    max-height:90px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.logo-placeholder{
    width:220px;
    height:90px;
    border:2px dashed var(--black);
    border-radius:14px;
    display:none;
    align-items:center;
    justify-content:center;
    font-weight:700;
    background:var(--panel-soft);
}

.login-title{
    font-size:30px;
    text-align:center;
    margin-bottom:8px;
}

.login-subtitle{
    text-align:center;
    color:var(--muted);
    margin-bottom:22px;
    font-size:15px;
}

.alerta-erro{
    background:#fdecea;
    color:var(--danger);
    border:1px solid #f5c2c0;
    border-radius:12px;
    padding:12px 14px;
    margin-bottom:18px;
    font-size:14px;
    font-weight:700;
}

.form-group{
    margin-bottom:16px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:700;
}

.form-group input{
    width:100%;
    height:48px;
    border:1px solid #bcb5b0;
    border-radius:12px;
    padding:0 14px;
    font-size:15px;
    background:#fff;
    color:#111;
}

.form-group input:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(176,239,194,.22);
}

.btn-login{
    width:100%;
    height:48px;
    border:none;
    border-radius:12px;
    background:var(--green);
    color:#000;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.btn-login:hover{
    background:var(--green-dark);
}

/* HEADER */
.site-header{
    width:100%;
    padding:24px 16px 10px;
}

.header-container{
    max-width:1280px;
    margin:0 auto;
    text-align:center;
}

.header-logo{
    max-width:240px;
    max-height:90px;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
    margin:0 auto;
}

.header-logo-placeholder{
    width:240px;
    height:90px;
    border:2px dashed var(--black);
    border-radius:14px;
    display:none;
    align-items:center;
    justify-content:center;
    font-weight:700;
    background:var(--panel-soft);
    margin:0 auto;
}

/* DASHBOARD */
.dashboard-page{
    max-width:1280px;
    margin:0 auto;
    padding:20px 16px 40px;
}

.dashboard-head{
    text-align:center;
    margin-bottom:28px;
}

.dashboard-head h1{
    font-size:34px;
    margin-bottom:8px;
}

.dashboard-head p{
    color:var(--muted);
    font-size:15px;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:18px;
}

.dashboard-box{
    background:var(--panel);
    border:2px solid var(--black);
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    text-decoration:none;
    color:var(--text);
    padding:28px 18px;
    min-height:210px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    transition:.2s;
}

.dashboard-box:hover{
    transform:translateY(-3px);
    background:#fffdf2;
}

.dashboard-box-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:14px;
}

.dashboard-box-number{
    font-size:46px;
    font-weight:700;
    line-height:1;
    margin-bottom:12px;
}

.dashboard-box-tag{
    background:var(--green);
    color:#000;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.dashboard-footer{
    display:flex;
    justify-content:center;
    margin-top:28px;
}

.btn-dark{
    min-width:120px;
    height:46px;
    padding:0 18px;
    border-radius:12px;
    background:#000;
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:700;
    transition:.2s;
}

.btn-dark:hover{
    opacity:.88;
}

@media (max-width: 1200px){
    .dashboard-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width: 780px){
    .dashboard-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .dashboard-head h1{
        font-size:28px;
    }
}

@media (max-width: 520px){
    .login-card{
        padding:24px 18px;
    }

    .login-title{
        font-size:24px;
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }

    .dashboard-box{
        min-height:170px;
    }

    .dashboard-box-number{
        font-size:38px;
    }

    .header-logo,
    .logo{
        max-width:180px;
        max-height:80px;
    }

    .header-logo-placeholder,
    .logo-placeholder{
        width:180px;
        height:80px;
    }
}
/* ÁREA INTERNA */
.site-main{
    max-width:1280px;
    margin:0 auto;
    padding:10px 16px 40px;
}

.card{
    background:var(--panel);
    border:2px solid var(--black);
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    padding:20px;
    margin-bottom:20px;
}

.mensagem{
    padding:14px 16px;
    border-radius:14px;
    margin-bottom:18px;
    font-weight:700;
    border:2px solid var(--black);
    background:var(--panel);
}

.mensagem.ok{
    background:var(--green);
    color:#000;
}

.mensagem.erro{
    background:#fdecea;
    color:var(--danger);
}

/* MENU */
.main-nav{
    margin-top:20px;
}

.nav-toggle{
    display:none;
    width:100%;
    max-width:240px;
    margin:0 auto 14px;
    height:46px;
    border:none;
    border-radius:12px;
    background:#000;
    color:#fff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.nav-list{
    list-style:none;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}

.nav-list a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:10px 16px;
    text-decoration:none;
    color:var(--text);
    background:var(--panel);
    border:2px solid var(--black);
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    transition:.2s;
}

.nav-list a:hover,
.nav-list a.active{
    background:var(--green);
    color:#000;
}

/* AÇÕES E FILTRO */
.acoes{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:18px;
    align-items:center;
}

.filtro{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
}

.filtro input{
    flex:1;
    min-width:220px;
    height:48px;
    border:1px solid #bcb5b0;
    border-radius:12px;
    padding:0 14px;
    font-size:15px;
    background:#fff;
    color:#111;
}

.filtro input:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(176,239,194,.22);
}

/* BOTÕES */
.btn{
    min-width:120px;
    min-height:46px;
    padding:10px 18px;
    border:none;
    border-radius:12px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.btn:hover{
    opacity:.9;
}

.btn-primary{
    background:var(--green);
    color:#000;
}

.btn-secondary{
    background:#000;
    color:#fff;
}

.btn-danger{
    background:var(--danger);
    color:#fff;
}

.btn-warning{
    background:#f5b942;
    color:#000;
}

.btn-success{
    background:#7fd99a;
    color:#000;
}

/* TABELA */
.table-wrap{
    width:100%;
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:780px;
}

table th,
table td{
    padding:14px 12px;
    border-bottom:1px solid var(--line);
    text-align:left;
    font-size:14px;
}

table th{
    background:var(--panel-soft);
    font-weight:700;
}

/* FORMULÁRIO */
.form-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:16px;
}

.form-grid .full{
    grid-column:1 / -1;
}

.form-grid label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:700;
}

.form-grid input{
    width:100%;
    height:48px;
    border:1px solid #bcb5b0;
    border-radius:12px;
    padding:0 14px;
    font-size:15px;
    background:#fff;
    color:#111;
}

.form-grid input:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(176,239,194,.22);
}

/* FOOTER */
.site-footer{
    padding:10px 16px 30px;
}

.site-footer-container{
    max-width:1280px;
    margin:0 auto;
    text-align:center;
    color:var(--muted);
    font-size:14px;
}

.site-footer-container a{
    color:#000;
    font-weight:700;
    text-decoration:none;
}

.site-footer-container a:hover{
    text-decoration:underline;
}

/* RESPONSIVO */
@media (max-width: 900px){
    .form-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 780px){
    .nav-toggle{
        display:block;
    }

    .nav-list{
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        margin-top:10px;
    }

    body.menu-open .nav-list{
        display:flex;
    }

    .nav-list a{
        width:100%;
        border-radius:14px;
    }

    .acoes{
        flex-direction:column;
        align-items:stretch;
    }

    .acoes .btn,
    .acoes form,
    .acoes form button{
        width:100%;
    }

    .filtro{
        flex-direction:column;
        align-items:stretch;
    }

    .filtro input,
    .filtro .btn{
        width:100%;
    }
}
body:not(.login-active) .login-page {
    display: none !important;
}