*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f3f5f7;
    color:#222;
}

a{
    text-decoration:none;
}

/* LOGIN */

.login-page{
    min-height:100vh;
    background:#f3f5f7;
    display:flex;
    flex-direction:column;
}

.login-wrapper{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
}

.login-card{
    background:white;
    width:420px;
    padding:40px;
    border-radius:22px;
    box-shadow:0 12px 35px rgba(0,0,0,0.12);
    text-align:center;
}

.login-card h1{
    margin:0;
    color:#00856f;
    font-size:38px;
}

.login-card p{
    margin:12px 0 28px;
    color:#555;
    font-size:26px;
}

.login-card form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.login-card input{
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:23px;
}

.login-card button{
    background:#00856f;
    color:white;
    border:none;
    padding:14px;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
    font-size:24px;
}

.login-card button:hover{
    background:#006f5d;
}

.links-login{
    margin-top:22px;
    display:flex;
    justify-content:center;
    gap:20px;
}

.links-login a{
    color:#00856f;
    font-weight:bold;
}

.links-login a:hover{
    text-decoration:underline;
}

/* TOPO / LAYOUT */

.topbar{
    height:82px;
    background:#00856f;
    color:white;
    display:grid;
    grid-template-columns:260px 1fr 350px;
    align-items:center;
    padding:0 30px;
    box-shadow:0 4px 20px rgba(0,0,0,0.15);
    position:sticky;
    top:0;
    z-index:10;
    transition: grid-template-columns 0.25s ease;
}
html.sidebar-collapsed .topbar {
    grid-template-columns: 56px 1fr 350px;
}

.logo-area{
    font-size:38px;
    font-weight:bold;
}

.search-area{
    display:flex;
    justify-content:center;
}

.search-area input{
    width:520px;
    max-width:100%;
    padding:14px;
    border:none;
    border-radius:10px;
    font-size:24px;
    background:rgba(255,255,255,0.35);
    color:white;
}

.search-area input::placeholder{
    color:rgba(255,255,255,0.8);
}

.user-area{
    text-align:right;
    font-weight:bold;
    font-size:24px;
}

.layout{
    display:grid;
    grid-template-columns:260px 1fr;
    min-height:calc(100vh - 82px);
    transition: grid-template-columns 0.25s ease;
}
html.sidebar-collapsed .layout {
    grid-template-columns: 56px 1fr;
}

.sidebar{
    background:white;
    padding:30px 20px;
    box-shadow:4px 0 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: padding 0.25s ease;
}
html.sidebar-collapsed .sidebar {
    padding: 30px 8px;
}

/* ── Botão toggle ─────────────────────────────────── */
.sidebar-toggle {
    position: absolute;
    top: 14px;
    right: 10px;
    background: none;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00856f;
    font-size: 12px;
    z-index: 5;
    transition: background 0.15s;
}
.sidebar-toggle:hover { background: #e9f6f3; }
.toggle-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}
html.sidebar-collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* ── Conteúdo da sidebar ──────────────────────────── */
.sidebar-conteudo {
    transition: opacity 0.2s ease;
}
html.sidebar-collapsed .sidebar-conteudo {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.sidebar h3{
    color:#00856f;
    font-size:32px;
    margin:0 0 25px;
}

.sidebar a{
    display:block;
    color:#222;
    font-weight:bold;
    padding:14px 16px;
    margin-bottom:10px;
    border-radius:10px;
}

.sidebar a:hover{
    background:#e9f6f3;
    color:#00856f;
}

.sidebar .menu-ativo{
    background:#00856f;
    color:white;
}

.sidebar .menu-ativo:hover{
    background:#00856f;
    color:white;
}

.sair-menu{
    color:#c0392b !important;
    margin-top:35px;
}

.content{
    padding:40px;
}

.titulo-dashboard{
    font-size:62px;
    font-weight:bold;
    color:#00856f;
    margin-bottom:35px;
}

/* MENSAGENS */

.sucesso{
    background:#d8f5e4;
    color:#006b3c;
    padding:16px;
    border-radius:10px;
    margin-bottom:20px;
}

.erro{
    background:#f8d7da;
    color:#c0392b;
    padding:16px;
    border-radius:10px;
    margin-bottom:20px;
}

/* CARDS */

.autorizacoes-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:28px;
}

.autorizacao-card{
    background:white;
    min-height:220px;
    border-radius:18px;
    padding:35px 25px;
    text-align:center;
    color:#222;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    transition:0.2s;
}

.autorizacao-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 32px rgba(0,0,0,0.12);
}

.autorizacao-card .icone{
    font-size:50px;
    margin-bottom:20px;
}

.autorizacao-card span{
    font-size:30px;
    font-weight:bold;
    margin-bottom:10px;
}

.autorizacao-card small{
    color:#666;
    font-size:23px;
}

/* FORMULÁRIOS */

.form-card{
    background:white;
    border-radius:18px;
    padding:28px;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    margin-bottom:25px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:22px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full{
    grid-column:1 / -1;
}

.form-group label{
    font-weight:bold;
    color:#555;
    margin-bottom:8px;
}

.form-group input,
.form-group select,
.form-group textarea{
    padding:13px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:23px;
    background:white;
}

.form-actions{
    display:flex;
    justify-content:flex-end;
    gap:15px;
    margin-top:25px;
}

.btn-primary{
    background:#00856f;
    color:white;
    border:none;
    padding:13px 22px;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none;
}

.btn-primary:hover{
    background:#006f5d;
}

.btn-secondary{
    background:#e9ecef;
    color:#333;
    border:none;
    padding:13px 22px;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
    text-decoration:none;
}

.btn-secondary:hover{
    background:#d6d8db;
}

/* FOOTER */

footer{
    text-align:center;
    padding:16px;
    color:#555;
    font-size:22px;
}

/* RESPONSIVO */

@media(max-width:900px){
    .layout{
        grid-template-columns:1fr;
    }

    .topbar{
        grid-template-columns:1fr;
        height:auto;
        gap:15px;
        padding:20px;
        text-align:center;
    }

    .user-area{
        text-align:center;
    }

    .content{
        padding:25px;
    }

    .titulo-dashboard{
        font-size:48px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.check-card {
    background: #f7f9fa;
    border: 1px solid #d9e2e7;
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    font-weight: 700;
    color: #222;
    display: flex;
    gap: 12px;
    align-items: center;
}

.check-card input {
    width: 18px;
    height: 18px;
}

.check-card:hover {
    background: #eef7f4;
    border-color: #008b72;
}
.login-body{
    min-height:100vh;
    background:#eef0f2;
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-card{
    width:360px;
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
    text-align:center;
}

.login-card h1{
    color:#008b72;
    font-size:36px;
    line-height:30px;
    margin-bottom:10px;
}

.login-card p{
    color:#555;
    margin-bottom:25px;
}

.login-card input{
    width:100%;
    height:45px;
    margin-bottom:14px;
    border:1px solid #d9d9d9;
    border-radius:10px;
    padding:0 14px;
}

.login-card button{
    width:100%;
    height:45px;
    border:none;
    border-radius:10px;
    background:#008b72;
    color:#fff;
    font-weight:bold;
    cursor:pointer;
}

.login-links{
    margin-top:16px;
    font-size:13px;
    color:#888;
}

.login-links a{
    color:#008b72;
    text-decoration:none;
}

.login-links a:hover{
    text-decoration:underline;
}

.login-links span{
    margin:0 6px;
    color:#ccc;
}