*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:210px;
    height:100vh;
    background:linear-gradient(180deg,#0f1f5c,#16296f);
    position:fixed;
    top:0;
    left:0;
    padding:15px;
    color:white;
    display:flex;
    flex-direction:column;
    z-index:1000;
}

/* LOGO */

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:25px;
}

.logo img{
    width:48px;
    height:48px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid white;
}

.logo h1{
    font-size:18px;
    color:white;
}

.logo span{
    color:#d4d4d4;
    font-size:11px;
}

/* MENU */

.menu{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.menu a{
    color:white;
    text-decoration:none;
    padding:11px 12px;
    border-radius:8px;
    font-size:14px;
    font-weight:bold;
    transition:0.3s;
}

.menu a:hover,
.menu .ativo{
    background:#c91f28;
}

.menu-sair{
    margin-top:15px;
    width:100%;
    background:#c91f28;
    color:white;
    border:none;
    padding:11px 12px;
    border-radius:8px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.menu-sair:hover{
    background:#a81820;
}

/* CONTEÚDO */

.conteudo{
    margin-left:210px;
    width:calc(100% - 210px);
    padding:18px;
}

/* TOPO */

.topo{
    background:white;
    padding:18px;
    border-radius:12px;
    margin-bottom:20px;
    border-top:5px solid #c91f28;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.topo h2{
    color:#16296f;
    font-size:26px;
}

.topo p{
    color:#666;
    margin-top:4px;
    font-size:14px;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-bottom:20px;
}

.card{
    background:white;
    padding:18px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    border-left:6px solid #c91f28;
}

.card:nth-child(2){
    border-left-color:#d4af37;
}

.card:nth-child(3){
    border-left-color:#16296f;
}

.card:nth-child(4){
    border-left-color:#15803d;
}

.card:nth-child(5){
    border-left-color:#15803d;
}

.card:nth-child(6){
    border-left-color:#c91f28;
}

.card h3{
    color:#666;
    font-size:14px;
    margin-bottom:10px;
}

.card p{
    color:#16296f;
    font-size:24px;
    font-weight:bold;
}

#receita{
    color:#15803d;
}

#pendente{
    color:#c91f28;
}

/* DASHBOARD */

.area-dashboard{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:15px;
}

/* BOX */

.box{
    background:white;
    padding:18px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.box h3{
    color:#16296f;
    margin-bottom:15px;
    font-size:18px;
}

.box ul{
    list-style:none;
}

.box li{
    padding:12px;
    background:#f3f4f6;
    border-left:5px solid #c91f28;
    border-radius:8px;
    margin-bottom:8px;
    color:#333;
    line-height:1.4;
    font-size:13px;
}

.box p{
    color:#555;
    line-height:1.5;
    font-size:14px;
}

/* FORMULÁRIOS */

.form-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-top:15px;
}

.input-group{
    text-align:left;
}

.input-group label{
    display:block;
    margin-bottom:6px;
    color:#16296f;
    font-weight:bold;
    font-size:13px;
}

.input-group input,
.input-group select,
.input-group textarea{
    width:100%;
    padding:11px;
    border:2px solid #ddd;
    border-radius:8px;
    outline:none;
    font-size:13px;
    background:white;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus{
    border-color:#16296f;
}

/* BOTÕES */

.btn-login{
    width:100%;
    height:44px;
    margin-top:20px;
    background:#c91f28;
    color:white;
    border:none;
    border-radius:8px;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.btn-login:hover{
    background:#a81820;
}

/* TABELAS */

.tabela-box{
    margin-top:20px;
}

.topo-tabela{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.topo-tabela input{
    width:250px;
    padding:10px;
    border-radius:8px;
    border:2px solid #ddd;
    outline:none;
    font-size:13px;
}

.topo-tabela input:focus{
    border-color:#16296f;
}

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:12px;
    overflow:hidden;
}

table thead{
    background:#16296f;
    color:white;
}

table th{
    padding:12px;
    text-align:left;
    font-size:13px;
}

table td{
    padding:12px;
    border-bottom:1px solid #e5e7eb;
    color:#333;
    font-size:13px;
}

table tbody tr:hover{
    background:#f9fafb;
}

/* BOTÕES TABELA */

.btn-editar,
.btn-excluir{
    border:none;
    padding:7px 10px;
    border-radius:7px;
    cursor:pointer;
    font-weight:bold;
    transition:0.3s;
    font-size:12px;
}

.btn-editar{
    background:#d4af37;
    color:white;
    margin-right:4px;
}

.btn-excluir{
    background:#c91f28;
    color:white;
}

.btn-editar:hover,
.btn-excluir:hover{
    opacity:0.9;
    transform:scale(1.03);
}

/* RESPONSIVO */

@media(max-width:1100px){

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

    .form-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .area-dashboard{
        grid-template-columns:1fr;
    }

    table{
        display:block;
        overflow-x:auto;
    }
}

@media(max-width:850px){

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .conteudo{
        margin-left:0;
        width:100%;
        padding:15px;
    }

    .cards,
    .form-grid{
        grid-template-columns:1fr;
    }

    .topo h2{
        font-size:22px;
    }

    .topo-tabela{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .topo-tabela input{
        width:100%;
    }
}

@media(max-width:500px){

    .logo{
        flex-direction:column;
        text-align:center;
    }

    .logo img{
        width:70px;
        height:70px;
    }

    .box{
        padding:15px;
    }
}