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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

nav a:hover,
nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Order Form */
.order-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.order-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

/* Soda Cards */
.soda-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.soda-card {
    cursor: pointer;
}

.soda-card input[type="radio"] {
    display: none;
}

.card-content {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 3px solid #e0e0e0;
    transition: all 0.3s;
}

.card-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.soda-card input[type="radio"]:checked + .card-content.coke {
    border-color: #e63946;
    background: #fef2f2;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.soda-card input[type="radio"]:checked + .card-content.sprite {
    border-color: #2d6a4f;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.soda-card input[type="radio"]:checked + .card-content.fanta {
    border-color: #f77f00;
    background: #fff7ed;
    box-shadow: 0 4px 12px rgba(247, 127, 0, 0.2);
}

.soda-card input[type="radio"]:checked + .card-content.lemonade {
    border-color: #f5c518;
    background: #fefce8;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.2);
}

.soda-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.soda-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.coke .soda-name { color: #e63946; }
.sprite .soda-name { color: #2d6a4f; }
.fanta .soda-name { color: #f77f00; }
.lemonade .soda-name { color: #f5c518; }

.soda-price {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-top: 0.3rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Submit Button */
#submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

#submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

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

/* Confirmation */
.confirmation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

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

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background: #d4edda;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.popup p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #155724;
    font-weight: 600;
}

.share-link {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-link input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid #155724;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: #333;
}

.copy-btn {
    padding: 0.6rem 1.2rem;
    background: #155724;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #0d3d17;
}

.popup-close-btn {
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.form-error {
    padding: 0.8rem 1rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none;
}

/* Orders Page */
.orders-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.orders-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.clear-btn {
    padding: 0.5rem 1.2rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

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

.no-orders {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
}

tr:hover td {
    background: #f8f9fa;
}

tr.order-complete td {
    background: #d4edda;
    text-decoration: line-through;
    color: #888;
}

.complete-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Soda badge in table */
.soda-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.soda-badge.coke {
    background: #fef2f2;
    color: #e63946;
}

.soda-badge.sprite {
    background: #f0fdf4;
    color: #2d6a4f;
}

.soda-badge.fanta {
    background: #fff7ed;
    color: #f77f00;
}

.soda-badge.lemonade {
    background: #fefce8;
    color: #f5c518;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .soda-options {
        grid-template-columns: 1fr;
    }

    .orders-header {
        flex-direction: column;
        gap: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.6rem 0.5rem;
    }
}
