/* ============================================
   OTServ List - Estilos Principais
   ============================================ */

/* Desktop: Mantém layout normal (sem min-width) */
/* Mobile e Tablet: Ajustes específicos abaixo */

:root {
    /* Dark Theme (Default) - Paleta Neutra (Cursor-like) */
    --bg-primary: #1e1e1e;
    --bg-secondary: #252526;
    --bg-tertiary: #2d2d30;
    --text-primary: #cccccc;
    --text-secondary: #858585;
    --text-muted: #6a6a6a;
    --border-color: #3e3e42;
    --accent-color: #007acc; /* Azul suave */
    --accent-hover: #0098ff; /* Azul mais claro */
    --accent-secondary: #3b82f6; /* Azul moderno */
    --accent-secondary-hover: #60a5fa; /* Azul claro */
    --success-color: #10b981; /* Verde neon */
    --success-hover: #34d399; /* Verde neon claro */
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* Cores Neon Vibrantes */
    --neon-green: #00ff41; /* Verde neon brilhante */
    --neon-red: #ff0040; /* Vermelho neon brilhante */
    --neon-orange: #ff6b00; /* Laranja neon brilhante */
    --neon-cyan: #00ffff; /* Ciano neon brilhante */
    --neon-yellow: #ffff00; /* Amarelo neon brilhante */
    --neon-pink: #ff00ff; /* Rosa neon brilhante */
    --pink-accent: #ec4899; /* Rosa moderno */
    --pink-hover: #f472b6; /* Rosa claro */
    --card-bg: #252526;
    --table-header-bg: #1e1e1e;
    --table-row-bg: #252526;
    --table-row-hover: #2a2d2e;
    --stat-card-bg: #1e1e1e;
    --input-bg: #252526;
    --input-border: #3e3e42;

    --text-sm: .875rem;
}

