
:root {
    --radius-pill: 50px;
}

body.has-header {
    display: block;
    align-items: normal;
    justify-content: normal;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: var(--cinza-claro);
    color: var(--texto-principal);
    min-height: 100vh;
    overflow-x: hidden;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-desktop {
    display: block;
    max-width: 150px;
}

.logo-mobile {
    display: none;
    max-width: 45px;
}


/* Menu Dropdown do Perfil */


.header-profile {
    position: relative;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all var(--transition);
}

.profile-info:hover {
    background-color: rgba(0, 74, 173, 0.05);
}

.profile-arrow {
    color: var(--cinza-medio);
    font-size: 24px;
    transition: transform var(--transition);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.profile-info:hover .profile-arrow {
    color: var(--azul-principal);
}

.profile-info.active .profile-arrow {
    transform: rotate(180deg);
    color: var(--azul-principal);
}

/* Menu Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--branco);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header do Dropdown */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--cinza-claro);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--azul-principal);
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--texto-principal);
}

.dropdown-pronouns {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--cinza-medio);
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: var(--cinza-claro);
    margin: 8px 0;
}

/* Menu Items */
.dropdown-menu {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--texto-principal);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
}

.dropdown-item:not(.disabled):hover {
    background-color: rgba(67, 176, 42, 0.08);
    color: #43B02A;
}

.dropdown-item .material-symbols-rounded {
    font-size: 22px;
    color: var(--azul-principal);
    transition: all var(--transition);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.dropdown-item:not(.disabled):not(.logout):hover .material-symbols-rounded {
    color: #43B02A;
    font-variation-settings: 'FILL' 1;
}

/* Item Desabilitado */
.dropdown-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-item.disabled .material-symbols-rounded {
    color: var(--cinza-medio);
}

/* Logout */
.dropdown-item.logout {
    color: var(--laranja);
}

.dropdown-item.logout:hover {
    background-color: rgba(250, 118, 37, 0.08);
    color: var(--laranja);
}

.dropdown-item.logout .material-symbols-rounded {
    color: var(--laranja);
}

.dropdown-item.logout:hover .material-symbols-rounded {
    color: var(--laranja);
    font-variation-settings: 'FILL' 1;
}

.main-header ~ .container {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto 40px auto;
    background: var(--branco);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    height: auto;
    display: block;
    position: static;
    overflow: visible;
}

/* Header interno da página */
.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--azul-principal);
    margin: 0;
}

/* Profile Photo */
.profile-photo {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--azul-principal);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2);
    transition: var(--transition);
}

.profile-photo img:hover {
    border-color: var(--verde-limao);
    transform: scale(1.05);
}

.btn-alter-foto {
    margin-top: 15px;
    background: transparent;
    border: 1.5px solid var(--azul-principal);
    border-radius: var(--radius-pill);
    color: var(--azul-principal);
    cursor: pointer;
    padding: 8px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-alter-foto:hover {
    background: var(--azul-principal);
    color: var(--branco);
}

/* Form Layout */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* Sections */
.section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--azul-principal);
    border-bottom: 2px solid var(--cinza-claro);
    padding-bottom: 10px;
    grid-column: 1 / -1; /* Ocupa toda a largura */
}

.section-title:first-of-type {
    margin-top: 0;
}

/* Campos que devem ocupar toda a largura */
.form > label.full-width,
.form > .button,
.form > .toggle-box {
    grid-column: 1 / -1;
}

/* Form Elements */
form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--azul-principal);
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--texto-principal);
    transition: var(--transition);
    box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--azul-principal);
    background: var(--branco);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

textarea {
    height: 120px;
    resize: vertical;
}

.row {
    display: flex;
    gap: 20px;
}

.row>label {
    flex: 1;
}

/* Toggles */
.toggle-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background: var(--cinza-claro);
    padding: 15px;
    border-radius: var(--radius-md);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-right: 15px;
    flex-shrink: 0;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background: #CBD5E0;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .3s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: .3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background: var(--verde-limao);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.toggle-text strong {
    display: block;
    font-size: 15px;
    color: var(--azul-principal);
    margin-bottom: 4px;
}

.toggle-text p {
    margin: 0;
    font-size: 13px;
    color: var(--cinza-escuro);
    line-height: 1.4;
}

/* Submit Button */
.button {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    max-width: 300px;
    padding: 16px;
    background: var(--verde-limao);
    color: var(--azul-principal);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(204, 238, 82, 0.4);
}

.btn-submit:hover {
    background: var(--laranja);
    color: var(--branco);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 118, 37, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .form {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .section-title {
        grid-column: 1;
    }
    
    .form > label:not(.row > label),
    .form > .row,
    .form > .button,
    .form > .toggle-box {
        grid-column: 1;
    }
}

@media (max-width: 580px) {
    .main-header ~ .container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
        max-width: 100%;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }

    h1 {
        font-size: 26px;
    }
    
    .form {
        gap: var(--spacing-sm);
    }
}