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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Snowflake animation */
.snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 130px 90px, white, transparent),
        radial-gradient(1px 1px at 200px 160px, white, transparent),
        radial-gradient(2px 2px at 300px 10px, white, transparent),
        radial-gradient(1px 1px at 400px 50px, white, transparent);
    background-size: 200px 200px, 300px 300px, 250px 250px, 350px 350px, 280px 280px, 320px 320px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 250px 150px;
    animation: snowfall 20s linear infinite;
    opacity: 0.6;
}

@keyframes snowfall {
    0% {
        background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 250px 150px;
    }
    100% {
        background-position: 0 400px, 40px 460px, 130px 670px, 70px 500px, 150px 450px, 250px 550px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.order-form-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #c41e3a;
}

.order-form-card h2 {
    color: #165b33;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #c41e3a;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.ingredient-item:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.ingredient-item input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ingredient-item input[type="checkbox"]:checked + span {
    font-weight: 700;
    color: #165b33;
}

.ingredient-item span {
    font-size: 1em;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c41e3a 0%, #d4af37 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.orders-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #165b33;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.orders-header h2 {
    color: #c41e3a;
    font-size: 1.8em;
}

.clear-btn {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.clear-btn:hover {
    background: #c82333;
}

.orders-list {
    display: grid;
    gap: 15px;
}

.no-orders {
    text-align: center;
    color: #999;
    font-size: 1.1em;
    padding: 40px;
}

.order-card {
    background: linear-gradient(135deg, #fff5f5 0%, #f0fdf4 100%);
    border: 2px solid #165b33;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.order-card.completed {
    opacity: 0.6;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
    border-color: #999;
}

.order-card.completed .order-name,
.order-card.completed .order-ingredients {
    text-decoration: line-through;
    color: #999;
    gap: 15px;
}

.checkbox-container {
    position: relative;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: block;
    height: 28px;
    width: 28px;
    background-color: white;
    border: 3px solid #165b33;
    border-radius: 6px;
    transition: all 0.3s;
}

.checkbox-container:hover .checkmark {
    background-color: #f0fdf4;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #165b33;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.order-card.completed .order-eggs {
    background: #999;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #c41e3a;
}

.order-eggs {
    background: #165b33;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.order-ingredients {
    color: #555;
    line-height: 1.6;
    font-size: 1.05em;
}

.order-ingredients strong {
    color: #165b33;
}

.delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #c82333;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
