/* Navbar igual à do painel administrativo */

.admin-topbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
    border-bottom: 0;
    min-height: 56px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    width: 100%;
    flex: 0 0 auto;
}

.admin-topbar-inner {
    padding-left: 12px;
    padding-right: 12px;
}

.admin-topbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    margin-right: 16px;
}

.admin-topbar-brand:hover {
    color: #fff !important;
    text-decoration: none;
}

.admin-topbar-logo {
    width: auto;
    max-height: 32px;
    object-fit: contain;
}

.admin-topbar-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.admin-topbar-link,
.admin-topbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    font-size: 0.9375rem;
}

.admin-topbar-link:hover,
.admin-topbar .nav-link:hover,
.admin-topbar .nav-link:focus {
    color: #fff !important;
}

.admin-topbar .nav-item.active > .nav-link {
    background: #fff;
    color: #111 !important;
    border-radius: 999px;
    font-weight: 600;
}

.admin-topbar .nav-item.active > .nav-link:hover,
.admin-topbar .nav-item.active > .nav-link:focus {
    background: #fff;
    color: #111 !important;
}

.admin-topbar .nav-item.active > .dropdown-toggle::after {
    border-top-color: #111;
}

.admin-topbar .nav-item.active > .nav-link {
    background: #fff !important;
    color: #111 !important;
    border-radius: 999px;
    font-weight: 600;
}

.admin-topbar .nav-item.active > .nav-link:hover,
.admin-topbar .nav-item.active > .nav-link:focus {
    background: #fff !important;
    color: #111 !important;
}

.admin-topbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.admin-topbar-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    padding: 6px;
}

.admin-topbar-dropdown .dropdown-item {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 8px 12px;
    color: #0f172a;
}

.admin-topbar-dropdown .dropdown-item:hover,
.admin-topbar-dropdown .dropdown-item:focus,
.admin-topbar-dropdown .dropdown-item.active {
    background: #f1f5f9;
    color: #0f172a;
}

body.public-content-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #e6e6e6;
    color: #1e293b;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.public-content {
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 16px 32px;
}

.public-stack {
    width: 100%;
}

.public-hero,
.public-list {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.public-hero {
    background: #111;
    color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 28px 28px 24px;
    margin: 0 0 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.public-hero-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.public-hero h1 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-hero p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

.public-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chapa-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 14px 16px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.chapa-item-text {
    min-width: 0;
}

.chapa-item h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #1e293b;
}

.chapa-item p {
    margin: 6px 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #64748b;
}

.chapa-view-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
}

.chapa-view-btn:hover,
.chapa-view-btn:focus {
    background: #000;
    outline: none;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.faq-item-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #334155;
    cursor: pointer;
}

.faq-item-toggle:hover,
.faq-item-toggle:focus {
    background: #fafafa;
    outline: none;
}

.faq-item-toggle i {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.faq-item.is-open .faq-item-toggle i {
    transform: rotate(180deg);
}

.faq-item-body {
    display: none;
    padding: 0 18px 16px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
}

.faq-item.is-open .faq-item-body {
    display: block;
    padding-top: 14px;
}

.public-empty {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    color: #64748b;
}

.public-form-card {
    max-width: 520px;
    margin: 12px auto 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 32px 28px;
}

.public-form-card h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.public-form-card .public-lead {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

.public-field {
    margin-bottom: 16px;
}

.public-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.public-input-wrap {
    position: relative;
}

.public-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.public-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 14px 13px 40px;
    font: inherit;
    font-size: 1rem;
    color: #0f172a;
}

.public-input-wrap input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.public-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2563eb, #4285f4);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.public-submit:hover {
    filter: brightness(1.05);
}

.public-form-links {
    margin-top: 16px;
    text-align: center;
}

.public-form-links a {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.public-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.public-alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.public-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.public-footer {
    text-align: center;
    padding: 8px 16px 24px;
    color: #64748b;
    font-size: 0.75rem;
}

.public-footer p {
    margin: 0;
}

.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(17, 17, 17, 0.72);
    display: none;
    padding: 28px 18px;
}

.pdf-modal.is-open {
    display: block;
}

.pdf-modal-window {
    width: min(920px, 100%);
    height: calc(100vh - 56px);
    margin: 0 auto;
    background: #2b2b2b;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pdf-modal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    padding: 10px 12px;
}

.pdf-modal-bar strong {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.pdf-modal-close:hover,
.pdf-modal-close:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.pdf-modal-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #525659;
}

body.pdf-modal-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .admin-topbar .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .admin-topbar .navbar-nav {
        width: 100%;
    }

    .admin-topbar .nav-item {
        width: 100%;
    }

    .admin-topbar .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 10px 12px !important;
        border-radius: 8px;
    }

    .admin-topbar .nav-item.active > .nav-link,
    .admin-topbar .nav-item.active > .nav-link:hover,
    .admin-topbar .nav-item.active > .nav-link:focus {
        background: rgba(255, 255, 255, 0.14) !important;
        color: #fff !important;
        border-radius: 8px;
    }

    .admin-topbar .nav-item.active > .dropdown-toggle::after {
        border-top-color: #fff;
    }

    .admin-topbar .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin: 0 0 6px 28px;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .admin-topbar-dropdown .dropdown-item,
    .admin-topbar-dropdown .dropdown-item:hover,
    .admin-topbar-dropdown .dropdown-item:focus,
    .admin-topbar-dropdown .dropdown-item.active {
        color: rgba(255, 255, 255, 0.92);
        background: transparent;
        padding: 8px 10px;
    }

    .chapa-item {
        flex-direction: column;
        align-items: stretch;
    }

    .chapa-view-btn {
        justify-content: center;
    }

    .pdf-modal {
        padding: 0;
    }

    .pdf-modal-window {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
