/* Layout Optimized Specific Styles */

/* Melhorias visuais */
.content-area {
    border-radius: 0px;
    box-shadow: none;
}

.sidebar-module {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Removido transition para evitar "danÃ§a" */
}

/* Hover APENAS na sidebar-left - SIMPLIFICADO */
.sidebar-left .sidebar-module:hover {
    /* Hover suave apenas mudando opacidade */
    opacity: 0.95;
}

/* AnimaÃ§Ãµes - SIMPLIFICADO (sem translateY para evitar "danÃ§a") */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sidebar-module {
    animation: fadeIn 0.3s ease;
}

/* Scroll customizado para sidebar mobile */
.mobile-sidebar::-webkit-scrollbar {
    width: 8px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: #5e3100;
    border-radius: 4px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: #7e5100;
}

/* Melhorias para links */
.menu-links a {
    padding: 2px 0;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 5px;
}

/* Status indicators */
.status-online {
    color: #2ecc71;
}

.status-offline {
    color: #e74c3c;
}

/* Form improvements */
.search:focus {
    outline: none;
    border-color: #5e3100;
    box-shadow: 0 0 5px rgba(94, 49, 0, 0.5);
}

.search-button:active {
    transform: translateY(1px);
}

/* Table improvements */
.sidebar table {
    border-collapse: collapse;
}

.sidebar table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Logo hover effect */
.site-logo {
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Navigation improvements */
nav.top-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    min-height: 20px;
    background-repeat: repeat-x;
    background-position: center;
    position: relative;
    height: auto;
    background-size: cover;
    background: none;
    margin: 0 auto;
    align-content: center;
    flex-direction: row;
}

.nav-item {
    transition: opacity 0.2s ease;
}

.nav-item:hover {
    opacity: 0.8;
}

/* Text-only top menu items (no images) */
/* Text-only top menu items (no images) */
.nav-text {
    display: inline-block !important;
    padding: 8px 12px !important;
    margin: 0 4px !important;
    color: #f5e6cc !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-family: "IM Fell English", serif !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    font-size: 11px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 100%) !important;
    border: 1px solid rgba(94, 49, 0, .65) !important;
    border-radius: 6px !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
    transition: all .2s ease !important;
}

.top-navigation .nav .nav-left .nav-text,
.top-navigation .nav .nav-right .nav-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    max-height: 34px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    text-align: center !important;
}

.nav-text:hover {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 100%);
    border-color: #896425;
    color: #ffe1a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

/* Estado ativo */
.nav-text.active {
    background: linear-gradient(180deg, rgba(137, 92, 24, 0.55) 0%, rgba(137, 92, 24, 0.35) 100%);
    border-color: #896425;
    color: #fff4cf;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* Responsivo: reduzir padding em telas menores */
@media (max-width: 768px) {
    .nav-text {
        padding: 8px 10px !important;
        margin: 0 4px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        font-size: 10px !important;
    }
}

/* Sidebar menu-header hover fix - prevenir "danÃ§a" */
.menu-header {
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Hover APENAS na sidebar-left */
.sidebar-left .menu-header:hover {
    /* Remover qualquer transform que possa causar "danÃ§a" */
    transform: none !important;
}

/* Garantir que o menu-content nÃ£o afete o layout quando fechado */
.menu-content {
    pointer-events: none;
}

.menu-content.menu-open,
.menu-header.active+.menu-content {
    pointer-events: auto;
}

/* Social icons improvements */
.menu-content img {
    transition: transform 0.3s ease;
}

.menu-content a:hover img {
    transform: scale(1.1);
}

/* Loading animation for dynamic content */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Sidebar-right: sempre aberta, sem accordion */
.sidebar-right .menu-header {
    cursor: default !important;
    pointer-events: none;
}

.sidebar-right .menu-content {
    max-height: none !important;
    opacity: 1 !important;
    padding: 0px !important;
    display: block !important;
    pointer-events: auto;
}

.sidebar-right .sidebar-module.sidebar-boost .menu-content,
.sidebar-right .sidebar-module.sidebar-info .menu-content,
.sidebar-right .sidebar-module.sidebar-search .menu-content {
    padding: 10px 10px !important;
}

.sidebar-right .sidebar-module.sidebar-powergamers td {
    max-width: 80px;
    overflow: hidden;
}

.sidebar-right .menu-header::after {
    display: none !important;
}

/* Remover TODOS os efeitos hover da sidebar-right */
.sidebar-right .sidebar-module:hover {
    box-shadow: none !important;
    transform: none !important;
}

.sidebar-right .menu-header:hover {
    background: linear-gradient(90deg, rgb(68 55 40) 0%, rgb(65 38 7) 35%, rgb(137 92 24) 100%) !important;
}

.sidebar-right .sidebar-module.hover {
    box-shadow: none !important;
}

/* Navigation and Logo Optimizations */
nav.top-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    min-height: 20px;
    background-repeat: repeat-x;
    background-position: center;
    position: relative;
    height: 80px;
    background-size: cover;
    background: none;
    margin: 0 auto;
    align-content: center;
    flex-direction: row;
}

.logo-row {
    display: flex;
}

aside.sidebar.sidebar-right .menu-header::after {
    content: none
}

aside.sidebar.sidebar-right .menu-header.active,
aside.sidebar.sidebar-right .menu-header {
    cursor: auto;
}