[data-theme="light"] {
    /* Light Theme - Paleta Moderna */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --accent-color: #8b5cf6; /* Roxo moderno */
    --accent-hover: #7c3aed; /* Roxo mais escuro */
    --accent-secondary: #3b82f6; /* Azul moderno */
    --accent-secondary-hover: #2563eb; /* Azul mais escuro */
    --success-color: #10b981; /* Verde neon */
    --success-hover: #059669; /* Verde mais escuro */
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Cores Neon Vibrantes (Light Mode - mais suaves) */
    --neon-green: #00d936;
    --neon-red: #ff1744;
    --neon-orange: #ff6b00;
    --neon-cyan: #00bcd4;
    --neon-yellow: #ffc107;
    --neon-pink: #e91e63;
    --info-color: #06b6d4;
    --pink-accent: #ec4899; /* Rosa moderno */
    --pink-hover: #db2777; /* Rosa mais escuro */
    --card-bg: #ffffff;
    --table-header-bg: #f1f5f9;
    --table-row-bg: #ffffff;
    --table-row-hover: #f8fafc;
    --stat-card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    
    /* Sombras sutis para melhor visibilidade */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Background gradiente para light mode */
[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    background-image: none;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Canvas de partículas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* Garantir que conteúdo fique acima do canvas */
.main-content,
.navbar,
.footer,
.useful-links-sidebar {
    position: relative;
    z-index: 1;
}

.navbar {
    z-index: 1000;
}

/* z-index já definido na seção específica abaixo */

.main-content {
    flex: 1;
    min-height: calc(100vh - 200px);
    transition: margin-left 0.3s ease;
    margin-top: 70px; /* Espaço para o navbar fixo */
}

.main-content-section {
    transition: margin-left 0.3s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: var(--text-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.navbar-brand-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.navbar-brand span {
    font-weight: 700;
    line-height: 1.2;
}

/* Live Data Badge */
.live-data-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    border-radius: 9999px;
    background-color: rgba(0, 255, 65, 0.2); /* Verde neon com transparência */
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.live-data-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.8), 0 0 12px rgba(0, 255, 65, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

.live-data-text {
    color: var(--neon-green);
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.6);
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 6px rgba(0, 255, 65, 0.8), 0 0 12px rgba(0, 255, 65, 0.6);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 255, 65, 1), 0 0 20px rgba(0, 255, 65, 0.8);
    }
}

/* Light mode adjustments */
[data-theme="light"] .live-data-badge {
    background-color: rgba(0, 217, 54, 0.15);
}

[data-theme="light"] .live-data-dot {
    background-color: var(--neon-green);
    box-shadow: 0 0 4px rgba(0, 217, 54, 0.6), 0 0 8px rgba(0, 217, 54, 0.4);
}

[data-theme="light"] .live-data-text {
    color: var(--neon-green);
    text-shadow: 0 0 3px rgba(0, 217, 54, 0.5);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo-icon i {
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-icon i {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
}

.nav-link span {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link:hover i,
.nav-link:hover span {
    color: #ffffff !important;
}

.nav-link.active {
    color: #ffffff !important;
}

.nav-link.active i,
.nav-link.active span {
    color: #ffffff !important;
}

/* Link Servers - Botão Principal Premium */
.nav-link-servers-premium {
    position: relative;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
                0 0 20px rgba(118, 75, 162, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: gradient-shift 3s ease infinite;
}

.nav-link-servers-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link-servers-premium:hover::before {
    left: 100%;
}

.nav-link-servers-premium .servers-icon-wrapper {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link-servers-premium .servers-icon-wrapper i {
    color: #ffffff !important;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-link-servers-premium .servers-text {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-link-servers-premium .servers-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.nav-link-servers-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6),
                0 0 30px rgba(118, 75, 162, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-link-servers-premium:hover .servers-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg) scale(1.1);
}

.nav-link-servers-premium:hover .servers-icon-wrapper i {
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.nav-link-servers-premium:hover .servers-text {
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.nav-link-servers-premium:hover .servers-badge {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.nav-link-servers-premium.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5),
                0 0 25px rgba(118, 75, 162, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 0 2px rgba(102, 126, 234, 0.3);
}

.nav-link-servers-premium.active .servers-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
}

.nav-link-servers-premium.active .servers-icon-wrapper i {
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

/* Light mode adjustments */
[data-theme="light"] .nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .nav-link i {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #000000 !important;
}

[data-theme="light"] .nav-link:hover i,
[data-theme="light"] .nav-link:hover span,
[data-theme="light"] .nav-link.active i,
[data-theme="light"] .nav-link.active span {
    color: #000000 !important;
}

[data-theme="light"] .nav-link-servers {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .nav-link-servers i.fa-server {
    color: var(--text-secondary) !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="light"] .nav-link-servers span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="light"] .nav-link-servers:hover,
[data-theme="light"] .nav-link-servers.active {
    color: #000000 !important;
}

[data-theme="light"] .nav-link-servers:hover i.fa-server,
[data-theme="light"] .nav-link-servers.active i.fa-server {
    color: #000000 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="light"] .nav-link-servers:hover span,
[data-theme="light"] .nav-link-servers.active span {
    color: #000000 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Light mode adjustments para Servers Premium */
[data-theme="light"] .nav-link-servers-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5),
                0 0 20px rgba(118, 75, 162, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .nav-link-servers-premium:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.7),
                0 0 30px rgba(118, 75, 162, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .nav-link-servers-premium.active {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6),
                0 0 25px rgba(118, 75, 162, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                0 0 0 2px rgba(102, 126, 234, 0.4);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0.9rem;
    min-width: 40px;
    padding: 8px 15px !important;
    border: none;
    background: transparent;
    color: var(--text-secondary) !important;
    cursor: pointer;
    line-height: 1.5;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-color) !important;
}

.theme-toggle-btn i {
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-item .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

/* ============================================
   STATISTICS (TOP - MODELO DA IMAGEM)
   ============================================ */

.stats-section-top {
    background-color: var(--bg-primary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.stats-section-top .stats-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.stats-top-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
    max-width: 100%;
}

.stat-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Light mode - sombras sutis para melhor visibilidade */
[data-theme="light"] .stat-item-top {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    background-color: #ffffff !important;
}

[data-theme="light"] .stats-section-top {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background-color: #ffffff !important;
}

/* Light mode - sombras para inputs e selects */
[data-theme="light"] .form-control,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select.form-control,
[data-theme="light"] .search-input,
[data-theme="light"] .search-input-panel {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    background-color: #ffffff !important;
    border-color: #cbd5e1;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] select.form-control:focus,
[data-theme="light"] .search-input:focus,
[data-theme="light"] .search-input-panel:focus {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    background-color: #ffffff !important;
}

.stat-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    flex: 1;
    background-color: transparent;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item-top:last-child {
    border-right: none;
}

.stat-item-top:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.stat-icon-top {
    font-size: 1.1rem;
}

.stat-icon-servers {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

.stat-icon-players {
    background: linear-gradient(135deg, var(--neon-green) 0%, #34d399 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.6), 0 0 20px rgba(0, 255, 65, 0.4);
}

.stat-icon-uptime {
    background: linear-gradient(135deg, var(--neon-orange) 0%, #ff8c42 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.6), 0 0 20px rgba(255, 107, 0, 0.4);
}

.stat-icon-countries {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #4dd0e1 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.4);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-value-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.stat-value-top {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1.2;
    transition: all 0.3s ease;
}

/* Indicador de mudança nas estatísticas */
.stat-change-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.stat-change-indicator.change-up {
    opacity: 1;
    transform: scale(1);
    color: var(--neon-green);
    background-color: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.6), 0 0 12px rgba(0, 255, 65, 0.4);
    animation: stat-bounce-up 0.4s ease;
}

.stat-change-indicator.change-down {
    opacity: 1;
    transform: scale(1);
    color: var(--neon-red);
    background-color: rgba(255, 0, 64, 0.15);
    box-shadow: 0 0 8px rgba(255, 0, 64, 0.6), 0 0 12px rgba(255, 0, 64, 0.4);
    animation: stat-bounce-down 0.4s ease;
}

.stat-change-indicator.change-none {
    opacity: 0;
    transform: scale(0);
}

.stat-change-indicator i {
    font-size: 0.75rem;
    text-shadow: 0 0 4px currentColor;
}

/* Animações para as estatísticas */
@keyframes stat-bounce-up {
    0% {
        opacity: 0;
        transform: scale(0) translateY(10px);
    }
    50% {
        transform: scale(1.2) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes stat-bounce-down {
    0% {
        opacity: 0;
        transform: scale(0) translateY(-10px);
    }
    50% {
        transform: scale(1.2) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Efeito visual na janela da estatística quando aumenta */
.stat-item-top .stat-value-top.stat-increased {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
    animation: stat-pulse-green 0.6s ease;
}

/* Efeito visual na janela da estatística quando diminui */
.stat-item-top .stat-value-top.stat-decreased {
    color: var(--neon-red);
    text-shadow: 0 0 8px rgba(255, 0, 64, 0.6);
    animation: stat-pulse-red 0.6s ease;
}

/* Animação de pulso verde */
@keyframes stat-pulse-green {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(0, 255, 65, 0);
    }
}

/* Animação de pulso vermelho */
@keyframes stat-pulse-red {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 0, 64, 0);
    }
}

/* Efeito de brilho no item da estatística quando atualiza */
.stat-item-top.stat-item-increased,
.stat-item-top.stat-item-decreased {
    animation: stat-item-glow 0.6s ease;
}

@keyframes stat-item-glow {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Efeito de brilho verde quando aumenta */
.stat-item-top.stat-item-increased {
    animation: stat-item-glow-green 0.6s ease;
}

@keyframes stat-item-glow-green {
    0%, 100% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: rgba(0, 255, 65, 0.1);
        box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.2);
    }
}

/* Efeito de brilho vermelho quando diminui */
.stat-item-top.stat-item-decreased {
    animation: stat-item-glow-red 0.6s ease;
}

@keyframes stat-item-glow-red {
    0%, 100% {
        background-color: transparent;
        box-shadow: none;
    }
    50% {
        background-color: rgba(255, 0, 64, 0.1);
        box-shadow: inset 0 0 20px rgba(255, 0, 64, 0.2);
    }
}

/* Light mode adjustments */
[data-theme="light"] .stat-item-top .stat-value-top.stat-increased {
    color: #00c853;
    text-shadow: 0 0 6px rgba(0, 200, 83, 0.5);
}

[data-theme="light"] .stat-item-top .stat-value-top.stat-decreased {
    color: #d32f2f;
    text-shadow: 0 0 6px rgba(211, 47, 47, 0.5);
}

[data-theme="light"] .stat-change-indicator.change-up {
    color: #00c853;
    box-shadow: 0 0 6px rgba(0, 200, 83, 0.5), 0 0 10px rgba(0, 200, 83, 0.3);
}

[data-theme="light"] .stat-change-indicator.change-down {
    color: #d32f2f;
    box-shadow: 0 0 6px rgba(211, 47, 47, 0.5), 0 0 10px rgba(211, 47, 47, 0.3);
}

.stat-label-top {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Light mode adjustments */
[data-theme="light"] .stat-item-top {
    background-color: transparent;
}

[data-theme="light"] .stat-item-top:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .stat-item-top {
    background-color: transparent;
}

[data-theme="dark"] .stat-item-top:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-section-top {
        padding: 10px 0;
    }
    
    .stat-item-top {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .stat-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .stat-icon-top {
        font-size: 1rem;
    }
    
    .stat-value-top {
        font-size: 1.3rem;
    }
    
    .stat-label-top {
        font-size: 0.65rem;
    }
}

/* ============================================
   STATISTICS (ANTIGAS - REMOVIDAS)
   ============================================ */

.stats-section {
    display: none !important; /* Esconder seção antiga */
}

.stat-icon-uptime {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: #ffffff;
}

.stat-icon-countries {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   FILTERS
   ============================================ */

.filters-section {
    display: none !important; /* Filtros agora estão dentro da tabela */
}

/* Estilos antigos mantidos para compatibilidade */
.filters-section-old {
    background-color: var(--bg-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-theme="light"] .filter-label {
    color: #495057 !important;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
    font-size: 0.8rem;
}

[data-theme="light"] .search-icon {
    color: #6c757d !important;
}

.search-input {
    padding-left: 32px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 6px;
    height: 32px;
    font-size: 0.85rem;
}

[data-theme="light"] .search-input {
    color: #1a1a1a !important;
    border-color: #adb5bd !important;
}

[data-theme="light"] .search-input::placeholder {
    color: #6c757d !important;
}

.search-input:focus {
    background-color: var(--input-bg);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

[data-theme="light"] .search-input:focus {
    color: #1a1a1a !important;
}

.filter-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 6px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.85rem;
}

[data-theme="light"] .filter-select {
    color: #1a1a1a !important;
    border-color: #adb5bd !important;
}

.filter-select:focus {
    background-color: var(--input-bg);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

[data-theme="light"] .filter-select:focus {
    color: #1a1a1a !important;
}

.btn-clear-filters {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
}

.btn-clear-filters:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent-color);
}


.btn-banned-servers {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
}

.btn-banned-servers:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.btn-banned-servers.active {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Estilos para Group Servers e Premium Servers Toggle */
.filter-toggle-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-servers-toggle,
.premium-servers-toggle {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.group-servers-toggle:hover,
.premium-servers-toggle:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.group-servers-toggle .form-check-input,
.premium-servers-toggle .form-check-input {
    margin: 0;
    cursor: pointer;
    width: 2rem;
    height: 1rem;
}

.group-servers-toggle .form-check-label,
.premium-servers-toggle .form-check-label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.group-servers-toggle .form-check-label i,
.premium-servers-toggle .form-check-label i {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.group-servers-toggle .form-check-input:checked ~ .form-check-label,
.premium-servers-toggle .form-check-input:checked ~ .form-check-label {
    color: var(--accent-color);
}

.premium-servers-toggle .form-check-label i.fa-crown {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Estilos para Group Servers */
.filters-section .form-check.form-switch {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-height: 28px;
    height: 28px;
}

.filters-section .form-check.form-switch:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.filters-section .form-check.form-switch .form-check-input {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.filters-section .form-check.form-switch .form-check-label {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 0;
}

.filters-section .form-check.form-switch .form-check-label i {
    margin-right: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* Estilos para servidores banidos */
.banned-server-row {
    background-color: rgba(220, 53, 69, 0.1) !important;
    opacity: 0.8;
}

.banned-server-row:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
}

.ban-badge {
    background-color: var(--danger-color);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 8px;
    text-transform: uppercase;
}

.ban-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ban-type-spoofing {
    background-color: #dc3545;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

.ban-type-manual {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

.ban-type-other {
    background-color: var(--text-muted);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

.ban-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ban-reason-tooltip {
    cursor: help;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ban-reason-tooltip:hover {
    color: var(--accent-color);
}

/* ============================================
   ADVERTISING PANELS
   ============================================ */

.top-panels-container {
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-primary);
}

.banners-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin: 0 auto;
}

.top-panel-item {
    flex: 0 0 auto;
}

/* Responsivo: usar toda largura em telas menores */
@media (max-width: 1200px) {
    .banners-row {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .banners-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .banner-panel {
        width: 100%;
        max-width: 460px;
    }
    
    .box-panel {
        width: 125px;
    }
}

@media (min-width: 1200px) {
    .top-panels-container {
        max-width: 1140px; /* Mesmo max-width do container Bootstrap para telas grandes */
        margin: 0 auto;
        padding: 0 15px; /* Padding padrão do container */
    }
    
    .stats-section-top .stats-container {
        max-width: 1140px; /* Mesmo max-width dos painéis de banners/boxes */
    }
    
    .banners-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0;
        max-width: 100%;
        gap: 20px;
    }
    
    /* Banner 1 na extrema esquerda */
    .banners-row .top-panel-item[data-panel="featured"] {
        flex: 0 0 auto;
    }
    
    /* Box no centro - usando flex para centralizar */
    .banners-row .top-panel-item[data-panel="advertising"] {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-width: 0;
    }
    
    /* Banner 2 na extrema direita */
    .banners-row .top-panel-item[data-panel="featured2"] {
        flex: 0 0 auto;
    }
    
    .banners-row .banner-panel {
        width: 460px;
        max-width: 100%;
    }
    
    .banners-row .box-panel {
        width: 125px;
    }
}

/* Telas muito grandes - Bootstrap xxl breakpoint (≥1400px) */
@media (min-width: 1400px) {
    .top-panels-container {
        max-width: 1320px; /* Mesmo max-width do container Bootstrap xxl */
    }
    
    .stats-section-top .stats-container {
        max-width: 1320px; /* Mesmo max-width dos painéis de banners/boxes */
    }
}

/* ============================================
   REGISTER PAGE - FORMULÁRIO COMPACTO
   ============================================ */

.register-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.register-card-body {
    padding: 20px 24px !important;
}

.rules-section {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

.rules-section::-webkit-scrollbar {
    width: 8px;
}

.rules-section::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.rules-section::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.rules-section::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.register-title {
    color: var(--text-primary) !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px !important;
    display: flex;
    align-items: center;
}

.register-subtitle {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    margin-bottom: 16px !important;
    line-height: 1.4;
}

/* Override Bootstrap text-muted para dark mode */
.text-muted {
    color: var(--text-secondary) !important;
}

.register-form-row {
    margin-bottom: 12px;
}

.register-label {
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.register-input {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 4px;
}

.register-input:focus {
    background-color: var(--input-bg) !important;
    border-color: var(--accent-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

.register-input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6;
}

.register-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-right: 0;
    margin-top: 0 !important;
    flex-shrink: 0;
    align-self: flex-start;
}

.register-checkbox-label {
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    user-select: none;
    margin-bottom: 0;
    line-height: 1.5;
}

.register-checkbox:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.register-recaptcha {
    margin: 16px 0;
    display: flex;
    justify-content: flex-start;
}

.register-submit {
    margin-top: 16px;
}

.register-btn {
    background-color: var(--accent-color) !important;
    color: #000 !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    width: 100%;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.register-btn:hover {
    background-color: var(--accent-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.register-btn:active {
    transform: translateY(0);
}

/* Alert container */
#alert-container {
    margin-bottom: 16px;
}

#alert-container .alert {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 0;
}

#alert-container .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f8d7da;
}

#alert-container .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.3);
    color: #d1e7dd;
}

/* Responsivo */
@media (max-width: 768px) {
    .register-card-body {
        padding: 16px 18px !important;
    }
    
    .register-title {
        font-size: 1.3rem;
    }
    
    .register-subtitle {
        font-size: 0.85rem;
    }
    
    .register-form-row {
        margin-bottom: 14px;
    }
}

.banner-panel {
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    width: 460px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.banner-panel:hover {
    border-color: var(--accent-secondary);
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 0 10px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.box-panel {
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    width: 125px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.box-panel:hover {
    border-color: var(--pink-accent);
    box-shadow: 
        0 0 10px rgba(236, 72, 153, 0.5),
        0 0 20px rgba(236, 72, 153, 0.3),
        0 0 30px rgba(236, 72, 153, 0.2),
        inset 0 0 10px rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
}

.banner-panel::before,
.box-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.banner-panel:hover::before {
    opacity: 0;
}

.box-panel:hover::before {
    opacity: 0;
}

/* Light mode - sombras sutis para melhor visibilidade */
[data-theme="light"] .banner-panel {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #ffffff !important;
}

[data-theme="light"] .box-panel {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #ffffff !important;
}

/* Ajustes para light mode - brilho mais suave */
[data-theme="light"] .banner-panel:hover {
    box-shadow: 
        0 0 8px rgba(59, 130, 246, 0.4),
        0 0 16px rgba(59, 130, 246, 0.25),
        0 0 24px rgba(59, 130, 246, 0.15),
        inset 0 0 8px rgba(59, 130, 246, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .box-panel:hover {
    box-shadow: 
        0 0 8px rgba(236, 72, 153, 0.4),
        0 0 16px rgba(236, 72, 153, 0.25),
        0 0 24px rgba(236, 72, 153, 0.15),
        inset 0 0 8px rgba(236, 72, 153, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .box-panel:hover {
    box-shadow: 
        0 0 8px rgba(236, 72, 153, 0.4),
        0 0 16px rgba(236, 72, 153, 0.25),
        0 0 24px rgba(236, 72, 153, 0.15),
        inset 0 0 8px rgba(236, 72, 153, 0.08);
}

.panel-header {
    background-color: var(--bg-tertiary);
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    min-height: 20px;
    height: 20px;
}

.panel-header > span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.banner-panel .panel-header {
    font-size: 0.7rem;
}

.box-panel .panel-header {
    font-size: 0.6rem;
    padding: 4px 6px;
    min-height: 24px;
    height: 24px;
    line-height: 1.2;
}

.box-panel .panel-header i {
    font-size: 0.6rem;
    margin-right: 4px;
}

.panel-move-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    opacity: 0.7;
}

.panel-move-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    opacity: 1;
}

.panel-header i {
    color: var(--accent-color);
}

.panel-content {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.featured-server-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: 100%;
}

/* Featured Banner Server - 460x100px */
.featured-banner {
    width: 100%;
    height: 100%;
    max-width: 460px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.featured-banner img,
.featured-banner video {
    width: 460px;
    height: 100px;
    object-fit: fill;
    border-radius: 0;
    display: block;
    flex-shrink: 0;
}

/* Featured Box Server - 125x100px */
.advertising-banner {
    width: 100%;
    height: 100%;
    max-width: 125px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.advertising-banner img,
.advertising-banner video,
.advertising-banner iframe {
    width: 125px;
    height: 100px;
    object-fit: fill;
    border-radius: 0;
    display: block;
    flex-shrink: 0;
}

.featured-server-info h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.featured-server-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.featured-server-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-item .stat-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-launch {
    background-color: var(--danger-color);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-launch:hover {
    background-color: #c82333;
    color: #ffffff;
}

.launch-note {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.75rem;
}


/* Starting Soon Section */
.starting-soon-section {
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 122, 204, 0.15);
    position: relative;
}

/* Light mode - sombra mais visível */
[data-theme="light"] .starting-soon-section {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: #007acc;
}

.starting-soon-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007acc, #3b82f6, #06b6d4, #3b82f6, #007acc);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.starting-soon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 122, 204, 0.08);
    border-bottom: 1px solid rgba(0, 122, 204, 0.2);
}

.starting-soon-header h3 {
    color: var(--accent-color);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.starting-soon-header h3 i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Banner principal do countdown */
.starting-soon-banner {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1a10 50%, #1a0f0a 100%);
    border-radius: 0 0 10px 10px;
    padding: 8px 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2), inset 0 0 30px rgba(255, 107, 53, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.starting-soon-banner:hover {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4), 
                inset 0 0 40px rgba(255, 107, 53, 0.2),
                0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.starting-soon-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, rgba(247, 147, 30, 0.1) 30%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.starting-soon-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.starting-soon-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.starting-soon-left {
    flex: 1;
    min-width: 300px;
}

.starting-soon-title {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.6), 0 0 12px rgba(247, 147, 30, 0.4);
}

.starting-soon-title i,
.countdown-label .rocket-launch {
    font-size: 0.95rem;
    animation: rocket-launch 2s ease-in-out infinite;
    display: inline-block;
}

.rocket-icon {
    width: 18px;
    height: 18px;
    color: #ff6b35;
    filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.8)) drop-shadow(0 0 8px rgba(247, 147, 30, 0.6));
    animation: rocket-launch 2s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

@keyframes rocket-launch {
    0% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
    15% {
        transform: translateY(-5px) rotate(-10deg) scale(1.05);
        opacity: 0.95;
        filter: brightness(1.2);
    }
    30% {
        transform: translateY(-12px) rotate(5deg) scale(1.15);
        opacity: 0.9;
        filter: brightness(1.4);
    }
    50% { 
        transform: translateY(-20px) rotate(0deg) scale(1.3);
        opacity: 0.85;
        filter: brightness(1.6);
    }
    70% {
        transform: translateY(-12px) rotate(-5deg) scale(1.15);
        opacity: 0.9;
        filter: brightness(1.4);
    }
    85% {
        transform: translateY(-5px) rotate(10deg) scale(1.05);
        opacity: 0.95;
        filter: brightness(1.2);
    }
    100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
}

/* Efeito de fumaça/partículas no foguete */
.rocket-icon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.9) 0%, rgba(247, 147, 30, 0.7) 40%, transparent 70%);
    border-radius: 50%;
    animation: rocket-smoke 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rocket-smoke {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(4px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px) scale(1.5);
    }
}

.starting-soon-server-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    position: relative;
}

.starting-soon-link-icon {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.starting-soon-link-icon i {
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* Efeito neon no nome do servidor quando passar mouse no banner inteiro */
.starting-soon-banner:hover .starting-soon-name {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8),
                 0 0 20px rgba(0, 255, 255, 0.6),
                 0 0 30px rgba(0, 255, 255, 0.4),
                 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: neon-pulse-text 1.5s ease-in-out infinite;
}

@keyframes neon-pulse-text {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.8),
                     0 0 20px rgba(0, 255, 255, 0.6),
                     0 0 30px rgba(0, 255, 255, 0.4),
                     0 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 255, 255, 1),
                     0 0 25px rgba(0, 255, 255, 0.8),
                     0 0 35px rgba(0, 255, 255, 0.6),
                     0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.8)) brightness(1);
    }
    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 1)) brightness(1.3);
    }
}

/* Hover direto no ícone também */
.starting-soon-link-icon:hover {
    color: #00ffff;
    background-color: rgba(0, 255, 255, 0.2);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 1), 
                0 0 30px rgba(0, 255, 255, 0.8),
                0 0 40px rgba(0, 255, 255, 0.6),
                inset 0 0 15px rgba(0, 255, 255, 0.3);
}

.starting-soon-link-icon:hover i {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 1),
                 0 0 25px rgba(0, 255, 255, 0.9),
                 0 0 35px rgba(0, 255, 255, 0.7);
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 1));
}

.starting-soon-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 107, 53, 0.3);
}

.starting-soon-announcement {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.starting-soon-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 200px;
}

.starting-soon-countdown-wrapper {
    text-align: right;
    padding: 6px 12px;
    background: rgba(0, 122, 204, 0.12);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 122, 204, 0.2);
    backdrop-filter: blur(10px);
}

.countdown-label {
    font-size: 0.65rem;
    color: #ff6b35;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    text-shadow: 0 0 6px rgba(255, 107, 53, 0.6), 0 0 10px rgba(247, 147, 30, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    position: relative;
}

.countdown-label i,
.countdown-label .rocket-launch {
    font-size: 0.7rem;
    position: relative;
}


.countdown-timer {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8), 0 0 15px rgba(247, 147, 30, 0.6);
    letter-spacing: 0.5px;
}

.countdown-timer span {
    display: inline-block;
    min-width: 22px;
    text-align: center;
}

.countdown-days,
.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    color: #ffd23f;
    text-shadow: 0 0 10px rgba(255, 210, 63, 0.8), 0 0 15px rgba(255, 107, 53, 0.6);
}

/* Light mode adjustments */
[data-theme="light"] .starting-soon-banner {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 50%, #fff5f0 100%);
    border: 1px solid rgba(255, 107, 53, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 107, 53, 0.15), inset 0 0 30px rgba(255, 107, 53, 0.08);
}

[data-theme="light"] .starting-soon-banner::before {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.08) 30%, transparent 70%);
}

[data-theme="light"] .starting-soon-name {
    color: #1a0f0a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 8px rgba(255, 107, 53, 0.2);
}

[data-theme="light"] .starting-soon-announcement {
    color: #4a2c1a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .countdown-timer {
    color: #1a0f0a;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.6), 0 0 15px rgba(247, 147, 30, 0.4);
}

[data-theme="light"] .countdown-days,
[data-theme="light"] .countdown-hours,
[data-theme="light"] .countdown-minutes,
[data-theme="light"] .countdown-seconds {
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.6), 0 0 15px rgba(247, 147, 30, 0.4);
}

[data-theme="light"] .countdown-label {
    color: #ff6b35;
    text-shadow: 0 0 6px rgba(255, 107, 53, 0.5), 0 0 10px rgba(247, 147, 30, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .starting-soon-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .starting-soon-right {
        justify-content: center;
        min-width: auto;
    }
    
    .starting-soon-countdown-wrapper {
        text-align: center;
    }
    
    .starting-soon-title {
        font-size: 1.4rem;
    }
    
    .countdown-timer {
        font-size: 1.4rem;
    }
}

/* Pagination - Compact Style (like image) */
.pagination-container-top {
    margin: 0;
    margin-bottom: 8px; /* Bem rente à tabela */
    display: none; /* Agora está dentro da tabela */
    justify-content: flex-end;
}

.pagination-container-bottom {
    margin-top: 8px; /* Bem rente à tabela */
    margin-bottom: 0;
    display: none; /* Agora está dentro da tabela */
    justify-content: flex-end;
}

.pagination {
    margin-bottom: 0;
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
}

.pagination-compact {
    gap: 2px;
}

.pagination li {
    display: inline-block;
}

.page-link {
    color: var(--text-primary);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    min-width: 32px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    color: var(--accent-color);
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background-color: var(--accent-color); /* Roxo moderno */
    border-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.page-item.disabled .page-link:hover {
    transform: none;
    color: var(--text-muted);
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

/* Light mode adjustments */
[data-theme="light"] .page-item.active .page-link {
    background-color: var(--accent-color); /* Roxo moderno */
    color: #ffffff;
}

/* ============================================
   SIDEBAR PANEL
   ============================================ */

.sidebar-panel {
    position: fixed;
    left: 0;
    top: 70px;
    width: 320px;
    height: calc(100vh - 70px);
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
}

.sidebar-panel.collapsed {
    transform: translateX(-100%);
}

.sidebar-panel.collapsed .sidebar-toggle {
    transform: translateX(0);
}

.sidebar-toggle {
    position: absolute;
    right: -30px;
    top: 20px;
    width: 30px;
    height: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    color: var(--text-secondary);
}

.sidebar-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
}

/* Ícone da seta muda baseado no estado (não precisa rotacionar) */
.sidebar-panel.collapsed .sidebar-toggle i {
    /* Seta para direita quando colapsado */
    transform: rotate(0deg);
}

.sidebar-panel:not(.collapsed) .sidebar-toggle i {
    /* Seta para esquerda quando expandido */
    transform: rotate(0deg);
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-tertiary);
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.sidebar-item {
    margin-bottom: 15px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item .banner-panel,
.sidebar-item .box-panel,
.sidebar-item .starting-soon-section {
    margin-bottom: 0;
}

/* Ajustar conteúdo principal quando sidebar está aberta */
.main-content-section {
    transition: margin-left 0.3s ease;
}

.main-content-section.with-sidebar {
    margin-left: 320px;
}

/* Responsividade - Esconder sidebar em telas pequenas */
@media (max-width: 768px) {
    /* Esconder completamente o sidebar-panel no mobile */
    .sidebar-panel {
        display: none !important;
    }
    
    .main-content-section.with-sidebar {
        margin-left: 0;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content-section {
    padding: 30px 0;
    background-color: var(--bg-primary);
}

.section-header {
    margin-bottom: 15px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   SERVERS TABLE (CORES ESCURAS NO MODO ESCURO)
   ============================================ */

.servers-table {
    background-color: var(--card-bg) !important;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Garantir cores escuras no modo escuro */
[data-theme="dark"] .servers-table {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] .servers-table thead {
    background-color: #252525 !important;
}

[data-theme="dark"] .servers-table thead th {
    background-color: #252525 !important;
    color: #ffffff !important;
}

/* Sobrescrever estilos do Bootstrap */
[data-theme="dark"] .table {
    --bs-table-bg: #2d2d2d;
    --bs-table-color: #ffffff;
    --bs-table-hover-bg: #353535;
    --bs-table-hover-color: #ffffff;
}

[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    color: #ffffff;
}

.servers-table thead {
    background-color: var(--table-header-bg);
}

.servers-table thead th {
    border: none;
    padding: 10px 8px;
    font-weight: 700;
    position: relative;
    white-space: nowrap; /* Impede quebra de linha no header */
    line-height: 1.3;
}

/* Wrapper para conteúdo do header (ícone + texto + sort icon) */
.servers-table thead th .header-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.2;
    flex-wrap: nowrap;
}

/* Garantir que ícones e texto não quebrem linha */
.servers-table thead th i {
    flex-shrink: 0;
    white-space: nowrap;
}

.column-explanation {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.7;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.servers-table thead th i.fa-server {
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.6);
}

.servers-table thead th i.fa-users {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.servers-table thead th i.fa-bolt {
    color: var(--neon-yellow);
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.6);
}

.servers-table thead th i.fa-shield-alt {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.servers-table thead th i.fa-chart-line {
    color: var(--neon-orange);
    text-shadow: 0 0 5px rgba(255, 107, 0, 0.6);
}

.servers-table thead th i.fa-code {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.servers-table thead th i.fa-tachometer-alt {
    color: var(--neon-red);
    text-shadow: 0 0 5px rgba(255, 0, 64, 0.6);
}

.servers-table thead th i.fa-cogs {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.servers-table thead th i {
    font-size: 0.7rem;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.servers-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.servers-table thead th.sortable:hover {
    background-color: var(--table-row-hover);
}

.servers-table thead th.sortable.active {
    color: var(--accent-color);
}

.sort-icon {
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.5;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.servers-table thead th.sortable:hover .sort-icon {
    opacity: 1;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.servers-table thead th.sortable.active .sort-icon {
    opacity: 1;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.servers-table tbody tr {
    background-color: var(--table-row-bg) !important;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.servers-table tbody tr:hover {
    background-color: var(--table-row-hover) !important;
}

/* Melhorar contraste no modo light */
[data-theme="light"] .servers-table {
    border: 1px solid #ced4da;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #ffffff !important;
}

[data-theme="light"] .servers-table thead {
    background-color: #e9ecef !important;
    border-bottom: 2px solid #ced4da;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .servers-table thead th {
    color: #1a1a1a !important;
    font-weight: 700;
}

[data-theme="light"] .servers-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff !important;
}

[data-theme="light"] .servers-table tbody tr:hover {
    background-color: #f5f5f5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .servers-table tbody td {
    color: #1a1a1a !important;
}

/* Garantir que as células da tabela usem cores escuras no modo escuro */
[data-theme="dark"] .servers-table tbody tr {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] .servers-table tbody tr:hover {
    background-color: #353535 !important;
}

[data-theme="dark"] .servers-table tbody td {
    background-color: transparent !important;
    color: #ffffff !important;
}

.servers-table tbody td {
    padding: 0px 12px;
    vertical-align: middle;
}

.servers-table tbody tr.highlighted-row {
    position: relative;
    background: linear-gradient(to right, rgba(255, 235, 59, 0.15) 0%, rgba(255, 235, 59, 0.05) 100%);
    border-left: 4px solid #ffd700;
    box-shadow: inset 0 0 20px rgba(255, 235, 59, 0.1);
}

/* Primeira coluna (para estrelas) - largura mínima */
/* Primeira coluna (#) - ajustada para 40px para acomodar a estrela */
.servers-table thead th:first-child {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 8px !important;
}

.servers-table tbody tr > td:first-child {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 8px !important;
    text-align: center;
}

/* Estrela posicionada dentro da primeira célula (coluna #) */
.servers-table tbody tr.highlighted-row > td:first-child.premium-star-cell {
    position: relative;
    cursor: help;
}

.servers-table tbody tr.highlighted-row > td:first-child.premium-star-cell::before {
    content: '⭐';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 12px rgba(255, 215, 0, 0.6);
    z-index: 1;
    animation: star-twinkle 2s ease-in-out infinite;
    line-height: 1;
    width: 16px;
    text-align: center;
    pointer-events: none;
}

.premium-star-tooltip {
    z-index: 2;
    position: relative;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

[data-theme="light"] .servers-table tbody tr.highlighted-row {
    background: linear-gradient(to right, rgba(255, 235, 59, 0.25) 0%, rgba(255, 235, 59, 0.1) 100%);
    border-left: 4px solid #f9a825;
}

[data-theme="light"] .servers-table tbody tr.highlighted-row > td:first-child.premium-star-cell::before {
    color: #f9a825;
    text-shadow: 0 0 6px rgba(249, 168, 37, 0.6), 0 0 10px rgba(249, 168, 37, 0.4);
}

.servers-table tbody tr.offline-row {
    opacity: 0.6;
}

.servers-table tbody td {
    padding: 0px 12px;
    vertical-align: middle;
    color: var(--text-primary) !important;
    border: none;
    background-color: transparent !important;
}

/* Larguras fixas para todas as colunas da tabela */
.servers-table {
    table-layout: fixed !important;
    width: 100%;
}

/* Coluna # (estrela premium) - definida acima */

/* Coluna SERVER */
.servers-table thead th[data-sort="name"],
.servers-table tbody td:nth-child(2) {
    width: 240px !important;
    min-width: 240px !important;
    max-width: none !important; /* Permitir expansão se necessário */
    overflow: visible !important;
    white-space: normal !important;
    text-align: left !important; /* Alinhar à esquerda */
}

/* Coluna PLAYERS */
.servers-table thead th[data-sort="online"],
.servers-table tbody td:nth-child(3) {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    text-align: center;
}

/* Coluna EXP/RATES */
.servers-table thead th[data-sort="exp"],
.servers-table tbody td:nth-child(4) {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    text-align: center;
}

/* Coluna PVP */
.servers-table thead th[data-sort="pvp"],
.servers-table tbody td:nth-child(5) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    text-align: center;
}

/* Coluna UPTIME */
.servers-table thead th[data-sort="uptime"],
.servers-table tbody td:nth-child(6) {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    text-align: center;
}

/* Coluna CLIENT */
.servers-table thead th[data-sort="client"],
.servers-table tbody td:nth-child(7) {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    text-align: center;
}

/* Coluna PING */
.servers-table thead th[data-sort="ping"],
.servers-table tbody td:nth-child(8) {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    text-align: center;
}

/* Coluna BOT / MC */
.servers-table thead th:last-child,
.servers-table tbody td:last-child {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    text-align: center;
    white-space: nowrap !important; /* Garantir que não quebre linha */
}

/* Garantir que o header BOT / MC não quebre */
.servers-table thead th:last-child .header-content {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

.server-name-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    overflow: visible;
    width: 100%;
    min-width: 150px; /* Garantir largura mínima */
}

.server-name-cell > .server-flag-rating-wrapper {
    flex-shrink: 0;
    flex-grow: 0;
}

.server-name-cell > .server-name-content {
    flex: 1 1 auto;
    min-width: 120px; /* Largura mínima para garantir visibilidade */
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: auto; /* Permitir que o flex funcione */
    text-align: left; /* Alinhar à esquerda */
}

.server-name-cell .server-name-main {
    min-width: 0; /* Permite truncamento */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left; /* Alinhar à esquerda */
}

.server-name-cell .server-name-main a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: left; /* Alinhar à esquerda */
}

.country-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SISTEMA DE RATING COM ESTRELAS
   ============================================ */

.server-flag-rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.server-rating-container {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.server-rating-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.5rem;
    line-height: 1;
}

.server-rating-stars .star {
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: inline-block;
}

.server-rating-stars .star.star-filled {
    color: #ffd700;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.server-rating-stars .star.star-empty {
    color: var(--text-muted);
    opacity: 0.3;
}

.server-rating-stars:hover .star {
    transform: scale(1.1);
}

.server-rating-stars .star i {
    font-size: 0.5rem;
}

/* Tooltip para rating - usando sistema custom-tooltip (removido CSS antigo baseado em title) */

/* Notificações de rating */
.rating-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.rating-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.rating-notification-success {
    background: linear-gradient(135deg, var(--neon-green) 0%, #34d399 100%);
    border-left: 4px solid var(--neon-green);
}

.rating-notification-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%);
    border-left: 4px solid var(--warning-color);
}

.rating-notification-error {
    background: linear-gradient(135deg, var(--neon-red) 0%, #ef4444 100%);
    border-left: 4px solid var(--neon-red);
}

.rating-notification-info {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-left: 4px solid var(--accent-color);
}

/* Light mode adjustments */
[data-theme="light"] .server-rating-stars .star.star-filled {
    color: #f9a825;
    text-shadow: 0 0 3px rgba(249, 168, 37, 0.5);
}

[data-theme="light"] .server-rating-stars .star.star-empty {
    color: var(--text-muted);
    opacity: 0.4;
}

/* Ajustar bandeira no modo escuro */
[data-theme="dark"] .country-flag {
    border-color: #404040;
}

.server-name-main {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.server-name-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.server-name-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

[data-theme="light"] .server-name-main {
    color: #1a1a1a !important;
}

[data-theme="light"] .server-name-link {
    color: #1a1a1a !important;
}

[data-theme="light"] .server-name-link:hover {
    color: var(--accent-color) !important;
}

.server-website {
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--text-secondary);
    text-align: left; /* Alinhar à esquerda */
}

[data-theme="light"] .server-website {
    color: #495057 !important;
}

[data-theme="light"] .server-website a {
    color: #0066cc !important;
}

[data-theme="light"] .server-website a:hover {
    color: #0052a3 !important;
    text-decoration: underline;
}

.server-website a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alinhar à esquerda */
    gap: 8px;
    width: 100%;
    text-align: left; /* Alinhar à esquerda */
}

.server-website a:hover {
    color: var(--accent-color);
}

.server-website-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left; /* Alinhar à esquerda */
}

.server-website-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.server-link {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.server-widget-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.server-widget-link,
.server-ping-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.server-widget-icon,
.server-ping-icon {
    flex-shrink: 0;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.server-external-icon {
    flex-shrink: 0;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Efeito hover neon nos ícones quando passar mouse sobre a linha do servidor */
.servers-table tbody tr:hover .server-external-icon {
    opacity: 1;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8), 0 0 12px rgba(0, 255, 255, 0.6), 0 0 16px rgba(0, 255, 255, 0.4);
    transform: scale(1.2);
}

.servers-table tbody tr:hover .server-widget-icon {
    opacity: 1;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.8), 0 0 12px rgba(0, 255, 65, 0.6), 0 0 16px rgba(0, 255, 65, 0.4);
    transform: scale(1.2);
}

.servers-table tbody tr:hover .server-ping-icon {
    opacity: 1;
    color: var(--neon-orange);
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.8), 0 0 12px rgba(255, 107, 0, 0.6), 0 0 16px rgba(255, 107, 0, 0.4);
    transform: scale(1.2);
}

[data-theme="light"] .servers-table tbody tr:hover .server-external-icon {
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 188, 212, 0.6), 0 0 10px rgba(0, 188, 212, 0.4);
}

[data-theme="light"] .servers-table tbody tr:hover .server-widget-icon {
    color: var(--neon-green);
    text-shadow: 0 0 6px rgba(0, 217, 54, 0.6), 0 0 10px rgba(0, 217, 54, 0.4);
}

[data-theme="light"] .servers-table tbody tr:hover .server-ping-icon {
    color: var(--neon-orange);
    text-shadow: 0 0 6px rgba(255, 107, 0, 0.6), 0 0 10px rgba(255, 107, 0, 0.4);
}

.players-count-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.players-count {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.players-count.online {
    color: var(--text-primary);
    /*text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);*/
}

.players-count.online::before {
    content: '👥';
    font-size: 0.85rem;
    filter: drop-shadow(0 0 4px rgba(0, 255, 65, 0.8));
}

.players-count.offline {
    color: var(--neon-red);
    text-shadow: 0 0 8px rgba(255, 0, 64, 0.6);
}

.players-count.offline::before {
    content: '⚫';
    filter: drop-shadow(0 0 4px rgba(255, 0, 64, 0.8));
}

/* Indicador de mudança de jogadores */
.players-change-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
    margin-left: 6px;
    line-height: 1;
}

.players-change-indicator.change-up {
    opacity: 1;
    transform: scale(1);
    color: #00ff41; /* Verde neon */
    background-color: rgba(0, 255, 65, 0.1);
    animation: bounce-in-up 0.4s ease;
}

.players-change-indicator.change-down {
    opacity: 1;
    transform: scale(1);
    color: #ff4757; /* Vermelho neon */
    background-color: rgba(255, 71, 87, 0.1);
    animation: bounce-in-down 0.4s ease;
}

.players-change-indicator.change-none {
    opacity: 0;
    transform: scale(0);
}

.players-change-indicator i {
    font-size: 0.65rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.players-change-indicator .change-value {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    margin-left: 2px;
}

/* Light mode adjustments */
[data-theme="light"] .players-change-indicator.change-up {
    color: #00c853;
    background-color: rgba(0, 200, 83, 0.15);
}

[data-theme="light"] .players-change-indicator.change-down {
    color: #d32f2f;
    background-color: rgba(211, 47, 47, 0.15);
}

@keyframes bounce-in-up {
    0% {
        opacity: 0;
        transform: scale(0) translateY(10px);
    }
    50% {
        transform: scale(1.2) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounce-in-down {
    0% {
        opacity: 0;
        transform: scale(0) translateY(-10px);
    }
    50% {
        transform: scale(1.2) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* EXP Badge Compacto com Tooltip */
.exp-badge-tooltip-container {
    position: relative;
    display: inline-block;
}

.exp-badge-compact {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    cursor: help;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exp-badge-compact:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.5);
}

.exp-badge-compact i {
    font-size: 0.9rem;
}

/* Tooltip Unificado - Estilo Padrão para Todos os Tooltips */
.custom-tooltip,
.exp-tooltip {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 180px;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99999 !important;
    white-space: normal;
}

/* Remover hover CSS - agora controlado via JavaScript */

/* Seta do tooltip - por padrão aponta para direita (tooltip à esquerda) */
.custom-tooltip::before,
.exp-tooltip::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--border-color);
}

.custom-tooltip::after,
.exp-tooltip::after {
    content: '';
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--bg-secondary);
}

/* Quando tooltip está à direita, seta aponta para esquerda */
.custom-tooltip.tooltip-right::before,
.exp-tooltip.tooltip-right::before {
    left: -12px;
    right: auto;
    border-left-color: transparent;
    border-right-color: var(--border-color);
}

.custom-tooltip.tooltip-right::after,
.exp-tooltip.tooltip-right::after {
    left: -11px;
    right: auto;
    border-left-color: transparent;
    border-right-color: var(--bg-secondary);
}

.custom-tooltip-header,
.exp-tooltip-header {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.custom-tooltip-content,
.exp-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-tooltip-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.8rem;
}

.rate-label {
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
}

.rate-value {
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 8px;
    min-width: 35px;
    text-align: right;
}

/* Cores específicas para cada rate */
.rate-experience .rate-value {
    color: var(--accent-color); /* Roxo moderno */
}

.rate-skills .rate-value {
    color: var(--accent-secondary); /* Azul moderno */
}

.rate-magic .rate-value {
    color: var(--accent-color); /* Roxo moderno */
}

.rate-loot .rate-value {
    color: var(--success-color); /* Verde neon */
}

.rate-spawn .rate-value {
    color: var(--pink-accent); /* Rosa moderno */
}

/* Estilos para light mode */
[data-theme="light"] .server-rates-panel {
    background: #f8f9fa;
    border-color: #dee2e6;
}

[data-theme="light"] .rate-experience .rate-value {
    color: var(--accent-color);
}

[data-theme="light"] .rate-skills .rate-value {
    color: var(--accent-secondary);
}

[data-theme="light"] .rate-magic .rate-value {
    color: var(--accent-color);
}

[data-theme="light"] .rate-loot .rate-value {
    color: var(--success-color);
}

[data-theme="light"] .rate-spawn .rate-value {
    color: var(--pink-accent);
}

/* Estilos para formulário de cadastro */
/* Rules section mais compacta */
.rules-section {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.rules-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.rules-section h4 {
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 8px;
}

.rules-section p,
.rules-section li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.rules-section ul {
    margin-bottom: 12px;
}

.register-label-small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

.exp-badge::before {
    content: '⚡';
    font-size: 0.9rem;
}

.pvp-badge {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.15) 100%);
    color: #dc3545;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.pvp-badge::before {
    content: '⚔';
    font-size: 0.9rem;
}

[data-theme="light"] .pvp-badge {
    background-color: #e9ecef !important;
    color: #1a1a1a !important;
    border: 1px solid #ced4da;
}

.uptime-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.uptime-value::before {
    content: '📊';
    font-size: 0.9rem;
}

[data-theme="light"] .uptime-value {
    color: #1a1a1a !important;
}

.client-version {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: rgba(108, 117, 125, 0.1);
    border-radius: 6px;
    font-weight: 600;
}

.client-version::before {
    content: '💻';
    font-size: 0.8rem;
}

[data-theme="light"] .client-version {
    color: #495057 !important;
}

[data-theme="light"] .players-count.offline {
    color: #6c757d !important;
}

/* ============================================
   PING & BOT/MC BADGES
   ============================================ */

.ping-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
}

.ping-loading {
    font-size: 0.75rem;
    color: var(--text-muted);
    animation: spin 1s linear infinite;
}

.ping-value {
    font-size: 0.85rem;
    font-weight: 500;
}

.ping-excellent {
    color: var(--success-color);
}

.ping-good {
    color: #17a2b8;
}

.ping-medium {
    color: #ffc107;
}

.ping-bad {
    color: #dc3545;
}

.ping-na {
    color: var(--text-muted);
}

.bot-mc-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    cursor: help;
}

.badge-bot {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-bot:hover {
    background-color: rgba(16, 185, 129, 0.25);
    transform: scale(1.1);
}

.badge-mc {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.badge-mc:hover {
    background-color: rgba(23, 162, 184, 0.25);
    transform: scale(1.1);
}

/* Container para tooltips de badges */
.badge-tooltip-container {
    position: relative;
    display: inline-block;
}

.badge-disabled {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
    opacity: 0.5;
}

[data-theme="light"] .badge-bot {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

[data-theme="light"] .badge-mc {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

[data-theme="light"] .badge-disabled {
    background-color: rgba(108, 117, 125, 0.05);
    color: #6c757d;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin-top: auto;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--accent-color);
    background-color: rgba(0, 122, 204, 0.08);
}

.footer-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-separator {
    color: var(--text-muted);
    margin: 0 4px;
    font-size: 0.8rem;
}

.footer-link i {
    font-size: 0.85rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page-container {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.contact-header {
    margin-bottom: 40px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-card-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.contact-card-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.contact-card-body {
    padding: 30px;
}

.contact-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.contact-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-input:focus {
    background-color: var(--input-bg);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

.contact-input::placeholder {
    color: var(--text-muted);
}

.contact-submit-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.contact-info-body {
    padding: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-content h5 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-quick-links {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-links-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-list li {
    margin-bottom: 12px;
}

.quick-links-list li:last-child {
    margin-bottom: 0;
}

.quick-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.quick-link:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    transform: translateX(5px);
}

.quick-link i {
    width: 20px;
    text-align: center;
}

/* Light mode adjustments */
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-quick-links {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-info-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-card-body {
        padding: 20px;
    }
    
    .contact-info-body {
        padding: 20px;
    }
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.spinner-modern {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--neon-green);
    border-right: 3px solid var(--neon-orange);
    border-bottom: 3px solid var(--neon-cyan);
    border-left: 3px solid var(--neon-pink);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   COMPACT MENU SYSTEM
   ============================================ */

.compact-menu-toggle {
    position: fixed !important;
    top: 15px !important;
    z-index: 9999 !important;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.compact-menu-toggle:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.compact-menu-toggle.active {
    background-color: var(--danger-color);
    color: #fff;
}

/* Quando o toggle está dentro da sidebar */
.compact-menu-toggle.sidebar-toggle-internal {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10001; /* Acima do header do sidebar */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    padding: 0;
}

.compact-menu-toggle.sidebar-toggle-internal:hover {
    background-color: var(--bg-secondary);
}

/* Hover com scale apenas se não tiver transform de posicionamento */
.compact-menu-toggle.sidebar-toggle-internal:not([style*="translateX"]):hover {
    transform: scale(1.1);
}

.compact-menu-toggle.sidebar-toggle-internal.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.compact-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px; /* Mais compacto */
    height: 100vh;
    background-color: var(--card-bg);
    border-right: 2px solid var(--border-color);
    z-index: 1000; /* Abaixo do toggle button mas acima do conteúdo */
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: width 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-secondary);
}

/* Esconder navbar quando sidebar estiver expandida */
body.sidebar-expanded {
    padding-top: 0 !important;
}

body.sidebar-expanded .main-content {
    margin-top: 0 !important;
}

body.sidebar-expanded .navbar,
body.sidebar-expanded #main-navbar {
    display: none !important;
}

/* NUNCA esconder filtros - eles devem sempre estar visíveis */
/* body.sidebar-expanded .filters-section {
    display: none !important;
} */

/* Esconder paginação do topo quando sidebar estiver ativo */
body.sidebar-expanded #pagination-container-top {
    display: none !important;
}

/* Estatísticas do topo sempre visíveis */
body.sidebar-expanded #stats-section-top {
    display: block !important;
}

/* Ajustar section-header para melhor alinhamento */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-container-top {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* Insights Cards */
.insight-card {
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color) !important;
}

.insight-card:hover .insight-icon {
    transform: scale(1.1);
}

.insight-icon {
    transition: transform 0.3s ease;
}

/* Insights Sidebar Navigation */
.list-group-item-action:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--accent-color) !important;
}

.list-group-item-action.active {
    background-color: var(--accent-color) !important;
    color: #000 !important;
    border-color: var(--accent-color) !important;
}

/* Estilizar scrollbar para WebKit (Chrome, Safari, Edge) */
.compact-sidebar::-webkit-scrollbar {
    width: 8px;
}

.compact-sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.compact-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.compact-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.compact-sidebar.expanded {
    display: block;
}

.compact-sidebar.minimized {
    width: 50px; /* Mais compacto */
}

.compact-sidebar.minimized .compact-sidebar-header {
    display: none; /* Esconder todo o header quando minimizado */
}

/* Manter o botão toggle visível mesmo quando o header está escondido */
/* Quando minimizado (seta para direita): centralizar no painel */
.compact-sidebar.minimized ~ .compact-menu-toggle.sidebar-toggle-internal,
.compact-sidebar.minimized .compact-menu-toggle.sidebar-toggle-internal {
    display: flex !important;
    position: fixed !important;
    top: 8px !important;
    right: auto !important;
    left: 11px !important; /* Centralizado no painel de 50px (50px / 2 - 14px = 11px) */
    transform: translateX(-50%) !important; /* Centralizar perfeitamente */
}

/* Quando expandido (seta para esquerda): na ponta direita do painel (do lado de fora) */
.compact-sidebar.expanded ~ .compact-menu-toggle.sidebar-toggle-internal,
.compact-sidebar.expanded .compact-menu-toggle.sidebar-toggle-internal {
    display: flex !important;
    position: fixed !important;
    top: 8px !important;
    right: auto !important;
    left: 220px !important; /* Na ponta direita do painel de 220px */
    transform: translateX(-50%) !important; /* Centralizar no ponto */
}

.compact-sidebar.minimized .compact-nav-link span,
.compact-sidebar.minimized .compact-stats {
    display: none;
}

.compact-sidebar.minimized .compact-nav-link {
    justify-content: center;
    padding: 8px; /* Reduzido de 12px */
}

.compact-sidebar.minimized .compact-nav-link i {
    margin: 0;
    font-size: 1.2rem;
}

/* Toggle button quando sidebar está minimizada - posicionar no topo */
.compact-sidebar.minimized .compact-menu-toggle.sidebar-toggle-internal {
    top: 6px;
    right: 2px; /* Na pontinha direita */
    position: absolute; /* Absoluto dentro da sidebar */
    z-index: 30; /* Acima de tudo na sidebar */
    width: 22px;
    height: 22px;
}

.compact-sidebar-header {
    background-color: var(--bg-tertiary);
    padding: 6px 8px; /* Mais compacto */
    padding-right: 44px; /* Espaço para o toggle button (28px + 8px margin) */
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Importante para posicionar o botão absolute */
    z-index: 20;
    min-height: 40px; /* Mais compacto */
    height: 76px; /* Altura fixa para centralização vertical */
}

.compact-sidebar-header-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.compact-sidebar-back-top {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
}

.compact-sidebar-back-top:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.compact-sidebar-back-top i {
    font-size: 0.85rem;
}

/* Esconder botão back-top quando sidebar está minimizada */
.compact-sidebar.minimized .compact-sidebar-back-top {
    display: none;
}

/* Mostrar botão de fechar quando sidebar está expandida para poder desativar modo compacto */
.compact-sidebar.expanded .compact-sidebar-close {
    display: flex !important;
}

.compact-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: center;
}

.compact-sidebar-logo i {
    font-size: 1rem !important; /* Mais compacto */
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.compact-sidebar-logo:hover i {
    transform: rotate(15deg) scale(1.1);
}

.compact-sidebar-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.85rem; /* Mais compacto */
    font-weight: 600;
    display: flex;
    align-items: center;
    line-height: 1;
    height: 100%;
}

.compact-sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 8px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.compact-sidebar-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Esconder botão de fechar quando o toggle button está dentro da sidebar */
/* O botão back-top substitui o botão de fechar */
.compact-sidebar.has-toggle-internal .compact-sidebar-close,
.compact-sidebar.expanded .compact-sidebar-close {
    display: none !important;
}

/* Mostrar botão back-top quando sidebar está expandida */
.compact-sidebar.expanded .compact-sidebar-back-top {
    display: flex !important;
}


.compact-sidebar-content {
    padding: 8px 6px; /* Mais compacto */
}

.compact-sidebar.minimized .compact-sidebar-content {
    padding: 6px 3px; /* Mais compacto */
    padding-top: 32px; /* Espaço para o toggle button */
}

.compact-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0; /* Mais compacto */
}

.compact-nav-list li {
    margin-bottom: 2px; /* Mais compacto */
}

.compact-nav-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Mais compacto */
    padding: 6px 8px; /* Mais compacto */
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 3px; /* Mais compacto */
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    font-size: 0.85rem; /* Mais compacto */
    width: 100%;
    text-align: left;
    cursor: pointer;
    min-height: 36px; /* Altura mínima para centralização vertical dos ícones */
}

.compact-nav-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.compact-nav-link.active {
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
}

.compact-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.compact-stats {
    margin-top: 15px; /* Reduzido de 20px */
    padding-top: 15px; /* Reduzido de 20px */
    border-top: 1px solid var(--border-color);
}

.compact-stats .stat-card {
    margin-bottom: 6px; /* Reduzido de 10px */
    padding: 8px 10px; /* Reduzido de 12px */
    background-color: var(--bg-tertiary);
    border-radius: 4px; /* Reduzido de 6px */
    border: 1px solid var(--border-color);
}

.compact-stats .stat-card .stat-content {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduzido de 12px */
}

.compact-stats .stat-card .stat-icon {
    width: 28px; /* Reduzido de 35px */
    height: 28px; /* Reduzido de 35px */
    font-size: 0.85rem; /* Reduzido de 1rem */
}

.compact-stats .stat-card .stat-info {
    flex: 1;
}

.compact-stats .stat-card .stat-value {
    font-size: 0.9rem; /* Reduzido de 1rem */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.compact-stats .stat-card .stat-label {
    font-size: 0.7rem; /* Reduzido de 0.75rem */
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ajustar conteúdo principal quando menu compacto está ativo */
body.compact-mode .main-content {
    padding-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .theme-toggle-btn span {
        display: none;
    }
}

/* ============================================
   SERVER GROUPING STYLES
   ============================================ */

.btn-group-toggle {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-group-toggle:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-hover);
    transform: scale(1.1);
}

.btn-group-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.server-group-main {
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease;
}

.server-group-main:hover {
    border-left-color: var(--accent-color);
}

.server-group-sub {
    background-color: var(--bg-secondary);
    opacity: 0.9;
    border-left: 3px solid var(--accent-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.server-group-sub:hover {
    background-color: var(--bg-tertiary);
    opacity: 1;
}

/* Badge para mostrar quantidade de servidores no grupo */
.server-website .badge {
    background-color: var(--accent-color) !important;
    color: #000 !important;
    font-weight: 600;
    padding: 2px 6px;
    flex-shrink: 0;
}

[data-theme="light"] .server-group-sub {
    background-color: #f8f9fa;
    border-left-color: var(--accent-color);
}

[data-theme="light"] .server-group-sub:hover {
    background-color: #e9ecef;
}

/* Animação de atualização em tempo real */
.players-count.updated {
    animation: pulse-update 0.5s ease-in-out;
    color: var(--accent-color) !important;
}

@keyframes pulse-update {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-primary) !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    min-width: 40px;
}

.language-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color) !important;
}

.language-flag {
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 4px;
}

.language-menu {
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.language-option:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

.language-option.active {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    font-weight: 600;
}

.language-option .fa-check {
    margin-left: auto;
    color: var(--accent-color);
}

.language-option .language-flag {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .language-btn {
        padding: 8px;
    }
}

/* ============================================
   FILTROS DENTRO DA TABELA
   ============================================ */

.filter-row {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.filter-row td {
    padding: 8px 4px !important;
    vertical-align: middle;
}

.filter-toggle-row {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.filter-toggle-row td {
    padding: 6px 12px !important;
}

.filter-toggle-left {
    display: flex;
    align-items: center;
}

/* Botão toggle de filtros */
#toggle-filters-btn i.fa-filter {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
    transition: all 0.3s ease;
}

#toggle-filters-btn:hover i.fa-filter {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.9);
    transform: scale(1.1);
}

#toggle-filters-btn.active i.fa-filter {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.9);
}

#toggle-filters-btn {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#toggle-filters-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

#toggle-filters-btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Input de pesquisa inline */
.search-input-wrapper-inline {
    position: relative;
    width: 100%;
}

.search-icon-inline {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    z-index: 1;
}

.search-input-inline {
    width: 100%;
    padding: 4px 8px 4px 28px;
    font-size: 0.85rem;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input-inline:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* Select inline */
.filter-select-inline {
    width: 100%;
    padding: 4px 8px;
    font-size: 0.85rem;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.filter-select-inline:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* Paginação inline */
.pagination-container-top-inline,
.pagination-container-bottom-inline {
    display: inline-flex;
    align-items: center;
}

.pagination-container-top-inline {
    margin-left: auto; /* Empurrar para a direita */
}

.pagination-container-bottom-inline {
    margin-left: auto; /* Empurrar para a direita */
}

.pagination-container-top-inline .pagination,
.pagination-container-bottom-inline .pagination {
    margin-bottom: 0;
}

/* Botões inline na linha de filtros */
.filter-row .btn-sm {
    padding: 2px 8px;
    font-size: 0.75rem;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-row .form-check-input {
    width: 1.5rem;
    height: 0.9rem;
    margin: 0;
}

.filter-row .form-check {
    margin: 0;
    padding: 0;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .filter-row td {
        padding: 6px 2px !important;
    }
    
    .search-input-inline,
    .filter-select-inline {
        font-size: 0.75rem;
        height: 26px;
        padding: 3px 6px 3px 24px;
    }
    
    .search-icon-inline {
        left: 6px;
        font-size: 0.75rem;
    }
    
    .filter-row .btn-sm {
        padding: 2px 6px;
        font-size: 0.7rem;
        height: 22px;
    }
}

/* ============================================
   FILTERS PANEL (MODAL/OVERLAY)
   ============================================ */

/* Filters Panel Inline (dentro da tabela) */
#filters-panel-row {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

#filters-panel-row[style*="table-row"] {
    display: table-row !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
}

.filters-panel-inline {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Light mode - sombra mais visível */
[data-theme="light"] .filters-panel-inline {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    background-color: #ffffff !important;
    border-color: #ced4da;
}

.filters-panel-inline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 8px 8px 0 0;
}

.filters-panel-inline-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.filters-panel-inline-close {
    color: var(--text-secondary);
    padding: 4px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.filters-panel-inline-close:hover {
    color: var(--text-primary);
}

.filters-panel-inline-body {
    padding: 16px;
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filters-panel-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filters-panel-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Campo de busca no topo */
.filter-search-top {
    margin-bottom: 8px;
}

/* Linhas de filtros (layout horizontal) */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

/* Grupos de filtros */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.filter-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rate-label-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.filters-panel-inline-footer {
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
}

/* Overlay antigo (comentado) */
.filters-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.filters-panel-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.filters-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.filters-panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.filters-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filters-panel-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.filters-panel-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.filters-panel-inline-body .filter-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filters-panel-inline-body .filter-group-label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* Botão de limpar pesquisa (usado no painel de filtros) */

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
    font-size: 0.85rem;
}

.search-clear-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
}

.search-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Ajuste específico para o botão dentro do painel */
.search-input-wrapper-panel .search-clear-btn {
    right: 8px;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
}

.search-input-wrapper-panel {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-panel {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
    font-size: 0.8rem;
}

.search-input-panel {
    width: 100%;
    padding: 6px 32px 6px 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

/* Ajustar padding quando há texto (para dar espaço ao botão de limpar) */
.search-input-wrapper-panel:has(.search-clear-btn[style*="flex"]) .search-input-panel,
.search-input-panel:not(:placeholder-shown) {
    padding-right: 32px;
}

.search-input-panel:focus,
.search-input-panel:focus-visible,
.search-input-panel:active,
.search-input-panel:focus-within {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1) !important;
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
}

.filter-select-panel {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-select-panel option {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
}

.filter-select-panel:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.range-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.range-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.range-separator {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Sliders para Players Online e Min. Uptime */
.filter-group-slider {
    min-width: 180px;
}

.filter-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.filter-slider-value {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color) !important;
    background-color: var(--border-color) !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

/* Track do slider (WebKit) */
.filter-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color) !important;
    background-color: var(--border-color) !important;
}

/* Thumb do slider (WebKit) */
.filter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffff !important;
    background-color: #00ffff !important;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 15px rgba(0, 255, 255, 0.6);
    border: 2px solid #ffffff;
    transition: all 0.2s ease;
    margin-top: -6px;
}

.filter-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8);
    background: #00ffff !important;
}

/* Track do slider (Firefox) */
.filter-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color) !important;
    background-color: var(--border-color) !important;
    border: none;
}

/* Thumb do slider (Firefox) */
.filter-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffff !important;
    background-color: #00ffff !important;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 15px rgba(0, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.filter-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8);
    background: #00ffff !important;
}

/* Light mode adjustments */
[data-theme="light"] .filter-slider {
    background: #ced4da !important;
    background-color: #ced4da !important;
}

[data-theme="light"] .filter-slider::-webkit-slider-runnable-track {
    background: #ced4da !important;
    background-color: #ced4da !important;
}

[data-theme="light"] .filter-slider::-moz-range-track {
    background: #ced4da !important;
    background-color: #ced4da !important;
}

.rate-range-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rate-input-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.rate-input {
    width: 80px;
    padding: 6px 8px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    background-color: var(--input-bg);
    color: var(--text-primary);
    text-align: center;
    transition: all 0.3s ease;
}

.rate-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.rate-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    flex-shrink: 0;
}

.rate-btn-decrease {
    border-radius: 4px 0 0 4px;
}

.rate-btn-increase {
    border-radius: 0 4px 4px 0;
}

.rate-btn:hover {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.rate-display {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    padding: 4px 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.rate-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rate-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: center;
}

.filter-switch {
    padding: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-switch .form-check-label {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.filters-panel-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

#clear-filters-panel {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Filter Count Badge */
.filter-count-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 18px;
    text-align: center;
}

#toggle-filters-btn.active .filter-count-badge {
    background-color: var(--accent-hover);
}

/* ============================================
   USEFUL LINKS SIDEBAR - Flag com painel hover
   ============================================ */

.useful-links-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
}

/* Flag (sempre visível na lateral esquerda) */
.useful-links-flag {
    position: relative;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 0 12px rgba(139, 92, 246, 0.4);
    z-index: 1001;
}

.useful-links-flag i {
    color: #ffffff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.useful-links-flag:hover {
    width: 45px;
    box-shadow: 4px 0 16px rgba(139, 92, 246, 0.6);
}

.useful-links-flag:hover i {
    transform: scale(1.1);
}

/* Painel expandido (aparece no hover) */
.useful-links-panel {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 50px;
}

.useful-links-sidebar.expanded .useful-links-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Links compactos (apenas favicons) */
.useful-link-item-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 6px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.useful-link-item-compact:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.useful-link-item-compact:hover .useful-link-icon-compact {
    transform: scale(1.15);
}

.useful-link-icon-compact {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.useful-link-icon-compact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.useful-link-icon-compact i {
    font-size: 1.3rem;
    color: var(--accent-color);
}

/* Tooltip para os links (usando atributo title) */
.useful-link-item-compact::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

.useful-link-item-compact:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Ajustar conteúdo quando sidebar está expandida */
body.useful-links-sidebar-expanded .main-content {
    margin-left: 0; /* Não empurra o conteúdo, apenas sobrepõe */
}

/* Responsive */
@media (max-width: 768px) {
    /* Garantir que o useful-links-sidebar apareça no mobile */
    .useful-links-sidebar {
        display: block !important;
        top: auto;
        bottom: 20px;
        transform: none;
        z-index: 1050 !important;
    }
    
    .useful-links-flag {
        width: 45px;
        height: 50px;
        z-index: 1051;
    }
    
    .useful-links-flag i {
        font-size: 1.1rem;
    }
    
    .useful-links-panel {
        top: auto;
        bottom: 0;
        transform: translateY(calc(100% + 8px)) translateX(-10px);
        border-radius: 8px 8px 0 0;
        border-left: 1px solid var(--border-color);
        border-bottom: none;
        flex-direction: row;
        left: 0;
        z-index: 1050;
    }
    
    .useful-links-sidebar.expanded .useful-links-panel {
        transform: translateY(calc(100% + 8px)) translateX(0);
    }
    
    .useful-link-item-compact::after {
        left: 50%;
        top: auto;
        bottom: calc(100% + 8px);
        transform: translateX(-50%) translateY(0);
    }
    
    .useful-link-item-compact:hover::after {
        transform: translateX(-50%) translateY(-4px);
    }
    
    /* Esconder compact-sidebar no mobile */
    .compact-sidebar {
        display: none !important;
    }
    
    .filters-panel-inline-body {
        grid-template-columns: 1fr;
        max-height: 500px;
        padding: 12px;
    }
    
    .filters-panel-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .filters-panel-body {
        padding: 16px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    .rate-range-group {
        gap: 6px;
    }
    
    .rate-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .rate-display {
        min-width: 70px;
        padding: 4px 8px;
    }
    
    /* Mobile: Permitir scroll horizontal e manter layout desktop */
    html, body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 1200px;
    }
    
    .container, .container-fluid {
        min-width: 1200px;
    }
    
    .navbar, .main-content, .server-list-container {
        min-width: 1200px;
    }
    
    .servers-table, .table-responsive {
        min-width: 1200px;
    }
    
    /* Ajustar elementos para melhor visualização no mobile */
    .stats-section-top {
        padding: 8px 0;
    }
    
    .stat-item-top {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .stat-value-top {
        font-size: 1.1rem;
    }
    
    .stat-label-top {
        font-size: 0.7rem;
    }
    
    /* Ajustar navbar no mobile */
    .navbar {
        padding: 8px 15px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }
    
    /* Ajustar banners e boxes */
    .banners-row {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .banner-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .box-panel {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ajustar tabela de servidores */
    .servers-table {
        font-size: 0.85rem;
    }
    
    .servers-table th,
    .servers-table td {
        padding: 8px 6px;
    }
    
    /* Ajustar filtros */
    .filters-panel-inline {
        margin: 4px;
    }
    
    .filters-panel-inline-header {
        padding: 6px 10px;
    }
    
    .filters-panel-inline-title {
        font-size: 0.9rem;
    }
}

/* ============================================
   PANEL NAVIGATION MENU
   ============================================ */

#panel-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

#panel-nav .nav-item {
    width: 100%;
    margin: 0;
}

#panel-nav .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px !important;
    margin: 0;
    color: var(--text-secondary) !important;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#panel-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.08), transparent);
    transition: left 0.5s ease;
}

#panel-nav .nav-link:hover::before {
    left: 100%;
}

#panel-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    transform: translateX(4px);
    box-shadow: 
        0 4px 12px rgba(0, 122, 204, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#panel-nav .nav-link.active {
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.15) 0%, rgba(0, 122, 204, 0.08) 100%);
    border-color: var(--accent-color);
    box-shadow: 
        0 4px 16px rgba(0, 122, 204, 0.2),
        0 2px 8px rgba(0, 122, 204, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

#panel-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

#panel-nav .nav-link i {
    font-size: 1.1rem;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

#panel-nav .nav-link:hover i,
#panel-nav .nav-link.active i {
    color: var(--accent-color);
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* Light mode adjustments */
[data-theme="light"] #panel-nav .nav-link:hover {
    background-color: var(--bg-tertiary);
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] #panel-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.15),
        0 2px 8px rgba(139, 92, 246, 0.1);
}

/* ============================================
   RESPONSIVE - Tablet (768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet: Permitir scroll horizontal e manter layout desktop */
    html, body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 1200px;
    }
    
    .container, .container-fluid {
        min-width: 1200px;
    }
    
    .navbar, .main-content, .server-list-container {
        min-width: 1200px;
    }
    
    .servers-table, .table-responsive {
        min-width: 1200px;
    }
    
    /* Ajustes menores para tablet */
    .stats-section-top {
        padding: 10px 0;
    }
    
    .stat-item-top {
        padding: 10px 12px;
    }
    
    .banners-row {
        justify-content: center;
        gap: 15px;
    }
}

