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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body>* {
    background: white;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

h3 {
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

input {
    padding: 14px 18px;
    margin: 10px 0;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #999;
}

button {
    padding: 14px 30px;
    margin-top: 15px;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

button:active {
    transform: translateY(0);
}

#message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    color: #d32f2f;
    background-color: #ffebee;
    font-weight: 500;
    min-height: 20px;
}

p {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.home-card {
    background: white;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

.home-actions {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.home-link {
    display: block;
    text-align: center;
    padding: 14px 18px;
    border-radius: 10px;
    background: #f3f5ff;
    color: #4f67d9;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-link:hover {
    text-decoration: none;
    background: #e8ecff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

li {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #333;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

li button {
    padding: 8px 16px;
    margin: 0;
    width: auto;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(238, 90, 111, 0.3);
}

li button:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d8384e 100%);
    box-shadow: 0 3px 12px rgba(238, 90, 111, 0.5);
}

#tasks {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

#tasks::-webkit-scrollbar {
    width: 8px;
}

#tasks::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#tasks::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

#tasks::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

@media (max-width: 500px) {
    body>* {
        padding: 30px 25px;
    }

    h2 {
        font-size: 24px;
    }

    .home-card {
        padding: 30px 25px;
    }
}