/* Navigation Styles - Vertical Sidebar Theme */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch&display=swap');
/* Reset */
body {
    margin: 0;
    font-family: 'Chakra Petch', sans-serif;
    color: white;
    transition: margin-left 0.3s ease;
}
    a {text-decoration: none;color: var(--primary-color);}
    .card {
    background: #0d1320b0;
    border: 1px solid #20273c;
}
.card-header {
    background: linear-gradient(144deg, #242252 0%, #302aa5 50%, #15192b 100%);
    border-radius: 10px 10px 0 0;
}
.card-body {padding:10px !important;color:white}
.container-fluid {padding:0}
/* ========== SIDEBAR ========== */
.gaming-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(144deg, #242252 0%, #302aa5 50%, #15192b 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
    background: #0a0c16;
    border-right: 2px solid #20273c;
}

/* ========== MENU ICON (hiện ở mobile / tablet) ========== */
.menu-toggle-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    display: none; /* Mặc định ẩn (PC/Laptop) */
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background: rgb(255 255 255);
    color: var(--primary-color);
    border: 1px solid;
}

/* ========== MENU ========== */
.gaming-sidebar-menu {
    padding: 1rem 0;
    flex: 1;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    color: #d9d9d9;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 24px;
    background: #ededed2e;
}

.gaming-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gaming-menu-item, .gaming-menu-link {
    margin-bottom: 0.25rem;
}

.gaming-menu-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    color: rgb(255 255 255 / 80%);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.gaming-menu-link::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
    opacity: 0;
    transition: all 0.3s ease;
}

.gaming-menu-link.active::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.gaming-menu-link:hover,
.gaming-menu-link.active {
        color: white;
    background: linear-gradient(90deg, rgb(246 207 12 / 39%), rgba(255, 255, 255, 0.05));
    background: linear-gradient(144deg, #242252 0%, #302aa5 50%, #15192b 100%);
}

.nav-icon,
.game-icon-nav {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.game-icon-nav {
    width: 20px;
    height: 20px;
    filter: brightness(1.2);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 1025px) {
    body {
        margin-left: 240px;
    }
}

@media (max-width: 1024px) {
    body {
        margin-left: 0;
    }
    .gaming-sidebar {
        transform: translateX(-100%);
    }
    .gaming-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
        border-right: 2px solid #20273c;
                scrollbar-width: thin;
        scrollbar-color: #333333 rgba(10, 12, 22, 0.85);
    }
    .menu-toggle-btn {
        display: block;
    }
}

/* Scrollbar */
.gaming-sidebar::-webkit-scrollbar {
    width: 4px;
}
.gaming-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}
/* Sidebar Header */
.sidebar-header {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.sidebar-header .brand {
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.img-fluid {
    width: 100%;
    max-height: 170px;
}
.table>:not(caption)>*>* {background-color:transparent;color: white !important;border-bottom: 1px solid rgba(255, 255, 255, 0.2);padding:6px;}
.btn {color:white}
.dropdown-toggle {
    background: transparent;
}
.match-row:last-child {
    border-bottom: none !important;
}
/* Team Search Styles */
.team-search-container {
    position: relative;
}

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

.team-search-input {
    width: 280px;
    padding: 10px 40px 10px 40px;
    border: 2px solid #505051;
    border-radius: 25px;
    font-size: 14px;
    background: transparent;
    color: #333;
    transition: all 0.3s ease;
}

.team-search-input::placeholder {
    color: #999;
}

.team-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    background: #ffffff;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 14px;
    z-index: 2;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Match Filter Tabs */
.match-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #20273c;
    border-radius: 25px;
    background:transparent;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    color:white;
}

.filter-tab:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(144deg, #242252 0%, #302aa5 50%, #15192b 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.filter-tab .badge {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
    color:white;
}

.filter-tab.active .badge {
    background: rgba(255, 255, 255, 0.3);
}
/* Responsive Design */
@media (max-width: 768px) {
    .sidebar-header {padding:6px}
    .sidebar-header .brand img {height:50px !important}
    .team-search-input {
        width: 220px;
        padding: 8px 35px 8px 35px;
        font-size: 13px;
    }
    
    .match-filter-tabs {
        gap: 6px;
    }
    
    .filter-tab {
        padding: 8px 12px;
    }
}
@media (max-width: 576px) {
    .team-search-input {
        width: 180px;
        padding: 8px 30px 8px 30px;
        font-size: 12px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 12px;
    }
    
    .clear-search-btn {
        right: 12px;
        width: 18px;
        height: 18px;
    }
    
    .filter-tab {
        padding: 6px 10px;
    }
    
    .filter-tab .badge {
        padding: 1px 6px;
        font-size: 11px;
        margin-left: 6px;
    }
}
/* Shine effect for brand logo */

.sidebar-header .brand img {
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    filter: saturate(1.05) contrast(1.02);
    height: 70px;
    width:100%;
}

.sidebar-header .brand:hover img {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(240, 147, 251, 0.35);
}

/* ========== SUBMENU STYLES ========== */
.gaming-menu-item.has-submenu {
    position: relative;
}

.gaming-menu-item.has-submenu .submenu-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.gaming-menu-item.has-submenu:hover .submenu-arrow,
.gaming-menu-item.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px; /* Always show submenu */
    overflow: visible;
    background: rgba(0, 0, 0, 0.3);
}

.submenu li {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.submenu a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0 6px 6px 0;
}

.submenu a:hover,
.submenu a.active {
    color: white;
    background: linear-gradient(90deg, rgba(246, 207, 12, 0.2), rgba(255, 255, 255, 0.05));
    border-left: 2px solid gold;
}

.submenu a i {
    margin-right: 8px;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* sweeping light */
.sidebar-header .brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 35%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0.15) 65%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    opacity: 0.8;
    animation: brand-shine 4.5s ease-in-out infinite;
    will-change: left;
}

@keyframes brand-shine {
    0% { left: -150%; }
    100% { left: 150%; }
}