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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 800px;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: bold;
    font-size: 1.3rem;
}

input, select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1.2rem;
}

button {
    width: 100%;
    padding: 1.2rem;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

button:hover {
    background: #1e3c72;
}

.hidden {
    display: none;
}

/* Sayaç Ekranı Stilleri */
.timer-circle {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.time-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: bold;
    color: #1e3c72;
}

.progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    cx: 200;
    cy: 200;
    r: 190;
    fill: transparent;
    stroke: #2a5298;
    stroke-width: 15;
    stroke-dasharray: 879.6;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s;
}

.status-text {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
}

#stop-button {
    margin-top: 1rem;
    background: #dc3545;
}

#stop-button:hover {
    background: #c82333;
}

/* Süre giriş alanları için stiller */
.time-inputs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.time-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-input input {
    width: 100%;
    text-align: center;
}

.time-input span {
    color: #666;
    font-size: 1rem;
    text-align: center;
}

/* Mobil cihazlar için responsive ayarlar */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        width: 100%;
        border-radius: 0;
        min-height: 100vh;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    label {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    input, select {
        padding: 0.8rem;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .time-inputs {
        flex-direction: row;
        gap: 0.8rem;
    }

    .time-input {
        flex: 1;
    }

    .time-input span {
        font-size: 0.9rem;
    }

    /* Sayaç ekranı */
    .timer-circle {
        width: 280px;
        height: 280px;
        margin: 1rem auto;
    }

    .time-display {
        font-size: 3.5rem;
    }

    .progress-ring-circle {
        cx: 140;
        cy: 140;
        r: 130;
        stroke-width: 10;
    }

    .status-text {
        font-size: 1.3rem;
        margin: 1.5rem 0;
    }

    button {
        padding: 1rem;
        font-size: 1.2rem;
        border-radius: 8px;
        margin-top: 0.8rem;
    }

    /* Tebrik ekranı */
    .congratulations-text {
        font-size: 2.5rem;
        padding: 1rem;
    }

    /* Konfeti canvas */
    .confetti-canvas {
        height: 100vh;
    }
}

/* Çok küçük ekranlar için ek düzenlemeler */
@media (max-width: 360px) {
    .container {
        padding: 1rem;
    }

    .timer-circle {
        width: 240px;
        height: 240px;
    }

    .time-display {
        font-size: 3rem;
    }

    .progress-ring-circle {
        cx: 120;
        cy: 120;
        r: 110;
        stroke-width: 8;
    }

    h1 {
        font-size: 1.5rem;
    }

    .status-text {
        font-size: 1.1rem;
    }

    .congratulations-text {
        font-size: 2rem;
    }
}

/* iPhone SE gibi küçük ekranlar için ek optimizasyonlar */
@media (max-height: 667px) {
    .container {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .timer-circle {
        margin: 0.5rem auto;
    }

    .status-text {
        margin: 1rem 0;
    }

    button {
        margin-top: 0.5rem;
        padding: 0.8rem;
    }
}

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
} 

.congratulations-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 4rem;
    color: #1e3c72;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
}

.congratulations-text.visible {
    animation: showCongrats 0.5s forwards;
    visibility: visible;
}

.congratulations-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

@keyframes showCongrats {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
} 