/* =============================
   Painel lateral - Menu, categorias e servidores
============================= */
.elex_common_header_fixed {
    position: fixed;
    top: 40px;                /* distância do topo */
    right: 1px;              /* canto direito da tela */
    width: 250px;             /* largura do painel */
    max-height: 90vh;         /* altura máxima da tela */
    overflow-y: auto;         /* scroll se necessário */
    z-index: 9999;
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    padding: 10px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #FFF;
}

/* Logo do painel */
.elex_common_header_fixed .website_logo,
.elex_common_header_fixed .website_m_logo {
    width: 80px;
    height: 40px;
    display: block;
    margin: 0 auto 10px auto;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Lista de links do menu */
.elex_common_header_fixed .base_component > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Links de menu */
.elex_common_header_fixed .base_component > ul > li > a {
    display: block;
    padding: 8px 10px;
    color: #FFF;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.elex_common_header_fixed .base_component > ul > li > a:hover {
    background-color: #0166c1;
    color: #fff;
}

/* Categorias e submenus */
.category_list {
    position: relative;
    z-index: 3000;
}

.category_list > a {
    font-family: 'Segoe UI';
    font-size: 14px;
    font-weight: 500;
    line-height: 50px;
    padding: 0 24px;
    display: block;
    color: #FFF;
    text-decoration: none;
}

.category_list:hover > a {
    background-color: #FFF;
    color: #0080fa;
}

/* Submenu de categorias */
.category_list > .c_dropdown {
    top: 50px;
    left: 0;
    min-width: 100%;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ebebeb;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1000;
}

.cat_menu_sub > div > a {
    display: block;
    float: left;
    width: 50%;
    font-family: 'Segoe UI';
    font-size: 12px;
    line-height: 40px;
    color: #757575;
    text-indent: 23px;
}

.cat_menu_sub > div > a:hover {
    color: #4f4f4f;
    text-decoration: underline;
}

/* Painel de servidores recentes */
.recent_list .recent_list_box,
.serlist .serlist_box {
    overflow-y: auto;
    max-height: 120px;
}

.recent_list li,
.serlist li {
    line-height: 40px;
    width: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    cursor: pointer;
    margin: 0 15px 15px 0;
    float: left;
}

.snum {
    width: 40px;
    background-color: #0080fa;
    text-align: center;
    color: #fff;
}

.scontent {
    padding-left: 9px;
    width: 151px;
    color: #868686;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Dropdowns internos (tags, servidores) */
.c_dropdown,
.msg_dropdown,
.tags_menu_list {
    position: relative;
    top: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ebebeb;
    min-width: 100%;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-top: 5px;
    z-index: 1000;
}

.c_dropdown ul li,
.msg_dropdown ul li,
.tags_menu_list ul li {
    padding: 8px 10px;
    cursor: pointer;
    white-space: nowrap;
    color: #474747;
}

.c_dropdown ul li:hover,
.msg_dropdown ul li:hover,
.tags_menu_list ul li:hover {
    background-color: #f5f5f5;
}

/* Scroll interno para listas longas */
.elex_common_header_fixed::-webkit-scrollbar {
    width: 6px;
}

.elex_common_header_fixed::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Overlay escuro (quando painel ativo) */
#body-view-gray {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #000;
    opacity: 0.2;
    z-index: 1010;
    display: none;
}

/* =============================
   Responsividade
============================= */
@media (max-width: 1024px) {
    .elex_common_header_fixed {
        width: 250px;
        right: 10px;
        top: 40px;
    }
}

@media (max-width: 768px) {
    .elex_common_header_fixed {
        width: 200px;
        right: 5px;
        top: 30px;
    }
}