/* Base Styles */
:root {
    --primary: #1a365d;
    --primary-dark: #153e75;
    --secondary: #718096;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for boxscore transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.boxscore-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Enhanced table styles */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
    background: white;
}

.stats-table th {
    background-color: #f5f5f5;
    padding: 0.375rem 0.25rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
    text-transform: uppercase;
    white-space: nowrap;
}

.stats-table td {
    padding: 0.375rem 0.25rem;
    border-bottom: 1px solid #e5e5e5;
    color: #333;
    white-space: nowrap;
}

.stats-table tr:hover {
    background-color: #f9f9f9;
}

/* Team header styles */
.team-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
}

.team-header h3 {
    margin: 0;
    font-weight: 600;
}

/* Loading states */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-table {
        font-size: 0.7rem;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 0.375rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Optimize table layout for horizontal space */
.team-stats {
    min-width: 0;
}

.stats-table {
    table-layout: auto;
    min-width: 100%;
}

/* Ensure no vertical scrolling needed */
body {
    overflow-x: hidden;
}

main {
    max-width: none !important;
    width: 100%;
}

/* Tab styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Global Rating Calculator specific styles */
#tbl input {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    text