/* ===========================
   ÁREA DE PERFIL
=========================== */

.perfil-container{

    max-width:700px;
    margin:40px auto;
    padding:20px;

}

.perfil-card{

    background:#fff;

    border-radius:15px;

    padding:30px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.perfil-card h2{

    margin-top:0;
    margin-bottom:25px;

    color:#0f4c81;

    border-left:5px solid #3498db;

    padding-left:12px;

}

/* LABELS */

.perfil-card label{

    display:block;

    margin-top:15px;
    margin-bottom:5px;

    font-weight:bold;

    color:#444;

}

/* INPUTS */

.perfil-card input{

    width:100%;

    padding:12px;

    border:1px solid #ddd;

    border-radius:8px;

    box-sizing:border-box;

    font-size:15px;

    transition:.3s;

}

.perfil-card input:focus{

    outline:none;

    border-color:#3498db;

    box-shadow:0 0 10px rgba(52,152,219,.2);

}

/* BOTÃO */

.btn-salvar{

    margin-top:25px;

    background:#28a745;

    color:white;

    border:none;

    padding:12px 25px;

    border-radius:8px;

    cursor:pointer;

    font-size:15px;

    font-weight:bold;

    transition:.3s;

}

.btn-salvar:hover{

    background:#218838;

    transform:translateY(-2px);

}

.btn-voltar{

    margin-top:25px;

    background:#6c757d;

    color:white;

    border:none;

    padding:12px 25px;

    border-radius:8px;

    cursor:pointer;

    font-size:15px;

    font-weight:bold;

    transition:.3s;

}

.btn-voltar:hover{

    background:#6c757d;

    transform:translateY(-2px);

}


/* ALERTAS */

.alerta-sucesso{

    background:#d4edda;

    color:#155724;

    padding:12px;

    border-radius:8px;

    margin-bottom:20px;

    border-left:5px solid #28a745;

}

.alerta-erro{

    background:#f8d7da;

    color:#721c24;

    padding:12px;

    border-radius:8px;

    margin-bottom:20px;

    border-left:5px solid #dc3545;

}

/* FOTO */

.foto-perfil{

    width:140px;
    height:140px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid #eee;

    display:block;

    margin:0 auto 20px auto;

}


.foto-preview{
       width:180px;
       height:180px;
       object-fit:cover;
       border-radius:50%;
       border:5px solid #0f4c81;
}

/* MENU PERFIL */

.menu-perfil{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:15px;

    margin-top:25px;

}

.menu-perfil a{

    text-decoration:none;

    background:white;

    color:#333;

    padding:15px;

    border-radius:10px;

    text-align:center;

    font-weight:bold;

    box-shadow:0 4px 10px rgba(0,0,0,.08);

    transition:.3s;

}

.menu-perfil a:hover{

    transform:translateY(-4px);

    background:#f7f9fb;

}

/* MOBILE */

@media(max-width:768px){

    .perfil-container{

        margin:15px;
        padding:0;

    }

    .perfil-card{

        padding:20px;

    }

    .menu-perfil{

        grid-template-columns:1fr;

    }

    .btn-salvar{

        width:100%;

    }
    .btn-voltar{

        display:inline-block;

        margin-top:20px;

        text-decoration:none;

        background:#6c757d;

        color:white;

        padding:10px 18px;

        border-radius:8px;

        transition:.3s;

    }

    .btn-voltar:hover{

        background:#5a6268;

    }

}