.top-header {
    background: linear-gradient(90deg, #6B95BA 0%, #5B8BB5 50%, #020D12 100%);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    .top-header {
        height: 56px;
        padding: 0 12px 0 20px;
    }

    .header-left {
        padding-left: 4px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-menu-btn {
    display: none;
}

@media (min-width: 769px) {
    .header-menu-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-menu-btn {
        display: flex;
    }
}

.header-profile {
    display: flex;
    align-items: center;
}

.header-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.logo-square {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #5B8BB5;
}

@media (max-width: 768px) {
    .logo-square {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

.home-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.header-contratos-nav {
    display: flex !important;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.header-back-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 8px;
    margin: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s;
}

.header-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-contratos-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    display: inline-block !important;
}

.top-header .header-contratos-nav .home-text,
.top-header .header-contratos-title {
    display: inline-block !important;
}

.content-wrapper:not(.sidebar-expanded) .header-contratos-nav .home-text,
.content-wrapper:not(.sidebar-expanded) .header-contratos-title {
    display: inline-block !important;
}

.content-wrapper:not(.sidebar-expanded) .home-text {
    display: none;
}

@media (max-width: 768px) {
    .home-text {
        font-size: 14px;
    }
}

.home-dropdown-btn {
    background: rgba(91, 139, 181, 0.3);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

    .home-dropdown-btn:hover {
        background: rgba(91, 139, 181, 0.4);
    }

    .home-dropdown-btn i:first-child {
        font-size: 14px;
    }

    .home-dropdown-btn i:last-child {
        font-size: 10px;
        margin-left: 2px;
    }

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

    .dropdown-btn:hover {
        opacity: 0.8;
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #3A4A5C;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 180px;
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
}

    .dropdown-menu a {
        display: block;
        padding: 10px 16px;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: background 0.2s;
        font-size: 14px;
    }

        .dropdown-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
        }

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .header-right {
        gap: 8px;
    }
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 16px;
}

@media (max-width: 768px) {
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.icon-btn-bell, .header-notifications-btn {
    position: relative;
}

.header-notifications-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #fff;
    color: #5B8BB5;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.header-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #fff;
    color: #5B8BB5;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

    .language-selector img {
        width: 24px;
        height: 18px;
        border-radius: 2px;
    }

.language-menu {
    right: 0;
    left: auto;
}

    .language-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
    }


/* ══════════════════════════════════════════════════
   MÓDULO: SELETOR (PÁGINAS DO PERFIL)
   ══════════════════════════════════════════════════ */  

.header-module-dropdown {
    position: relative;
    display: inline-block;
}

.module-dropdown-toggle {
    background-color: #164e63; 
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

    .module-dropdown-toggle:hover {
        background-color: #0f3647;
    }

.module-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-dropdown-toggle i {
    font-size: 14px;
}

.module-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 200px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    z-index: 1050;
    border: 1px solid #e5e7eb;
}

.module-menu-item {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

    .module-menu-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
        color: #9ca3af;
    }

    .module-menu-item:hover {
        background-color: #f3f4f6;
        color: #111827;
    }

        .module-menu-item:hover i {
            color: #111827;
        }

    .module-menu-item.active {
        background-color: #f0f9ff;
        color: #0ea5e9;
    }

        .module-menu-item.active i {
            color: #0ea5e9;
        }

.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    background: transparent;
}
