* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Animated Gradient Background */
    background: linear-gradient(45deg, #ff9a9e, #fecfef, #a18cd1, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.lottie-container {
    width: 150px;
    height: 150px;
    margin-bottom: -10px;
}

.input-section {
    display: flex;
    width: 100%;
    margin-bottom: 25px;
    gap: 10px;
}

.input-section input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.input-section input:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.input-section button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.input-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.input-section button:active {
    transform: translateY(0);
}

.todo-list {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar */
.todo-list::-webkit-scrollbar {
    width: 6px;
}
.todo-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.todo-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
}

.todo-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
    transition: transform 0.2s;
}

.todo-item:hover {
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.todo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-word;
}

.todo-text {
    flex: 1;
    font-size: 16px;
    color: #333;
    padding-right: 15px;
}

.todo-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.edit-btn { color: #4facfe; }
.edit-btn:hover { color: #00f2fe; }

.delete-btn { color: #ff0844; }
.delete-btn:hover { color: #ffb199; }

.save-btn { color: #43e97b; }
.save-btn:hover { color: #38f9d7; }

.todo-meta {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 5px;
    align-self: flex-start;
}

.edit-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    margin-right: 15px;
}

.edit-input:focus {
    border-color: #667eea;
}

.empty-state {
    color: white;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

/* Footer Styles */
.app-footer {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    transition: all 0.3s ease;
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
