/* Orders Stopped Banner */
.orders-stopped-banner {
    background: linear-gradient(135deg, #D32F2F, #C62828);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
    animation: slideDown 0.3s ease-out;
}

.orders-stopped-banner.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orders-stopped-banner .icon {
    font-size: 32px;
}

.orders-stopped-banner .message {
    flex: 1;
}

.orders-stopped-banner h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.orders-stopped-banner p {
    font-size: 14px;
    opacity: 0.9;
}

/* Stats Overview */
.stats-overview {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: white;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stat-item:hover {
    background: #F8F9FA;
    transform: translateY(-2px);
}

.stat-item .icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-item .label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.stat-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #1976D2;
    white-space: nowrap;
}

/* Orders Grid */
.orders-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 16px;
        }
.order-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            border-left: 4px solid #FFC107;
            overflow: hidden;
            transition: all 0.2s;
            position: relative;
        }

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

        .priority-urgent {
            border-left-color: #F44336;
        }

        .order-header {
            padding: 12px 16px;
            background: #fafafa;
            border-bottom: 1px solid #eee;
        }

        .order-header-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .order-id-section {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .order-id-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .order-id {
            font-size: 13px;
            font-weight: bold;
            color: #333;
            font-family: 'Courier New', monospace;
        }

        .order-time {
            font-size: 11px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .order-time-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .order-timer {
            font-size: 11px;
            padding: 2px 8px;
            background: #fff3cd;
            border-radius: 12px;
            font-weight: 600;
        }

        .timer-urgent {
            background: #ffebee;
            color: #c62828;
        }

        .status-badge {
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 10px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .status-pending {
            background: #FFF3E0;
            color: #E65100;
        }

        .status-confirmed {
            background: #E8F5E9;
            color: #2E7D32;
        }

        .order-header-summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: #555;
        }

        .order-customer-quick {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .order-total-quick {
            font-size: 15px;
            font-weight: 700;
            color: #1976D2;
        }

        .payment-indicator {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
            z-index: 10;
        }

        .payment-indicator:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
        }

        .payment-indicator:active {
            transform: scale(0.95);
        }

        .payment-indicator.no-payment {
            background: #e0e0e0;
            cursor: not-allowed;
            opacity: 0.5;
        }

        .payment-indicator.no-payment:hover {
            transform: none;
            box-shadow: none;
        }

        .payment-icon {
            font-size: 16px;
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
        }

        /* Payment Modal */
        .payment-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            animation: fadeIn 0.2s ease;
        }

        .payment-modal.active {
            display: flex;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .payment-modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90vh;
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .payment-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid #f0f0f0;
        }

        .payment-modal-title {
            font-size: 18px;
            font-weight: 700;
            color: #333;
        }

        .payment-modal-close {
            width: 32px;
            height: 32px;
            border: none;
            background: #f5f5f5;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            font-size: 20px;
            color: #666;
        }

        .payment-modal-close:hover {
            background: #e0e0e0;
            transform: rotate(90deg);
        }

        .payment-modal-image {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .payment-modal-no-image {
            padding: 60px;
            text-align: center;
            color: #999;
            font-size: 16px;
        }

        .order-body {
            overflow: visible;
        }

        .order-body-details {
            padding: 12px 16px;
            font-size: 13px;
        }

        .order-items {
            background: #f9f9f9;
            padding: 10px;
            border-radius: 6px;
        }

        .order-items-title {
            font-weight: 600;
            margin-bottom: 6px;
            font-size: 12px;
            color: #333;
        }

        .order-items-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .order-items-list div {
            font-size: 12px;
            color: #555;
            padding: 3px 0;
        }

        /* Compact footer buttons */
        .order-footer {
            padding: 8px 12px;
            display: flex;
            gap: 8px;
            border-top: 1px solid #eee;
        }

        .btn {
            flex: 1;
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .btn-confirm {
            background: #4CAF50;
            color: white;
        }

        .btn-confirm:hover {
            background: #45a049;
            transform: scale(1.02);
        }

        .btn-ready {
            background: #2196F3;
            color: white;
        }

        .btn-ready:hover {
            background: #1976D2;
            transform: scale(1.02);
        }

        .btn-payment {
            background: #f5f5f5;
            color: #333;
            border: 1px solid #ddd;
        }

        .btn-payment:hover {
            background: #e8e8e8;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .orders-grid {
                grid-template-columns: 1fr;
            }

            .stats-overview {
                grid-template-columns: repeat(2, 1fr);
            }
        }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #95A5A6;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #7F8C8D;
}

.payment-modal-loading {
    padding: 60px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
    }

    .stats-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

