﻿.header-right {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.container {
    position: relative;
    gap: 20px;
    padding: 20px;
}

.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

    .sidebar.collapsed {
        width: 80px;
        padding: 20px 10px;
    }

        .sidebar.collapsed .menu-text {
            display: none;
        }

        .sidebar.collapsed .menu-title {
            display: none;
        }

        .sidebar.collapsed .menu-item {
            justify-content: center;
            padding: 12px;
        }

        .sidebar.collapsed .menu-section {
            padding: 10px 5px;
        }

        .sidebar.collapsed .toggle-btn {
            padding: 12px 10px;
        }

.toggle-btn {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    border: 2px solid rgba(255, 165, 0, 0.5);
}

    .toggle-btn:hover {
        background: linear-gradient(135deg, #ffa500, #ff6b00);
    }

.menu-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.1);
}

.menu-title {
    color: #ffa500;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 0 10px;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    border: 1px solid rgba(255, 165, 0, 0.1);
    width: 100%;
}

    .menu-item:hover {
        background: rgba(255, 165, 0, 0.2);
        border-left-color: #ffa500;
        transform: translateX(5px);
    }

    .menu-item.active {
        background: linear-gradient(90deg, rgba(255, 165, 0, 0.3), rgba(255, 165, 0, 0.1));
        border-left-color: #ffa500;
    }

.menu-icon {
    font-size: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-text {
    font-size: 14px;
    white-space: nowrap;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 165, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 165, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.page-title {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffa500, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    /* Dot xanh */
    .status-dot.green {
        background: #4ade80;
        box-shadow: 0 0 10px #4ade80;
        animation: pulse-green 2s infinite;
    }

    /* Dot đỏ */
    .status-dot.red {
        background: #f87171;
        box-shadow: 0 0 10px #f87171;
        animation: pulse-red 2s infinite;
    }

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(248, 113, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tab {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

    .tab:hover {
        background: rgba(255, 165, 0, 0.2);
    }

    .tab.active {
        background: linear-gradient(135deg, #ff6b00, #ffa500);
    }

.ranking-table {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 165, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1.5fr 1fr 2fr 1.5fr;
    padding: 15px;
    background: rgba(255, 165, 0, 0.2);
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
}

.table-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1.5fr 1fr 2fr 1.5fr;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    align-items: center;
}

.tablemoney-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 2fr 2fr 2fr;
    padding: 15px;
    background: rgba(255, 165, 0, 0.2);
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
}

.tablemoney-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 2fr 2fr 2fr;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    align-items: center;
}

    .table-row:hover {
        background: rgba(255, 165, 0, 0.1);
    }

.rank {
    font-weight: bold;
    font-size: 18px;
}

.rank-1 {
    color: #ffd700;
}

.rank-2 {
    color: #c0c0c0;
}

.rank-3 {
    color: #cd7f32;
}

.player-name {
    font-weight: bold;
}

.level {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    font-size: 12px;
}

.faction {
    color: #ffa500;
}

.score {
    color: #ffa500;
    font-weight: bold;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    display: inline-block;
}

.badge-main {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge-sub {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.guild {
    color: #3498db;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    border-radius: 4px;
}



/* Pagination Styles */
.pagination-container {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border: 2px solid rgba(255, 165, 0, 0.2);
    padding: 20px;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid rgba(255, 165, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(71, 85, 105, 0.5);
    color: #fff;
    font-size: 14px;
}

    .pagination-btn:not(.disabled):hover {
        background: linear-gradient(135deg, #ff6b00, #ffa500);
        border-color: rgba(255, 165, 0, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    }

    .pagination-btn.disabled {
        background: rgba(71, 85, 105, 0.3);
        color: rgba(148, 163, 184, 0.5);
        cursor: not-allowed;
        border-color: rgba(71, 85, 105, 0.3);
    }

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    min-width: 40px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(71, 85, 105, 0.5);
    color: rgba(203, 213, 225, 1);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

    .page-number:hover {
        background: rgba(71, 85, 105, 0.7);
        border-color: rgba(255, 165, 0, 0.3);
    }

    .page-number.active {
        background: linear-gradient(135deg, #ff6b00, #ffa500);
        color: #fff;
        border-color: rgba(255, 165, 0, 0.6);
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    }

.page-dots {
    color: rgba(148, 163, 184, 1);
    padding: 0 5px;
}

.page-info {
    margin-top: 15px;
    text-align: center;
    color: rgba(148, 163, 184, 1);
    font-size: 13px;
    padding-top: 15px;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
}

    .page-info .highlight {
        color: #ffa500;
        font-weight: 700;
    }

    .page-info .highlight-alt {
        color: #ffd700;
        font-weight: 700;
    }

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    border-radius: 4px;
}


.rank-subtitle {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 22px;
    background: linear-gradient( to right, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9) );
    border: 1px solid rgba(251, 191, 36, 0.35); /* vàng tối */
    border-radius: 8px;
    color: #facc15; /* vàng nhạt */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.18);
}

.layout-content {
    position: relative;
    background-image: url("/images/ranking/bg-ranking.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
}

    /* LỚP TỐI PHỦ */
    .layout-content::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.95) );
        z-index: 0;
    }

    /* ĐẢM BẢO NỘI DUNG NỔI LÊN TRÊN */
    .layout-content > * {
        position: relative;
        z-index: 1;
    }
