* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.input-section {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

input[type="text"] {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: white;
}

button {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

#addTaskBtn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    min-width: 120px;
}

#addTaskBtn:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ecf0f1;
    color: #34495e;
    padding: 10px 20px;
    flex: 1;
    min-width: 120px;
}

.filter-btn:hover {
    background: #d5dbdb;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 5px solid #3498db;
}

li:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.task-content {
    flex: 1;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s;
}

.task-content:hover {
    background: #f8f9fa;
}

.completed {
    text-decoration: line-through;
    color: #95a5a6;
    background: #f8f9fa;
    border-left-color: #2ecc71;
}

.task-buttons {
    display: flex;
    gap: 10px;
}

.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.info {
    margin-top: 25px;
    padding: 15px;
    background: #e8f4fc;
    border-radius: 12px;
    border-left: 5px solid #3498db;
}

.info p {
    color: #2c3e50;
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Для пустого списка */
.empty-message {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}