/* Dashboard Page Styles */

/* Stats Cards */
.dashboard-stat-card {
    background: #ffffff;
    border: 1px solid var(--secondary-bg, #F5E7C6);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-accent);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Stat-specific icon box colors */
.stat-icon-new {
    background-color: rgba(255, 109, 31, 0.1);
    color: var(--primary-accent);
}
.stat-icon-preparing {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.stat-icon-sales {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}
.stat-icon-menu {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.stat-info {
    flex-grow: 1;
}

.stat-info .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Kanban Board Layout */
.kanban-board {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background-color: rgba(245, 231, 198, 0.15); /* transparent soft sand */
    border: 1px solid rgba(245, 231, 198, 0.5);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 80vh;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(245, 231, 198, 0.6);
}

.kanban-column-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.kanban-column-badge {
    background-color: var(--text-dark);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Column Header Specific Accent Colors */
.kanban-column-new {
    border-bottom-color: rgba(255, 109, 31, 0.3);
}
.kanban-column-new .kanban-column-badge {
    background-color: var(--primary-accent);
}

.kanban-column-preparing {
    border-bottom-color: rgba(13, 110, 253, 0.3);
}
.kanban-column-preparing .kanban-column-badge {
    background-color: #0d6efd;
}

.kanban-column-ready {
    border-bottom-color: rgba(25, 135, 84, 0.3);
}
.kanban-column-ready .kanban-column-badge {
    background-color: #198754;
}

.kanban-cards-container {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 2px;
    min-height: 150px;
    max-height: calc(85vh - 120px);
}

/* Scrollbar styling for Kanban Cards Container */
.kanban-cards-container::-webkit-scrollbar {
    width: 6px;
}
.kanban-cards-container::-webkit-scrollbar-track {
    background: transparent;
}
.kanban-cards-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* Order Card Styles */
.order-card {
    background: #ffffff;
    border: 1px solid var(--secondary-bg, #F5E7C6);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border-left: 5px solid var(--primary-accent);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

/* Status-specific cards */
.order-card-new {
    border-left-color: var(--primary-accent);
}
.order-card-preparing {
    border-left-color: #0d6efd;
}
.order-card-ready {
    border-left-color: #198754;
}

.status-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.status-new { background-color: rgba(255, 109, 31, 0.1); color: var(--primary-accent); }
.status-preparing { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.status-ready { background-color: rgba(25, 135, 84, 0.1); color: #198754; }

/* Custom badges */
.order-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.type-dinein {
    background-color: #fff9db;
    color: #f08c00;
}
.type-takeaway {
    background-color: #e8f7ff;
    color: #1c7ed6;
}

.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 50px;
}

.timer-delayed {
    background-color: #fff5f5;
    color: #fa5252;
    animation: pulse-red-border 2s infinite;
    border: 1px solid rgba(250, 82, 82, 0.2);
}

@keyframes pulse-red-border {
    0% { box-shadow: 0 0 0 0 rgba(250, 82, 82, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(250, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 82, 82, 0); }
}

/* Order Items */
.order-items-list {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0;
    list-style: none;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
}

.order-item-row:last-child {
    border-bottom: none;
}

.item-quantity {
    background-color: var(--secondary-bg, #F5E7C6);
    color: var(--text-dark);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* Control Toggles */
.view-toggle-btn {
    border: 1px solid var(--secondary-bg, #F5E7C6);
    background-color: #ffffff;
    color: #6c757d;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    background-color: var(--base-bg);
    color: var(--text-dark);
}

.view-toggle-btn.active {
    background-color: var(--primary-accent);
    color: #ffffff;
    border-color: var(--primary-accent);
}

/* Mobile Columns Tabs styling */
.mobile-kanban-tabs {
    display: flex;
    background-color: #ffffff;
    border: 1px solid var(--secondary-bg, #F5E7C6);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
}

.mobile-kanban-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.mobile-kanban-tab.active {
    background-color: var(--base-bg);
    color: var(--primary-accent);
}

.mobile-kanban-tab-new.active {
    background-color: rgba(255, 109, 31, 0.08);
    color: var(--primary-accent);
}
.mobile-kanban-tab-preparing.active {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}
.mobile-kanban-tab-ready.active {
    background-color: rgba(25, 135, 84, 0.08);
    color: #198754;
}

/* Operations panel */
.op-card {
    background: #ffffff;
    border: 1px solid var(--secondary-bg, #F5E7C6);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.25rem;
}

.pulsate-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #198754;
    display: inline-block;
    animation: pulsate-green 1.5s infinite;
}

.pulsate-dot-paused {
    background-color: #ffc107;
    animation: none;
}

@keyframes pulsate-green {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.op-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    background-color: #f8f9fa;
    border: 1px solid transparent;
}

.op-link:hover {
    background-color: var(--base-bg);
    border-color: var(--secondary-bg);
    color: var(--primary-accent);
}

.recent-order-item {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.recent-order-item:last-child {
    border-bottom: none;
}

/* Queue Status Tabs styling */
.queue-status-tabs {
    display: flex;
    background-color: #ffffff;
    border: 1px solid var(--secondary-bg, #F5E7C6);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
    gap: 4px;
}

.queue-status-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.queue-status-tab:hover {
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.02);
}

.queue-status-tab.active {
    background-color: var(--base-bg);
    color: var(--primary-accent);
}

.queue-status-tab-new.active {
    background-color: rgba(255, 109, 31, 0.08);
    color: var(--primary-accent);
}
.queue-status-tab-preparing.active {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}
.queue-status-tab-ready.active {
    background-color: rgba(25, 135, 84, 0.08);
    color: #198754;
}
