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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    color: #fff;
    overflow-x: hidden;
}

.kds-container {
    min-height: 100vh;
    padding: 20px;
}

.config-banner {
    background: #fbbf24;
    color: #78350f;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 6px solid #f59e0b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.config-banner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-banner-content strong {
    font-size: 1.2em;
}

.config-banner-content p {
    margin: 0;
    font-size: 1em;
}

.kds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #2a2a2a;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 2.5em;
    font-weight: 700;
}

.status-indicator {
    font-size: 1.5em;
    color: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header-right {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 1.2em;
}

.current-time {
    font-weight: 600;
    font-size: 1.3em;
}

.orders-count {
    background: #3a3a3a;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.order-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 6px solid #4ade80;
    position: relative;
    overflow: hidden;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.order-card.warning {
    border-left-color: #fbbf24;
    animation: warning-pulse 2s infinite;
}

.order-card.alert {
    border-left-color: #ef4444;
    animation: alert-pulse 1s infinite;
}

@keyframes warning-pulse {
    0%, 100% { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5); }
}

@keyframes alert-pulse {
    0%, 100% { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(239, 68, 68, 0.7); }
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3a3a3a;
}

.order-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #60a5fa;
}

.order-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.time-placed {
    font-size: 0.9em;
    color: #9ca3af;
}

.wait-time {
    font-size: 1.3em;
    font-weight: 700;
    color: #4ade80;
}

.order-card.warning .wait-time {
    color: #fbbf24;
}

.order-card.alert .wait-time {
    color: #ef4444;
}

.order-items {
    margin: 20px 0;
}

.order-item {
    padding: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-name {
    font-weight: 600;
    font-size: 1.1em;
}

.item-quantity {
    background: #3a3a3a;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1em;
}

.order-notes {
    margin: 15px 0;
    padding: 12px;
    background: #3a3a3a;
    border-radius: 8px;
    border-left: 3px solid #60a5fa;
    font-style: italic;
    color: #d1d5db;
}

.order-customer {
    margin: 15px 0;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
}

.customer-name {
    font-weight: 600;
}

.shipping-method {
    color: #9ca3af;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-print {
    background: #3b82f6;
    color: white;
}

.btn-print:hover {
    background: #2563eb;
    transform: scale(1.02);
}

.btn-complete {
    background: #10b981;
    color: white;
}

.btn-complete:hover {
    background: #059669;
    transform: scale(1.02);
}

.btn-complete:active {
    transform: scale(0.98);
}

.btn-complete.completed {
    background: #6b7280;
}

.btn-message {
    background: #6366f1;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.2s;
    flex: 1;
}

.btn-message:hover {
    background: #4f46e5;
}

.btn-message:active {
    transform: scale(0.98);
}

.btn-transfer {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.2s;
    flex: 1;
}

.btn-transfer:hover {
    background: #d97706;
}

.btn-transfer:active {
    transform: scale(0.98);
}
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #9ca3af;
}

.empty-state h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .kds-header,
    .order-actions,
    .btn {
        display: none;
    }
    
    .order-card {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .orders-container {
        grid-template-columns: 1fr;
    }
    
    .kds-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
        gap: 10px;
    }
}

