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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

main {
    flex: 1;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pizza list */
.pizza-list {
    display: grid;
    gap: 15px;
}

.pizza-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
    margin-bottom: 15px;
}

.pizza-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.pizza-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.pizza-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.pizza-info .price {
    color: #27ae60;
    font-weight: 600;
    font-size: 1rem;
}

.pizza-info .type {
    color: #3498db;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Buttons */
.btn-order {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    min-width: 120px;
}

.btn-order:hover {
    background: #229954;
    transform: scale(1.05);
}

.btn-order:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Closed message */
.closed-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.closed-message h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

.kitchen-link, .back-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.kitchen-link:hover, .back-link:hover {
    text-decoration: underline;
}

/* Kitchen specific styles */
.kitchen-container header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Mobile responsive for kitchen orders */
@media (max-width: 600px) {
    .order-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .btn-remove {
        width: 100%;
    }
}

.kitchen-container h1 {
    font-size: 1.5rem;
    margin: 0;
}

.btn-remove-oldest {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    min-width: 150px;
}

.btn-remove-oldest:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.btn-remove-oldest:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Orders list */
.orders-list {
    display: grid;
    gap: 10px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
}

.order-item {
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.order-time {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.btn-remove:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-orders h2 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.order-count {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 20px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .pizza-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .btn-order {
        width: 100%;
    }

    .kitchen-container header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .btn-remove-oldest {
        width: 100%;
    }

    footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .order-count {
        margin-left: 0;
    }
}

/* Password Protection Styles */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.password-container p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

#password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#password-input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-login {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    width: 100%;
}

.btn-login:hover {
    background: #229954;
    transform: scale(1.02);
}

.password-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
}