* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
    background-color: #1e3a8a;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.scoreboard {
    display: flex;
    justify-content: space-between;
    color: white;
    padding: 20px;
}

.team {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #1e40af;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #1e3a8a;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.team-name:hover {
    background-color: #1e40af;
}

.score {
    font-size: 72px;
    font-weight: bold;
    margin: 20px 0;
    background-color: #1e3a8a;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    min-width: 120px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2563eb;
}

.period {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    background-color: #1e40af;
    margin: 10px 0;
    border-radius: 10px;
    color: white;
    min-width: 120px;
}

.period div:first-child {
    font-size: 20px;
    margin-bottom: 10px;
}

.period div:nth-child(2) {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.period-buttons {
    display: flex;
    gap: 10px;
}

.game-controls {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #1e3a8a;
    gap: 20px;
}

.reset-btn {
    background-color: #ef4444;
}

.reset-btn:hover {
    background-color: #dc2626;
}

.edit-btn {
    background-color: #10b981;
}

.edit-btn:hover {
    background-color: #059669;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .scoreboard {
        flex-direction: column;
    }
    
    .team {
        margin: 5px 10px;
    }
    
    .period {
        flex-direction: row;
        justify-content: space-around;
        padding: 15px;
    }
    
    .period div:first-child {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 10px;
    }
}

/* Zamanlayıcı Stilleri */
.timer-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #1e3a8a;
    border-radius: 8px;
    text-align: center;
}

#timer {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    font-family: 'Arial', sans-serif;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background-color: #1e3a8a;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

#timerToggle {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

#timerToggle:hover {
    background-color: #059669;
}

#timerToggle.stopped {
    background-color: #10b981;
}

#timerToggle.running {
    background-color: #ef4444;
}

#timerToggle.running:hover {
    background-color: #dc2626;
}

/* Kontrol Paneli Stilleri */
.control-panel {
    background-color: #1e3a8a;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
}

.control-panel h3 {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.control-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: #2563eb;
}

.control-btn:nth-child(1) {
    background-color: #ef4444;
}

.control-btn:nth-child(1):hover {
    background-color: #dc2626;
}

.control-btn:nth-child(2) {
    background-color: #f59e0b;
}

.control-btn:nth-child(2):hover {
    background-color: #d97706;
}

.control-btn:nth-child(3) {
    background-color: #10b981;
}

.control-btn:nth-child(3):hover {
    background-color: #059669;
}

/* Shot Clock Styles */
.shot-clock {
    background-color: #1e3a8a;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
}

.shot-clock div:first-child {
    font-size: 14px;
    margin-bottom: 5px;
    color: #ffffff;
}

#shotClock {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin: 10px 0;
}

.shot-clock-controls {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.shot-clock-btn, .shot-clock-reset {
    border: none;
    padding: 8px 0;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.shot-clock-btn {
    background-color: #3b82f6;
    color: white;
}

.shot-clock-btn:hover {
    background-color: #2563eb;
}

.shot-clock-reset {
    background-color: #64748b;
    color: white;
}

.shot-clock-reset:hover {
    background-color: #475569;
}

.shot-clock-warning {
    color: #ff4444 !important;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-warning {
    animation: pulse 1s infinite;
    color: #ff4444 !important;
}
