/**
 * HMS KOT Kanban Display Console Engine Stylesheet
 */

.hms-kot-board-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
}

/* Kanban Column Panels */
.kot-board-column {
    background: #f1f5f9;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid var(--hms-border-light);
    display: flex;
    flex-direction: column;
    min-height: 70vh;
}

.kot-column-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 4px 8px;
}

.header-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.kot-column-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kot-column-count {
    margin-left: auto;
    background: #fff;
    color: #475569;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #e2e8f0;
}

/* Scrollable Inner Content Area */
.kot-column-body-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for columns */
.kot-column-body-cards::-webkit-scrollbar { width: 5px; }
.kot-column-body-cards::-webkit-scrollbar-track { background: transparent; }
.kot-column-body-cards::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* KOT Card Configurations */
.hms-kitchen-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    border-top: 6px solid #64748b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    animation: cardEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hms-kitchen-card.state-pending { border-top-color: #f59e0b; }
.hms-kitchen-card.state-cooking { border-top-color: #3b82f6; background: #fff; }
.hms-kitchen-card.state-ready { border-top-color: #10b981; }

/* Pulse Animation for Extreme Delays */
.hms-kitchen-card.delay-critical {
    border-top-color: #ef4444 !important;
    animation: criticalBlink 2s infinite ease-in-out;
}

@keyframes criticalBlink {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.kot-card-header {
    padding: 12px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kot-card-body { padding: 15px; flex: 1; }
.kot-card-footer { padding: 12px 15px; background: #f8fafc; border-top: 1px solid #f1f5f9; }

.kot-order-content {
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    font-weight: 700;
    white-space: pre-line;
}

.hms-kot-action-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-state-pending { background: #3b82f6; color: #fff; }
.btn-state-pending:hover { background: #2563eb; transform: translateY(-1px); }
.btn-state-cooking { background: #10b981; color: #fff; }
.btn-state-cooking:hover { background: #059669; transform: translateY(-1px); }
.btn-state-ready { background: #0f172a; color: #fff; }
.btn-state-ready:hover { background: #1e293b; transform: translateY(-1px); }

/* Empty column helper state styling */
.mini-empty-state {
    text-align: center;
    padding: 30px 10px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}