/* Sports Statistics Page Styles */

/* Remove top spacing */
.dashboard-content > .container-fluid > h2:first-child,
.dashboard-content > .container-fluid h2.mb-4:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dashboard-content .container-fluid {
    margin-top: 0 !important;
}

/* Table improvements - optimized for white background */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
}

.table {
    margin-bottom: 0;
    font-size: 0.9rem;
    background-color: #ffffff;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: #ffffff !important;
}

.table tbody tr {
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.08);
    transform: translateX(2px);
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    color: #212529;
}

.table tbody td strong {
    color: #212529;
    font-weight: 600;
}

/* Tab styling - optimized for white background */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    background-color: transparent;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.08);
    border-radius: 4px 4px 0 0;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 3px solid #667eea;
    font-weight: 700;
}

/* Form controls - optimized for white background */
.dashboard-content .form-control {
    border-radius: 8px;
    border: 2px solid #ced4da;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #495057;
}

.dashboard-content .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background-color: #ffffff;
}

.dashboard-content .form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Card styling for teams */
.card {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.card-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table {
        font-size: 0.8rem;
    }

    .table thead th,
    .table td {
        padding: 0.5rem 0.4rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.75rem;
    }
}

/* Highlight top performers - adjusted for white background */
.table tbody tr:nth-child(1) {
    background-color: rgba(255, 215, 0, 0.15);
    font-weight: 600;
}

.table tbody tr:nth-child(1):hover {
    background-color: rgba(255, 215, 0, 0.25);
}

.table tbody tr:nth-child(2) {
    background-color: rgba(192, 192, 192, 0.15);
}

.table tbody tr:nth-child(2):hover {
    background-color: rgba(192, 192, 192, 0.25);
}

.table tbody tr:nth-child(3) {
    background-color: rgba(205, 127, 50, 0.15);
}

.table tbody tr:nth-child(3):hover {
    background-color: rgba(205, 127, 50, 0.25);
}

/* Stats badge */
.stats-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stats-badge.positive {
    background-color: #d4edda;
    color: #155724;
}

.stats-badge.negative {
    background-color: #f8d7da;
    color: #721c24;
}

/* Empty state */
.text-muted {
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* Sidebar Sports Navigation Styles */
.sports-quick-nav .list-group-item {
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.sports-quick-nav .list-group-item:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
    transform: translateX(3px);
}

.sports-quick-nav .list-group-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.sports-quick-nav .list-group-item i {
    width: 20px;
    text-align: center;
}

/* Sidebar Card */
.sidebar .card {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: none;
    transition: all 0.3s ease;
}

.sidebar .card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.sidebar .card-title {
    font-weight: 700;
}

/* Featured List in Sidebar */
.list-featured {
    list-style: none;
    padding-left: 0;
}

.list-featured li {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.list-featured li:last-child {
    border-bottom: none;
}

.list-featured h6 a {
    transition: color 0.3s ease;
}

.list-featured h6 a:hover {
    color: #667eea !important;
}

/* Sticky Sidebar */
.sticky-top-offset {
    top: 80px;
}

/* Submenu divider styling */
.submenu-divider {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    background-color: #f8f9fa;
    margin-top: 0.5rem;
    pointer-events: none;
}

/* Alert styling - improved for white background */
.alert {
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid;
    background-color: #ffffff;
}

.alert-info {
    background-color: #e7f5ff;
    border-color: #339af0;
    color: #1864ab;
}

.alert i {
    margin-right: 0.5rem;
}

/* Card styling - improved for white background */
.dashboard-content .card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dashboard-content .card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
