/* Kitchen Display System Styles */

/* High-Contrast Theme for Wall Displays */
.kitchen-display-workspace {
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header */
.kitchen-header {
    background-color: #000000;
    border-bottom: 3px solid #ffd700;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kitchen-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 2px;
}

/* Station Selector */
.station-selector {
    min-width: 220px;
}

.station-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.station-count {
    color: #ffd700;
    font-weight: 700;
}

/* Auto Refresh Toggle */
.auto-refresh-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.last-refresh-time {
    font-size: 12px;
    color: #9ca3af;
}

/* Refresh Button */
.refresh-button {
    background-color: #374151;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.refresh-button:hover {
    background-color: #4b5563;
}

.refresh-button .material-icons {
    font-size: 24px;
}

/* Kitchen Clock */
.kitchen-clock {
    text-align: center;
}

.current-time {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.current-date {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Ticket Board */
.kitchen-ticket-board {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.refreshing-indicator {
    position: fixed;
    top: 80px;
    right: 30px;
    background-color: #1f2937;
    color: #ffd700;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Kanban Columns */
.kanban-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: calc(100vh - 120px);
}

.kanban-column {
    background-color: #1f2937;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.column-header {
    background-color: #111827;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid;
}

.new-column .column-header {
    border-bottom-color: #3b82f6;
}

.inprogress-column .column-header {
    border-bottom-color: #f59e0b;
}

.ready-column .column-header {
    border-bottom-color: #10b981;
}

.column-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.column-count {
    background-color: #374151;
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
}

.column-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Kitchen Ticket Card */
.kitchen-ticket-card {
    background-color: #374151;
    border-radius: 8px;
    padding: 15px;
    border-left: 5px solid #6b7280;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kitchen-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.kitchen-ticket-card.rush {
    border-left-color: #dc2626;
    background-color: #450a0a;
}

.kitchen-ticket-card.overdue {
    border-left-color: #dc2626;
    background-color: #7f1d1d;
}

.kitchen-ticket-card.has-allergens {
    background-color: #422006;
}

/* Ticket Header */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-number {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #ffd700;
}

.elapsed-time {
    font-size: 20px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: #1f2937;
}

.elapsed-time.normal {
    color: #10b981;
}

.elapsed-time.warning {
    color: #f59e0b;
    background-color: #78350f;
}

.elapsed-time.critical {
    color: #ffffff;
    background-color: #dc2626;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ticket Context */
.ticket-context {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #d1d5db;
}

.source-badge {
    font-weight: 600;
}

.location {
    color: #9ca3af;
}

/* Ticket Indicators */
.ticket-indicators {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.allergen-indicator {
    background-color: #7f1d1d;
    color: #fef2f2;
}

.notes-indicator {
    background-color: #1e3a8a;
    color: #dbeafe;
}

.indicator .material-icons {
    font-size: 16px;
}

/* Ticket Items */
.ticket-items-list {
    border-top: 1px solid #4b5563;
    padding-top: 12px;
    margin-bottom: 12px;
}

.ticket-item {
    margin-bottom: 12px;
}

.item-header {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
}

.item-qty {
    font-size: 20px;
    font-weight: 800;
    color: #ffd700;
    min-width: 40px;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.item-modifiers,
.item-allergens,
.item-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-left: 50px;
    font-size: 13px;
}

.modifier-tag {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.allergen-tag {
    background-color: #7f1d1d;
    color: #fef2f2;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.item-allergens {
    align-items: center;
}

.allergen-icon {
    color: #fbbf24;
    font-size: 16px;
}

.item-notes {
    align-items: center;
    color: #9ca3af;
    font-style: italic;
}

.item-notes .material-icons {
    font-size: 16px;
}

/* Ticket Notes */
.ticket-notes {
    background-color: #1f2937;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #d1d5db;
}

/* Ticket Actions */
.ticket-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #4b5563;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .kanban-columns {
        grid-template-columns: 1fr;
        height: auto;
    }

    .kanban-column {
        max-height: 600px;
    }

    .kitchen-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .kitchen-title {
        font-size: 20px;
    }

    .order-number {
        font-size: 18px;
    }

    .item-qty {
        font-size: 16px;
    }

    .item-name {
        font-size: 14px;
    }
}
