/* ===== BASE DA TELA ===== */
.ae-wrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

.ae-title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 24px;
    color: #f8fafc;
}

.ae-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.ae-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ae-grid-full {
    grid-column: 1 / -1;
}

.ae-field {
    display: flex;
    flex-direction: column;
}

.ae-field label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.ae-field input,
.ae-field select,
.ae-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-sizing: border-box;
}

.ae-field input:focus,
.ae-field select:focus,
.ae-field textarea:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.ae-field textarea {
    min-height: 120px;
    resize: vertical;
}

.ae-section-title {
    margin: 30px 0 12px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

/* ===== BLOCO DE FOTOS ===== */
.ae-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.ae-photo-box {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    padding: 12px;
}

.ae-photo-box img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 12px;
}

.ae-photo-empty {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
}

.ae-photo-box input[type="file"] {
    width: 100%;
    font-size: 13px;
}

/* ===== AÇÕES ===== */
.ae-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ae-btn {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .2s ease, background .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ae-btn:hover {
    transform: translateY(-1px);
}

.ae-btn-primary {
    background: #0f172a;
    color: #ffffff;
}

.ae-btn-primary:hover {
    background: #020617;
}

.ae-btn-light {
    background: #e5e7eb;
    color: #111827;
}

.ae-btn-light:hover {
    background: #d1d5db;
}

/* ===== TOPBAR DO AGENTE ===== */
.pa-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    background: #020617;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pa-topbar__left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pa-topbar__left strong {
    font-size: 18px;
    font-weight: 800;
}

.pa-topbar__subtitle {
    font-size: 13px;
    color: #94a3b8;
}

.pa-topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pa-user {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
}

.pa-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pa-menu a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

.pa-menu a:hover {
    color: #ffffff;
}

.pa-logout {
    color: #fca5a5 !important;
}

.pa-logout:hover {
    color: #fecaca !important;
}

/* ===== TABLET ===== */
@media (max-width: 991px) {
    .ae-wrap {
        max-width: 900px;
    }

    .ae-title {
        font-size: 30px;
    }

    .ae-panel {
        padding: 24px;
    }

    .ae-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
    .ae-wrap {
        margin: 20px auto;
        padding: 0 14px 24px;
    }

    .ae-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .ae-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .ae-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ae-grid-full {
        grid-column: auto;
    }

    .ae-section-title {
        font-size: 20px;
        margin: 26px 0 10px;
    }

    .ae-photos {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ae-photo-box img,
    .ae-photo-empty {
        height: 220px;
    }

    .ae-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ae-btn {
        width: 100%;
        min-height: 46px;
    }

    .pa-topbar {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .pa-topbar__left,
    .pa-topbar__right {
        width: 100%;
    }

    .pa-topbar__right {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pa-menu {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pa-menu a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(255,255,255,0.05);
    }

    .pa-menu a:hover {
        background: rgba(255,255,255,0.10);
    }
}

/* ===== MOBILE PEQUENO ===== */
@media (max-width: 480px) {
    .ae-title {
        font-size: 24px;
    }

    .ae-field label {
        font-size: 14px;
    }

    .ae-field input,
    .ae-field select,
    .ae-field textarea {
        font-size: 14px;
        padding: 12px;
    }

    .ae-photo-box img,
    .ae-photo-empty {
        height: 180px;
    }

    .pa-topbar__left strong {
        font-size: 16px;
    }

    .pa-topbar__subtitle,
    .pa-user,
    .pa-menu a {
        font-size: 13px;
    }
} 

/* ===== NAV PRINCIPAL ===== */
.pa-nav {
    width: 100%;
    background: var(--brand-green);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* container interno */
.pa-nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* links */
.pa-nav__inner a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    padding: 6px 10px;
    border-radius: 6px;

    transition: all 0.2s ease;
}

/* hover bonito */
.pa-nav__inner a:hover {
    background: rgba(255,255,255,0.15);
}

/* botão sair */
.pa-nav__inner .pa-sair {
    background: var(--brand-green-dark);
}

.pa-nav__inner .pa-sair:hover {
    background: rgba(0,0,0,0.25);
}


@media (max-width: 768px) {

    .pa-nav__inner {
        
        gap: 10px;
         
    }

    .pa-nav__inner a {
        text-align: center;
        width: 100%;
        padding: 10px;
    }

}