/* =========================================================
   CASA DOS PELUDOS
   ALTERAR PERFIL
========================================================= */


/* =========================
   RESET
========================= */

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

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background: #f8e9e5;

    color: #403236;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================
   PÁGINA
========================= */

.page {
    width: 100%;
    min-height: 100vh;

    display: flex;

    background: #f8e9e5;
}


/* =========================
   MENU LATERAL
========================= */

.navbar {
    width: 230px;
    min-width: 230px;

    min-height: 100vh;

    position: fixed;

    left: 0;
    top: 0;

    background: #853b4b;

    padding: 22px 15px;

    display: flex;
    flex-direction: column;

    z-index: 1000;
}


/* LOGO */

.logo {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;
}

.logo img {
    width: 155px;
    max-width: 100%;

    height: auto;

    object-fit: contain;
}


/* MENU */

.menu {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.menu a {
    width: 100%;

    min-height: 43px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 13px;

    border-radius: 8px;

    color: white;

    font-size: 13px;

    transition: .2s ease;
}

.menu a span {
    width: 24px;

    text-align: center;

    font-size: 15px;
}

.menu a:hover {
    background: rgba(255,255,255,.12);
}

.menu a.active {
    background: rgba(255,255,255,.20);
}


/* SAIR */

.sair {
    width: 100%;

    min-height: 43px;

    margin-top: auto;

    padding: 10px 13px;

    display: flex;
    align-items: center;

    gap: 11px;

    color: white;

    border-radius: 8px;

    font-size: 13px;
}

.sair:hover {
    background: rgba(255,255,255,.12);
}

.sair span {
    width: 24px;

    text-align: center;
}


/* =========================
   CONTEÚDO
========================= */

.conteudo {
    width: calc(100% - 230px);

    min-height: 100vh;

    margin-left: 230px;

    background: #f8e9e5;
}


/* =========================
   TOPBAR
========================= */

.topbar {
    width: 100%;

    min-height: 74px;

    padding: 12px 35px;

    background: white;

    border-bottom: 1px solid #e3c6c2;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.topbar-esquerda {
    display: flex;

    align-items: center;

    gap: 12px;
}

.botao-voltar {
    color: #853b4b;

    font-size: 28px;

    line-height: 1;
}

.topbar-esquerda h1 {
    color: #853b4b;

    font-size: 23px;

    font-weight: 700;
}

.topbar-esquerda p {
    margin-top: 3px;

    color: #817174;

    font-size: 10px;
}


/* USUÁRIO */

.usuario {
    display: flex;

    align-items: center;

    gap: 10px;
}

.usuario-foto {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #853b4b;

    color: white;

    font-weight: bold;

    font-size: 14px;
}

.usuario-info strong {
    display: block;

    color: #403236;

    font-size: 11px;
}

.usuario-info span {
    display: block;

    margin-top: 2px;

    color: #817174;

    font-size: 8px;
}


/* =========================
   BREADCRUMB
========================= */

.breadcrumb {
    width: 100%;

    padding: 17px 35px 10px;

    font-size: 10px;

    color: #817174;
}

.breadcrumb a {
    color: #853b4b;

    font-weight: bold;
}

.breadcrumb span {
    margin: 0 4px;
}


/* =========================
   ÁREA DE EDIÇÃO
========================= */

.area-edicao {
    width: calc(100% - 70px);

    margin: 0 35px;

    padding: 10px 0 35px;
}


/* =========================
   CARD DE EDIÇÃO
========================= */

.card-edicao {
    width: 100%;

    max-width: 950px;

    margin: 0 auto;

    padding: 25px;

    background: #fffaf8;

    border: 1px solid #e2c6c1;

    border-radius: 10px;

    box-shadow: 0 3px 12px rgba(100,45,55,.07);
}


/* =========================
   TÍTULO
========================= */

.titulo-card {
    display: flex;

    align-items: center;

    gap: 12px;

    padding-bottom: 20px;

    border-bottom: 1px solid #ead6d2;
}

.icone {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f1d7d3;

    font-size: 18px;
}

.titulo-card h2 {
    color: #853b4b;

    font-size: 18px;
}

.titulo-card p {
    margin-top: 4px;

    color: #817174;

    font-size: 9px;
}


/* =========================
   FOTO
========================= */

.foto-edicao {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px 0;

    border-bottom: 1px solid #ead6d2;
}

.foto-container {
    position: relative;

    flex-shrink: 0;
}

.foto-perfil {
    width: 75px;
    height: 75px;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid white;

    box-shadow: 0 2px 8px rgba(0,0,0,.1);

    background: #ead0cd;
}

.botao-camera {
    width: 28px;
    height: 28px;

    position: absolute;

    right: -3px;
    bottom: -2px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 2px solid white;

    border-radius: 50%;

    background: #853b4b;

    color: white;

    font-size: 11px;

    cursor: pointer;
}

.foto-edicao strong {
    display: block;

    color: #403236;

    font-size: 11px;
}

.foto-edicao p {
    margin-top: 4px;

    color: #817174;

    font-size: 8px;
}


/* =========================
   FORMULÁRIO
========================= */

form {
    padding-top: 20px;
}

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.campo {
    width: 100%;
}

.campo-grande {
    grid-column: span 1;
}

.campo label {
    display: block;

    margin-bottom: 6px;

    color: #403236;

    font-size: 10px;

    font-weight: bold;
}

.campo input {
    width: 100%;

    height: 40px;

    padding: 9px 11px;

    border: 1px solid #dfc8c4;

    border-radius: 6px;

    outline: none;

    background: white;

    color: #403236;

    font-size: 10px;

    transition: .2s;
}

.campo input:focus {
    border-color: #a94d60;

    box-shadow: 0 0 0 2px rgba(169,77,96,.10);
}


/* =========================
   BOTÕES
========================= */

.botoes {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #ead6d2;
}

.botao-cancelar {
    min-width: 105px;

    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dfc8c4;

    border-radius: 7px;

    background: white;

    color: #853b4b;

    font-size: 10px;

    font-weight: bold;
}

.botao-cancelar:hover {
    background: #f9eeee;
}

.botao-salvar {
    min-width: 145px;

    height: 38px;

    padding: 0 15px;

    border: none;

    border-radius: 7px;

    background: #853b4b;

    color: white;

    font-size: 10px;

    font-weight: bold;

    cursor: pointer;

    transition: .2s;
}

.botao-salvar:hover {
    background: #71303f;
}


/* =========================
   AVISO
========================= */

.aviso {
    width: 100%;

    max-width: 950px;

    margin: 15px auto 0;

    padding: 14px 17px;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    background: #f1d7d3;

    border: 1px solid #dfbeb9;

    border-radius: 8px;
}

.aviso > span {
    font-size: 17px;
}

.aviso strong {
    display: block;

    color: #853b4b;

    font-size: 10px;
}

.aviso p {
    margin-top: 3px;

    color: #817174;

    font-size: 8px;

    line-height: 1.5;
}


/* =========================
   RODAPÉ
========================= */

.footer {
    width: 100%;

    padding: 35px 40px;

    background: #853b4b;

    color: white;

    display: grid;

    grid-template-columns: 1.2fr 1fr 1.3fr 1fr;

    gap: 25px;
}


/* IMAGEM */

.footer-imagem {
    display: flex;

    align-items: center;
    justify-content: center;
}

.pet-circulo {
    width: 115px;
    height: 115px;

    overflow: hidden;

    border: 4px solid rgba(255,255,255,.8);

    border-radius: 50%;
}

.pet-circulo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* COLUNAS */

.footer-coluna h3 {
    margin-bottom: 9px;

    font-size: 13px;
}

.footer-coluna p {
    color: rgba(255,255,255,.82);

    font-size: 9px;

    line-height: 1.7;
}

.footer-coluna strong {
    display: block;

    margin-top: 10px;

    font-size: 10px;
}


/* BOTÃO */

.botao-footer {
    display: inline-block;

    margin-top: 12px;

    padding: 8px 12px;

    border-radius: 6px;

    background: white;

    color: #853b4b;

    font-size: 9px;

    font-weight: bold;
}


/* REDES */

.redes {
    display: flex;

    gap: 7px;

    margin-top: 12px;
}

.redes a {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 50%;

    color: white;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1000px) {

    .card-edicao,
    .aviso {
        max-width: 100%;
    }

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


@media (max-width: 700px) {

    .page {
        display: block;
    }

    .navbar {
        width: 100%;

        min-width: 100%;

        min-height: auto;

        position: relative;

        padding: 12px;
    }

    .logo {
        height: 55px;

        margin-bottom: 10px;
    }

    .logo img {
        width: 130px;
    }

    .menu {
        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 5px;
    }

    .menu a {
        justify-content: center;

        padding: 8px 5px;

        font-size: 10px;
    }

    .menu a span {
        display: none;
    }

    .sair {
        display: none;
    }


    .conteudo {
        width: 100%;

        margin-left: 0;
    }


    .topbar {
        padding: 14px 18px;
    }

    .topbar-esquerda h1 {
        font-size: 19px;
    }

    .usuario-info {
        display: none;
    }


    .breadcrumb {
        padding: 14px 18px 8px;
    }


    .area-edicao {
        width: calc(100% - 36px);

        margin: 0 18px;
    }


    .card-edicao {
        padding: 17px;
    }


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


    .campo-grande {
        grid-column: span 1;
    }


    .botoes {
        flex-direction: column-reverse;
    }

    .botao-cancelar,
    .botao-salvar {
        width: 100%;
    }


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

        padding: 28px 20px;
    }

    .footer-imagem {
        display: none;
    }
}


@media (max-width: 450px) {

    .menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .foto-edicao {
        align-items: flex-start;
    }

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