/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--secondary-color);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-content {
    padding: 30px;
}

.sidebar h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 28px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.nav-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.sidebar-section h4 {
    color: white;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

/* Metrics Section */
.metrics-section {
    background-color: var(--background-color);
    padding: 30px;
    margin-bottom: 30px;
}

.metrics-section h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: all var(--transition-speed);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-card h4 {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.metric-card h2 {
    color: var(--text-color);
    margin: 10px 0 0 0;
    font-size: 24px;
}

/* Dashboard Content */
.dashboard-content {
    display: flex;
    gap: 20px;
}

.left-column {
    flex: 0 0 60%;
}

.right-column {
    flex: 0 0 40%;
}

/* Card Styles */
.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: all var(--transition-speed);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 0;
}

.table th {
    background-color: var(--background-color);
    font-weight: 600;
    border: none;
    padding: 12px;
    text-align: center;
}

.table td {
    padding: 12px;
    text-align: center;
    border: none;
}

.table tbody tr:nth-child(odd) {
    background-color: var(--background-color);
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-info {
    margin: 20px 0;
}

.player-info p {
    margin: 5px 0;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-content {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Radar Chart Specific Styling */
#team-radar-section .card-body {
    max-height: 500px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide any overflow if content is too large */
}

#teamRadarChart {
    max-height: 450px; /* Ensure the canvas itself respects the height limit */
    width: 100% !important; /* Ensure it takes full width of its constrained parent */
    height: auto !important; /* Maintain aspect ratio within max-height */
} 