* {
    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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 20px;
    text-align: center;
}

.status-indicator {
    margin-top: 10px;
}

.connected { color: #00ff88; }
.disconnected { color: #ff4444; }

.order-form, .orders-section, .chat-section {
    padding: 20px;
    margin: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

input {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

.item-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.item-input input {
    flex: 1;
}

.send-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: translateY(-2px);
}

.order-items {
    background: white;
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    border: 2px dashed #dee2e6;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #ff6b6b;
    transition: all 0.3s;
}

.order-card.preparing { border-left-color: #f39c12; }
.order-card.ready { border-left-color: #00b894; }
.order-card.completed { border-left-color: #95a5a6; }

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

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-preparing { background: #ffeaa7; color: #fdcb6e; }
.status-ready { background: #00b894; color: white; }
.status-completed { background: #bdc3c7; color: #2c3e50; }
.order-card.completed { 
    border-left-color: #95a5a6; 
    opacity: 0.8;
    background: #f8f9fa;
}

.chat-section {
    margin-top: 20px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    background: #f1f3f4;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

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

.chat-input button {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-list {
        grid-template-columns: 1fr;
    }
}
/* ADD at end of style.css */
.status-ready { background: #00b894; color: white; }
.order-card.ready { border-left-color: #00b894; }
.order-card.completed { border-left-color: #95a5a6; opacity: 0.9; }