/* Poore page ko center karne ke liye */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Blue gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* To-Do Box ka main container */
.todo-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Halka shadow depth ke liye */
    width: 350px;
    text-align: center;
}

h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Input aur Button ko ek line mein rakhne ke liye */
.input-section {
    display: flex;
    gap: 10px; /* Input aur button ke beech ki jagah */
    margin-bottom: 20px;
}

/* Task likhne wala input box */
#task-input {
    flex: 1; /* Jitni jagah bache, ye le le */
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

/* Input box par click karne par blue border aaye */
#task-input:focus {
    border-color: #4facfe;
}

/* Add Button ka design */
#add-btn {
    background: #4facfe;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

/* Button par mouse le jaane par dark ho jaye */
#add-btn:hover {
    background: #00c6ff;
}

/* Tasks ki list (ul) ka design */
#task-list {
    list-style: none; /* Bullet points hatane ke liye */
    padding: 0;
    margin: 0;
    text-align: left;
    max-height: 250px; /* Agar zyada tasks hon toh scrollbar aaye */
    overflow-y: auto;
}

/* Har ek task (li) ka design jo naya add hoga */
#task-list li {
    background: #f9f9f9;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between; /* Text left mein, delete button right mein */
    align-items: center;
    border-left: 4px solid #4facfe; /* Left side mein ek choti blue line */
    animation: fadeIn 0.3s ease; /* Naya task aane par smooth effect */
}

/* Naya task aane ka smooth animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}