/* Dropdown Moderno do Usuário */
.modern-user-menu .dropdown-menu {
    width: 300px;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-top: 15px;
    background: #fff;
}
    .header-btn-wrapper.green-btn {
        background-color: #11a94e;
        border: 2px solid transparent;
    }
    
        .header-btn-wrapper {
        cursor: pointer;
        border-radius: 25px;
        height: 38px;
        font-weight: bold;
        display: flex;
        align-items: center;
        padding: 0 20px;
        margin-left: 10px;
        transition: all 0.2s;
    }
/* Cabeçalho do Menu (Perfil) */
.user-menu-header {
    padding: 20px;
    background: #f9f9f9;
    position: relative;
    border-bottom: 1px solid #eee;
}
.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-info-wrapper img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.user-details {
    display: flex;
    flex-direction: column;
}
.user-name {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}
.badge-pro {
    background: #ae0000;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}
.user-link {
    font-size: 13px;
    color: #ae0000;
    font-weight: 500;
}
.full-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* Conteúdo com Scroll */
.menu-scroll-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}
.menu-scroll-content::-webkit-scrollbar { width: 5px; }
.menu-scroll-content::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* Itens da Lista */
.modern-user-menu .dropdown-menu > li > a {
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    font-weight: 500;
}
.modern-user-menu .dropdown-menu > li > a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    color: #888;
    font-size: 16px;
}
.modern-user-menu .dropdown-menu > li > a:hover {
    background-color: #fff0f0;
    color: #ae0000;
}
.modern-user-menu .dropdown-menu > li > a:hover i {
    color: #ae0000;
}

/* Divisorias */
.menu-divider {
    height: 1px;
    background: #f1f1f1;
    margin: 8px 0;
}

/* Footer do Menu (Logout) */
.menu-footer {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
}
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}
.logout-btn:hover {
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
}
.logout-btn svg {
    margin-right: 8px;
    width: 18px;
}

/* Toggle Night Mode */
.mode-toggle-wrapper {
    justify-content: space-between;
    width: 100%;
}
.mode-toggle-wrapper .custom_toggler_mode {
    margin: 0;
    min-width: 40px;
}

/* Points (Gamification) */
.points-wrapper {
    display: flex;
    align-items: center;
    background: #fff9e6;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ffeebc;
}
.points-icon {
    background: #ffca28;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    margin-right: 10px;
}
.points-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.points-val { font-weight: 800; color: #ff8f00; font-size: 12px;}
.points-label { font-size: 10px; text-transform: uppercase; color: #8d6e63; }

/* Modo Noturno (Night Mode Fixes) */
body.night-mode .modern-user-menu .dropdown-menu {
    background: #1a1a1a;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
body.night-mode .user-menu-header { background: #252525; border-color: #333; }
body.night-mode .user-name { color: #eee; }
body.night-mode .modern-user-menu .dropdown-menu > li > a { color: #ccc; }
body.night-mode .modern-user-menu .dropdown-menu > li > a:hover { background: #333; color: #fff; }
body.night-mode .menu-divider { background: #333; }
body.night-mode .menu-footer { background: #1a1a1a; border-top: 1px solid #333; }
body.night-mode .logout-btn { background: #333; color: #eee; }
body.night-mode .logout-btn:hover { background: #ae0000; color: #fff; }

.modern-search .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.modern-search input.form-control {
    background: #f1f1f1;
    border: 1px solid transparent;
    border-radius: 50px;
    padding-right: 40px;
    padding-left: 20px;
    height: 40px;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: none;
}
.modern-search input.form-control:focus {
    background: #fff;
    border-color: #ae0000; /* Sua cor vermelha */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 450px !important; /* Expande ao focar */
}
.modern-search .search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #777;
    padding: 5px;
    cursor: pointer;
}
/* Modo Noturno da Busca */
body.night-mode .modern-search input.form-control {
    background: #222;
    color: #fff;
}
body.night-mode .modern-search input.form-control:focus {
    background: #333;
    border-color: #555;
}

/* Ajuste Geral do Header para Flexbox */
@media (min-width: 768px) {
    .pt_main_hdr {
               display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        max-width: 1920px;
        height: 100%;
        padding: 0 15px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Logo na Esquerda */
    .pt_main_hdr .navbar-header {
        float: none !important;
        display: flex;
        align-items: center;
        width: auto;
    }
    
    /* Container da Direita (Busca + Menus) */
    .header-right-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-grow: 1; /* Ocupa todo o espaço restante */
        gap: 20px; /* Espaço entre a busca e o perfil */
    }

    /* Remove floats e ajusta as listas UL */
    .pt_main_hdr .nav.navbar-nav {
        float: none !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    /* Ajuste da Barra de Busca para alinhar */
    .search-header {
        margin: 0 !important;
        position: relative;
        top: auto;
        right: auto;
        left: auto;
    }
    
    /* Ajuste dos botões Join Now / Login */
    .header-btn-wrapper {
        cursor: pointer;
        border-radius: 25px;
        height: 38px;
        font-weight: bold;
        display: flex;
        align-items: center;
        padding: 0 20px;
        margin-left: 10px;
        transition: all 0.2s;
    }
    
    .header-btn-wrapper a {
        color: #fff !important;
        text-decoration: none;
        font-size: 14px;
    }

    .header-btn-wrapper.green-btn {
        background-color: #11a94e;
        border: 2px solid transparent;
    }
    
    .header-btn-wrapper.green-btn:hover {
        background-color: #0d8a40;
    }

    .header-btn-wrapper.border-btn {
        border: 2px solid #fff;
        background: transparent;
    }
    
    .header-btn-wrapper.border-btn:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Ajuste do Logo para remover margens estranhas */
    nav.navbar-findcond .logo-img {
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
    }
    
    nav.navbar-findcond .logo-img img {
        max-height: 60px;
        width: auto;
    }
}

