/* General styling */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(76,175,80,0.3) 0%, rgba(255,255,255,0.5) 100%), 
        url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
}

/* App container styling */
#app {
    max-width: 420px;
    width: 100%;
    padding: 32px 28px 24px 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header styling */
#app h2 {
    color: #1b5e20;
    text-align: center;
    margin-bottom: 26px;
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Input and button styling */
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #9e9e9e;
    border-radius: 10px;
    font-size: 17px;
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 2px 8px rgba(76,175,80,0.07);
    transition: border 0.3s;
    color: #212121;
}

input[type="text"]:focus {
    border: 1.5px solid #4CAF50;
    outline: none;
}

button {
    width: 100%;
    padding: 13px;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76,175,80,0.09);
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: linear-gradient(90deg, #38f9d7 0%, #43e97b 100%);
    transform: translateY(-2px) scale(1.03);
}

/* Task list styling */
#taskList {
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    margin: 7px 0;
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 10px;
    border: 1px solid #404040;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 10px;
    min-height: 50px;
}

.task:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0px 4px 16px rgba(0,0,0,0.35);
}

.task span {
    flex: 1;
    font-size: 16px;
    color: #ffffff;
    word-break: break-word;
    font-weight: 500;
    line-height: 1.4;
    max-width: calc(100% - 140px);
}

.task .button-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    min-width: 130px;
    align-items: center;
}

.task button {
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(76,175,80,0.08);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    flex: 1;
    min-width: 60px;
    text-align: center;
}

.task button:first-of-type {
    background: linear-gradient(90deg, #4CAF50 0%, #43e97b 100%);
    box-shadow: 0 1px 4px rgba(76,175,80,0.08);
}

.task button:first-of-type:hover {
    background: linear-gradient(90deg, #43e97b 0%, #4CAF50 100%);
    transform: scale(1.07);
}

.task button:last-of-type {
    background: linear-gradient(90deg, #da3737 0%, #e64a19 100%);
    box-shadow: 0 1px 4px rgba(218,55,55,0.08);
}

.task button:last-of-type:hover {
    background: linear-gradient(90deg, #e64a19 0%, #da3737 100%);
    transform: scale(1.07);
}

/* Styling for completed tasks */
.complete {
    text-decoration: line-through;
    color: #9e9e9e;
    font-style: italic;
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s;
}
