* {
    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;
    padding: 10px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 20px);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.logo .emoji {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.logo .text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    font-size: 2rem;
    font-weight: bold;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-badge {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

.stat-badge.bought {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
}

/* Add Section */
.add-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
}

#item-input {
    flex: 1;
    padding: 15px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

#item-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.add-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(78, 205, 196, 0.4);
}

.add-btn:active {
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #555;
}

/* Shopping List */
.shopping-list {
    list-style: none;
}

.list-item {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #4ecdc4;
    animation: slideIn 0.3s ease;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.list-item.bought {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-left-color: #28a745;
    opacity: 0.7;
}

.list-item.bought .item-text {
    text-decoration: line-through;
    color: #666;
}

.checkbox {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid #4ecdc4;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.checkbox.checked {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.item-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.delete-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Footer */
.footer {
    margin-top: 30px;
    text-align: center;
}

.clear-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    font-weight: 600;
}

.toast.error {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin: 5px;
        border-radius: 15px;
    }
    
    .logo .text {
        font-size: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .add-btn {
        justify-content: center;
        padding: 15px;
    }
    
    .stats {
        gap: 10px;
    }
    
    .stat-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .list-item {
        padding: 15px;
    }
    
    .item-text {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 10px;
    }
    
    .logo .emoji {
        font-size: 2rem;
    }
    
    .logo .text {
        font-size: 1.3rem;
    }
}