* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    min-height: 100vh;
    color: #333;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #d32f2f;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.toolbar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-btn {
    background: #fff;
    border: 2px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tool-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

.export-btn {
    background: #ff6f00 !important;
    color: white !important;
    border-color: #ff6f00 !important;
    font-weight: bold;
}

.export-btn:hover {
    background: #f57c00 !important;
    transform: translateY(-2px) scale(1.05);
}

.main-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

#basketball-court {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: default;
    flex-shrink: 0;
}

.side-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 280px;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.panel-section {
    margin-bottom: 1.5rem;
}

.panel-section h3 {
    color: #d32f2f;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #ff6f00;
    padding-bottom: 0.3rem;
}

.panel-section ul {
    list-style: none;
    padding: 0;
}

.panel-section li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #555;
}

.panel-section li::before {
    content: "🏀 ";
    margin-right: 0.5rem;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 8px;
    border-left: 3px solid #d32f2f;
}

.player-circle {
    width: 30px;
    height: 30px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-item span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.panel-section label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.panel-section input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d32f2f;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 1.5rem;
    margin-top: 1rem;
    color: #555;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    
    .side-panel {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 900px) {
    #basketball-court {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
    .toolbar {
        justify-content: center;
    }
    
    .tool-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .toolbar {
        gap: 0.3rem;
    }
    
    .tool-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .main-container {
        padding: 0.5rem;
    }
    
    .side-panel {
        padding: 1rem;
    }
}