/* --- Pomodoro - Cozy & Vintage (Extra Dark) Teması --- */
@import url('https://fonts.googleapis.com/css2?family=Cutive+Mono&family=Playfair+Display:wght@700&family=Roboto:wght@400;500&display=swap');

:root {
    --bg-color: #141210;
    --container-bg: #221e1a;
    --text-color: #dcd3b8;
    --text-muted: #a09681;
    --accent-color: #4E9C81;
    --accent-hover: #62b99c;
    --border-color: #332d27;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    background-color: var(--container-bg);
    padding: 30px 40px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

/* Zamanlayıcı Stilleri */
.timer {
    margin-bottom: 25px;
}

.mode-display {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.time-display {
    font-family: 'Cutive Mono', monospace;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
}

/* İlerleme Noktaları ve Sıfırlama Düğmesi */
.progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.progress-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.progress-dots .dot:hover {
    background-color: #4a4137;
    transform: scale(1.2);
}

.progress-dots .dot.completed {
    background-color: var(--accent-color);
}

.progress-reset-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.progress-reset-btn:hover {
    color: var(--text-color);
}


/* Kontrol Düğmeleri Stilleri */
.controls button {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 10px;
}

#start-pause-btn {
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
    width: 120px;
}

#start-pause-btn:hover {
    background-color: var(--accent-hover);
}

#reset-btn {
    background-color: var(--border-color);
    color: var(--text-muted);
    font-size: 1.2rem;
}

#reset-btn:hover {
    background-color: #4a4137;
    color: var(--text-color);
}

/* Görev Listesi Stilleri */
.task-container {
    margin-top: 30px;
    text-align: left;
    padding: 15px 0;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.task-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 700;
}

.task-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.task-container:hover .task-input-wrapper {
    opacity: 1;
}

#task-input {
    flex-grow: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-color);
    font-size: 1rem;
}

#add-task-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    font-size: 1.5rem;
    cursor: pointer;
}

#task-list {
    list-style: none;
    margin-top: 15px;
}

#task-list li {
    background: var(--bg-color);
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-left: 4px solid var(--border-color);
}

#task-list li.completed {
    text-decoration: line-through;
    color: var(--text-muted);
    border-left-color: var(--accent-color);
}

#task-list li button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

/* Ayarlar Düğmesi ve Paneli */
.settings-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.settings-btn:hover {
    color: var(--text-color);
}

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.settings-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.settings-content {
    background: var(--container-bg);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.setting-item label {
    font-size: 1rem;
}

.setting-item input[type="number"] {
    width: 70px;
    padding: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
}

#save-settings-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

/* Otomatik Başlatma Düğmesi (Toggle Switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Tam Ekran Bildirim Stili */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 18, 16, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.fullscreen-overlay.visible {
    opacity: 1;
}

.overlay-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent-color);
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 20px;
    }

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

.color-palette-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px 12px 0 0;
    display: flex;
    gap: 10px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.color-palette-container:hover {
    opacity: 1;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.2);
}

.color-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}