.stats-section,
.player-profile-section {
    padding: 1.5rem 0;
}

.stats-section h1,
.player-profile-section h1 {
    margin-bottom: 2rem;
    color: var(--bs-light);
}

.stats-section h2,
.player-profile-section h2 {
    margin: 2rem 0 1.5rem;
    color: var(--bs-light);
}

.server-selector {
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

.server-buttons {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.server-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--bs-light);
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.server-btn:hover {
    background-color: rgba(205, 65, 43, 0.8);
    border-color: #cd412b;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.server-btn.active {
    background-color: #cd412b;
    border-color: #cd412b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stats-search-form {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

.stats-summary {
    margin-bottom: 2rem;
}

.stats-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card h3 {
    color: var(--bs-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stats-card .stat-value {
    color: #cd412b;
    font-size: 2rem;
    font-weight: bold;
}

.table-responsive {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

/* Custom stats table styling */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #cd412b;
    background-color: transparent !important;
    padding: 12px 8px;
}

.stats-table tbody tr {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Completely override hover styles */
.stats-table tbody tr:hover,
.stats-table tbody tr:hover td,
.table-hover tbody tr:hover,
.table-hover>tbody>tr:hover,
.table-hover>tbody>tr:hover>*,
.table tbody tr:hover,
.table>tbody>tr:hover,
.table>tbody>tr:hover>* {
    background-color: rgba(255, 255, 200, 0.15) !important;
    --bs-table-accent-bg: rgba(255, 255, 200, 0.15) !important;
    color: white !important;
}

.stats-table tbody td {
    color: white !important;
    background-color: transparent !important;
    padding: 12px 8px;
}

/* Override Bootstrap table styles */
.table {
    color: white !important;
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #cd412b;
}

/* Force all table rows to have the same background and text color */
.table-striped > tbody > tr,
.table-striped > tbody > tr > td,
.table-hover > tbody > tr,
.table-hover > tbody > tr > td {
    background-color: transparent !important;
    --bs-table-accent-bg: transparent !important;
    color: white !important;
}

.table tbody tr {
    color: white !important;
    background-color: transparent !important;
    --bs-table-accent-bg: transparent !important;
}

/* Change hover color to pale yellow */
.table tbody tr:hover {
    background-color: rgba(255, 255, 200, 0.15) !important;
    --bs-table-accent-bg: rgba(255, 255, 200, 0.15) !important;
}

.table tbody td {
    color: white !important;
    background-color: transparent !important;
}

.table a {
    color: white;
    text-decoration: none;
}

.table a:hover {
    color: #cd412b;
}

.pagination-container {
    margin: 2rem 0;
}

.pagination {
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-item {
    margin: 0.2rem;
}

.pagination .page-link {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    min-width: 2.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #cd412b;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #cd412b;
    border-color: #cd412b;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Specific styling for ellipsis items */
.pagination .ellipsis-item .page-link {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-light);
    font-weight: bold;
}

.profile-header {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.steam-id a {
    color: #cd412b;
    text-decoration: none;
}

.steam-id a:hover {
    text-decoration: underline;
}

.additional-info {
    margin-top: 1rem;
    color: var(--bs-light);
}

.weapon-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px);
}

.weapon-card h4 {
    color: var(--bs-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.weapon-kills {
    color: #cd412b;
    font-weight: bold;
}

.back-link {
    margin: 2rem 0;
}

.back-button-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
}

.back-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--bs-light);
    border-radius: 0.375rem;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 200px;
    text-align: center;
    font-size: 1rem;
}

.back-btn:hover {
    background-color: rgba(205, 65, 43, 0.8);
    border-color: #cd412b;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-btn:active {
    background-color: #cd412b;
    border-color: #cd412b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Override Bootstrap striping completely */
.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: white !important;
    background-color: transparent !important;
    --bs-table-accent-bg: transparent !important;
}

.table-striped > tbody > tr:nth-of-type(even),
.table-striped > tbody > tr:nth-of-type(even) > * {
    color: white !important;
    background-color: transparent !important;
    --bs-table-accent-bg: transparent !important;
}

/* Clickable row styles */
.clickable-row {
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.clickable-row:hover {
    background-color: rgba(205, 65, 43, 0.15) !important;
    --bs-table-accent-bg: rgba(205, 65, 43, 0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clickable-row:active {
    background-color: rgba(205, 65, 43, 0.25) !important;
    --bs-table-accent-bg: rgba(205, 65, 43, 0.25) !important;
    transform: translateY(0px);
    transition: all 0.1s ease !important;
}

.clickable-row td {
    transition: all 0.2s ease !important;
}

/* Consistent column alignment and widths */
.stats-table th,
.stats-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

.stats-table th:first-child,
.stats-table td:first-child {
    width: 60px;
    min-width: 60px;
    text-align: center !important;
}

.stats-table th:nth-child(2),
.stats-table td:nth-child(2) {
    width: auto;
    min-width: 150px;
    text-align: left !important;
    padding-left: 12px !important;
}

.stats-table th:nth-child(3),
.stats-table td:nth-child(3) {
    width: 100px;
    min-width: 100px;
    text-align: center !important;
}

.stats-table th:nth-child(4),
.stats-table td:nth-child(4) {
    width: 100px;
    min-width: 100px;
    text-align: center !important;
}

.stats-table th:nth-child(5),
.stats-table td:nth-child(5) {
    width: 100px;
    min-width: 100px;
    text-align: center !important;
}

/* Ensure consistent spacing and prevent layout shifts */
.stats-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.stats-table th a,
.stats-table th a:hover {
    color: #cd412b !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    padding: 4px 0 !important;
}

/* Server breakdown table specific styling - override general stats-table for proper alignment */
.server-breakdown-table th:first-child, 
.server-breakdown-table td:first-child { 
    width: auto; 
    min-width: 150px; 
    text-align: left !important; 
    padding-left: 12px !important; 
}

.server-breakdown-table th:nth-child(2), 
.server-breakdown-table td:nth-child(2) { 
    width: 100px; 
    min-width: 100px; 
    text-align: center !important; 
    padding-left: 0 !important; 
}

.server-breakdown-table th:nth-child(3), 
.server-breakdown-table td:nth-child(3) { 
    width: 100px; 
    min-width: 100px; 
    text-align: center !important; 
}

.server-breakdown-table th:nth-child(4), 
.server-breakdown-table td:nth-child(4) { 
    width: 100px; 
    min-width: 100px; 
    text-align: center !important; 
}

.server-breakdown-table th:nth-child(5), 
.server-breakdown-table td:nth-child(5) { 
    width: 100px; 
    min-width: 100px; 
    text-align: center !important; 
}

/* Mobile responsive design for stats tables */
@media (max-width: 768px) {
    /* Make table container horizontally scrollable on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce overall table size for mobile */
    .stats-table {
        min-width: 480px; /* Minimum width to prevent extreme compression */
        font-size: 0.875rem; /* Slightly smaller text */
    }
    
    /* Adjust column widths for mobile */
    .stats-table th:first-child,
    .stats-table td:first-child {
        width: 40px;
        min-width: 40px;
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem !important;
    }
    
    .stats-table th:nth-child(2),
    .stats-table td:nth-child(2) {
        width: auto;
        min-width: 120px; /* Reduced from 150px */
        padding-left: 8px !important;
        padding-right: 4px !important;
        font-size: 0.875rem;
    }
    
    .stats-table th:nth-child(3),
    .stats-table td:nth-child(3),
    .stats-table th:nth-child(4),
    .stats-table td:nth-child(4),
    .stats-table th:nth-child(5),
    .stats-table td:nth-child(5) {
        width: 70px;
        min-width: 70px;
        padding: 0.5rem 0.25rem !important;
        font-size: 0.8rem;
    }
    
    /* Server breakdown table mobile adjustments */
    .server-breakdown-table th:first-child, 
    .server-breakdown-table td:first-child { 
        min-width: 100px; /* Reduced from 150px */
        padding-left: 8px !important;
        font-size: 0.875rem;
    }
    
    .server-breakdown-table th:nth-child(2), 
    .server-breakdown-table td:nth-child(2),
    .server-breakdown-table th:nth-child(3), 
    .server-breakdown-table td:nth-child(3),
    .server-breakdown-table th:nth-child(4), 
    .server-breakdown-table td:nth-child(4),
    .server-breakdown-table th:nth-child(5), 
    .server-breakdown-table td:nth-child(5) { 
        width: 70px; 
        min-width: 70px; 
        padding: 0.5rem 0.25rem !important;
        font-size: 0.8rem;
    }
    
    /* Reduce padding on mobile for server selector */
    .server-selector {
        margin: 1rem 0; /* Reduced from default */
    }
    
    .server-buttons {
        padding: 1rem; /* Reduced from 1.5rem */
    }
    
    .server-btn {
        padding: 0.5rem 1rem; /* Reduced from 0.75rem 1.5rem */
        font-size: 0.875rem;
        margin: 0.25rem; /* Reduced margin */
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .stats-table {
        font-size: 0.8rem;
    }
    
    .stats-table th:nth-child(2),
    .stats-table td:nth-child(2) {
        min-width: 100px; /* Even more compressed */
        padding-left: 6px !important;
    }
    
    .stats-table th:nth-child(3),
    .stats-table td:nth-child(3),
    .stats-table th:nth-child(4),
    .stats-table td:nth-child(4),
    .stats-table th:nth-child(5),
    .stats-table td:nth-child(5) {
        width: 60px;
        min-width: 60px;
        font-size: 0.75rem;
    }
    
    .server-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
} 