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

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1d1f21;
    background-image: url("https://images.unsplash.com/photo-1475274047050-1d0c0975c63e?q=80&w=2072&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Main Container */
.main-container {
    display: flex;
    gap: 2rem;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

/* Timer and Todo Containers */
.timer-container, .todo-container {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 500px;
}

/* Timer Styles */
.timer {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    margin: 1rem 0;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

button {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

#startBtn { background-color: #4CAF50; color: white; }
#pauseBtn { background-color: #ff9800; color: white; }
#resetBtn { background-color: #f44336; color: white; }

/* Todo List Styles */
.todo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.todo-input-group button {
    background-color: #959509;
    color: white;
    padding: 0.8rem 1.5rem;
}

#toDoInput {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: rgb(255, 255, 255);
}

#toDoList {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

#toDoList li {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

#toDoList li.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

#toDoList li input[type="checkbox"] {
    margin-right: 1rem;
    width: 18px;
    height: 18px;
}

.delete-btn {
    margin-left: auto;
    background-color: #dc3545;
    color: black;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.delete-btn:hover {
    background-color: #c82333;
}

.task-text {
    flex: 1;
    margin: 0 1rem;
}

/* Form Input Styles */
input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: rgb(255, 255, 255);
}

/* Headings */
h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-container, .todo-container {
        width: 100%;
    }
}
