*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3f8;
    color: #0f172a;
}

.layout{
    display: flex;
    min-height: 100vh;
}

.sidebar{
    width: 260px;
    background: #1e3a8a;
    color: white;
    padding: 30px 24px;
}

.sidebar h1{
    font-size: 42px;
    margin-bottom: 40px;
}

.sidebar .perfil{
    margin-bottom: 35px;
}

.sidebar .perfil h3{
    margin-bottom: 10px;
}

.sidebar nav a{
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-weight: bold;
}

.sidebar nav a:hover{
    opacity: 0.8;
}

.main{
    flex: 1;
    padding: 40px;
}

.main h2{
    font-size: 36px;
    margin-bottom: 30px;
}

.cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card{
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h3{
    color: #64748b;
    font-size: 16px;
}

.card strong{
    display: block;
    font-size: 34px;
    margin-top: 10px;
}

.grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.panel{
    background: white;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.panel h3{
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.item:last-child{
    border-bottom: none;
}

.item p{
    margin-top: 5px;
    color: #64748b;
    font-size: 14px;
}

.btn{
    background: #0284c7;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    flex-shrink: 0;
}

.btn:hover{
    background: #0369a1;
}

/* Paginação dos últimos autodiagnósticos */

#paginacao-pacientes{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 25px;
}

#paginacao-pacientes button{
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #0f172a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s, border-color 0.2s;
}

#paginacao-pacientes button:hover:not(:disabled){
    background: #e0f2fe;
    border-color: #0284c7;
}

#paginacao-pacientes button.ativo{
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

#paginacao-pacientes button:disabled{
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

#paginacao-pacientes .reticencias{
    padding: 0 5px;
    color: #64748b;
    font-weight: bold;
}

@media(max-width: 900px){
    .layout{
        flex-direction: column;
    }

    .sidebar{
        width: 100%;
    }

    .cards{
        grid-template-columns: 1fr;
    }

    .grid{
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px){
    .main{
        padding: 20px;
    }

    .main h2{
        font-size: 28px;
    }

    .item{
        align-items: flex-start;
    }

    #paginacao-pacientes button{
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        font-size: 14px;
    }
}
#paginacao-pacientes{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

#paginacao-pacientes button{
    width: 28px;
    height: 28px;

    border: 1px solid #cbd5e1;
    border-radius: 5px;

    background: white;
    color: #0f172a;

    font-size: 12px;
    font-weight: bold;

    cursor: pointer;
}

#paginacao-pacientes button:hover{
    background: #e0f2fe;
    border-color: #0284c7;
}

#paginacao-pacientes button.ativo{
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}