@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Business OS Site-Specific Styles */
/* This file contains site-specific overrides and legacy compatibility styles */

/* Legacy compatibility - these will be gradually migrated to theme.css */
h1:focus {
    outline: none;
}

.content {
    padding-top: var(--theme-spacing-md);
}

/* Form validation styles - enhanced with theme colors */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--theme-success);
    border-color: var(--theme-success);
}

.invalid {
    outline: 1px solid var(--theme-error);
    border-color: var(--theme-error);
}

.validation-message {
    color: var(--theme-error);
    font-size: var(--theme-font-size-sm);
    margin-top: var(--theme-spacing-xs);
    display: block;
}

/* Blazor error UI - enhanced with theme styling */
#blazor-error-ui {
    background: var(--theme-error);
    bottom: 0;
    box-shadow: var(--theme-shadow-lg);
    display: none;
    left: 0;
    padding: var(--theme-spacing-base) var(--theme-spacing-lg) var(--theme-spacing-base) var(--theme-spacing-lg);
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--theme-text-inverse);
    font-weight: var(--theme-font-weight-medium);
    border-top: 3px solid var(--theme-error-hover);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: var(--theme-spacing-base);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--theme-font-size-lg);
    font-weight: var(--theme-font-weight-bold);
    color: var(--theme-text-inverse);
    opacity: 0.8;
    transition: opacity var(--theme-transition-fast);
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}

#blazor-error-ui .reload {
    color: var(--theme-text-inverse);
    text-decoration: underline;
    font-weight: var(--theme-font-weight-medium);
    margin-right: var(--theme-spacing-md);
}

#blazor-error-ui .reload:hover {
    color: var(--theme-text-inverse);
    text-decoration: none;
}

/* Blazor error boundary - enhanced styling */
.blazor-error-boundary {
    background: linear-gradient(135deg, var(--theme-error) 0%, var(--theme-error-hover) 100%);
    padding: var(--theme-spacing-md) var(--theme-spacing-lg) var(--theme-spacing-md) 3.7rem;
    color: var(--theme-text-inverse);
    border-radius: var(--theme-border-radius);
    margin: var(--theme-spacing-md) 0;
    box-shadow: var(--theme-shadow);
    position: relative;
    overflow: hidden;
}

.blazor-error-boundary::before {
    content: "⚠";
    position: absolute;
    left: var(--theme-spacing-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--theme-font-size-2xl);
    font-weight: var(--theme-font-weight-bold);
}

.blazor-error-boundary::after {
    content: "An error has occurred. Please refresh the page or contact support if the problem persists.";
    font-weight: var(--theme-font-weight-medium);
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--theme-border);
    border-radius: 50%;
    border-top-color: var(--theme-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus management for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--theme-primary);
    color: var(--theme-text-inverse);
    padding: var(--theme-spacing-sm) var(--theme-spacing-base);
    text-decoration: none;
    border-radius: var(--theme-border-radius);
    font-weight: var(--theme-font-weight-medium);
    z-index: 1000;
    transition: top var(--theme-transition-fast);
}

.skip-link:focus {
    top: 6px;
    color: var(--theme-text-inverse);
    text-decoration: none;
}

/* Responsive Design Optimizations */

/* Mobile-first responsive breakpoints */
@media (max-width: 575.98px) {
    /* Extra small devices (phones) */
    .content {
        padding: var(--theme-spacing-sm);
    }
    
    .card {
        margin-bottom: var(--theme-spacing-sm);
    }
    
    .btn {
        font-size: var(--theme-font-size-sm);
        padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    }
    
    .table-responsive {
        font-size: var(--theme-font-size-sm);
    }
    
    /* Stack form elements vertically on mobile */
    .row .col-md-6,
    .row .col-lg-4,
    .row .col-lg-6 {
        margin-bottom: var(--theme-spacing-sm);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small devices (landscape phones) */
    .content {
        padding: var(--theme-spacing-base);
    }
    
    .card-columns {
        column-count: 1;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Medium devices (tablets) */
    .card-columns {
        column-count: 2;
    }
    
    .sidebar {
        width: 200px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Large devices (desktops) */
    .card-columns {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    /* Extra large devices (large desktops) */
    .card-columns {
        column-count: 4;
    }
}

/* Performance Optimizations */

/* GPU acceleration for animations */
.btn,
.card,
.kitchen-order-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize images for performance */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Optimize font loading */
@font-display: swap;

/* Reduce layout shifts */
.loading-placeholder {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Optimize table performance */
.table-fixed {
    table-layout: fixed;
}

.table-fixed th,
.table-fixed td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Container queries for component-level responsiveness */
@container (max-width: 400px) {
    .card-responsive {
        padding: var(--theme-spacing-sm);
    }
    
    .card-responsive .btn {
        width: 100%;
        margin-bottom: var(--theme-spacing-xs);
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .nav-link {
        padding: var(--theme-spacing-sm) var(--theme-spacing-base);
    }
}

/* Optimize for high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Lazy loading optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Intersection observer optimization */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize scrolling performance */
.scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Reduce repaints */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Critical CSS inlining helpers */
.above-fold {
    contain: layout style paint;
}

/* Responsive typography */
@media (max-width: 575.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}

/* Responsive spacing utilities */
@media (max-width: 575.98px) {
    .p-responsive { padding: var(--theme-spacing-sm) !important; }
    .m-responsive { margin: var(--theme-spacing-sm) !important; }
    .px-responsive { padding-left: var(--theme-spacing-sm) !important; padding-right: var(--theme-spacing-sm) !important; }
    .py-responsive { padding-top: var(--theme-spacing-sm) !important; padding-bottom: var(--theme-spacing-sm) !important; }
}

@media (min-width: 576px) {
    .p-responsive { padding: var(--theme-spacing-base) !important; }
    .m-responsive { margin: var(--theme-spacing-base) !important; }
    .px-responsive { padding-left: var(--theme-spacing-base) !important; padding-right: var(--theme-spacing-base) !important; }
    .py-responsive { padding-top: var(--theme-spacing-base) !important; padding-bottom: var(--theme-spacing-base) !important; }
}

/* Responsive grid improvements */
.row-responsive {
    --bs-gutter-x: 1rem;
}

@media (max-width: 575.98px) {
    .row-responsive {
        --bs-gutter-x: 0.5rem;
    }
    
    .row-responsive > * {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }
}

/* Performance monitoring helpers */
.perf-mark {
    display: none;
}

/* Responsive navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--theme-surface);
        border-radius: var(--theme-border-radius);
        margin-top: var(--theme-spacing-sm);
        padding: var(--theme-spacing-base);
        box-shadow: var(--theme-shadow);
    }
}

/* Print styles */
@media print {
    #blazor-error-ui {
        display: none !important;
    }
    
    .blazor-error-boundary {
        background: transparent !important;
        color: var(--theme-text-primary) !important;
        border: 1px solid var(--theme-border) !important;
        box-shadow: none !important;
    }
    
    .loading-spinner {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .validation-message {
        font-weight: var(--theme-font-weight-semibold);
    }
    
    #blazor-error-ui {
        border: 2px solid currentColor;
    }
    
    .blazor-error-boundary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Cloud Kitchen Console Styles */
.kitchen-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bs-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kitchen-display-container {
    min-height: calc(100vh - 200px);
    background: var(--bs-gray-50);
}

.kitchen-column {
    background: var(--bs-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.column-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.column-content {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 1rem;
}

.kitchen-order-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.kitchen-order-card.overdue {
    border-left: 4px solid var(--bs-danger) !important;
    background: rgba(220, 53, 69, 0.05);
}

.brand-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

.coordination-panel {
    border-top: 3px solid var(--bs-primary);
    background: var(--bs-light);
}

.station-workload,
.brand-workload {
    padding: 0.5rem;
    border-radius: 4px;
    background: var(--bs-white);
    border: 1px solid var(--bs-gray-200);
}

.kitchen-list-view .table th {
    background: var(--bs-gray-100);
    border-bottom: 2px solid var(--bs-gray-300);
    font-weight: 600;
}

.kitchen-list-view .table-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.empty-column {
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kitchen-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .kitchen-display-container .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    .column-content {
        max-height: 400px;
    }
}

/* Animation for new orders */
@keyframes newOrderPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.kitchen-order-card.new-order {
    animation: newOrderPulse 2s infinite;
}

/* Progress bars for utilization */
.progress {
    background-color: var(--bs-gray-200);
}

/* Sound alert indicator */
.form-check-input:checked {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

/* Multi-brand coordination styles */
.coordination-panel .alert {
    border-left: 4px solid var(--bs-warning);
}

.coordination-panel .card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Kitchen station icons */
.fas.fa-snowflake { color: #17a2b8; }
.fas.fa-fire { color: #dc3545; }
.fas.fa-fire-alt { color: #fd7e14; }
.fas.fa-fire-flame-curved { color: #ffc107; }
.fas.fa-leaf { color: #28a745; }
.fas.fa-ice-cream { color: #e83e8c; }
.fas.fa-coffee { color: #6f42c1; }
.fas.fa-shipping-fast { color: #007bff; }

/* Order priority indicators */
.priority-high { color: var(--bs-danger); }
.priority-medium { color: var(--bs-warning); }
.priority-normal { color: var(--bs-success); }

/* Preparation time tracking */
.prep-time-info {
    background: rgba(0,0,0,0.02);
    border-radius: 4px;
}

/* Brand filter dropdown */
.dropdown-menu .brand-color-indicator {
    width: 8px;
    height: 8px;
}

/* View mode toggle */
.btn-group .btn-check:checked + .btn {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Dashboard Improvements */
.dashboard-header {
    position: relative;
}

/* Fix navbar alignment in dashboard */
.dashboard-header .d-flex.gap-sm {
    flex-wrap: nowrap;
    align-items: center;
}

/* Ensure buttons stay on same line */
.dashboard-header .d-flex.gap-sm .btn {
    white-space: nowrap;
}

/* Quick Action Buttons Modernization */
.quick-action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 63, 208, 0.2);
}

.quick-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-action-btn.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
    border: none;
}

.quick-action-btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary-hover) 0%, var(--theme-primary-active) 100%);
    box-shadow: 0 4px 12px rgba(91, 63, 208, 0.3);
}

.quick-action-btn.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.quick-action-btn.btn-outline-primary:hover {
    background-color: var(--theme-primary-light);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

/* Fix gap between icon and label in KPI cards */
.gap-base {
    gap: var(--theme-spacing-base) !important;
}

/* Responsive dashboard header */
@media (max-width: 767.98px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: var(--theme-spacing-base);
    }
    
    .dashboard-header .d-flex.gap-sm {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    
    .dashboard-header .d-flex.gap-sm .btn {
        flex: 0 0 auto;
        min-width: auto;
    }
}

@media (max-width: 575.98px) {
    .dashboard-header .d-flex.gap-sm {
        flex-wrap: wrap;
    }
    
    .dashboard-header .d-flex.gap-sm .btn {
        flex: 1 1 calc(50% - var(--theme-spacing-sm));
        min-width: 140px;
    }
}

/* Empty state styling */
.table tbody td[colspan] {
    background-color: var(--theme-background);
}

.table tbody td[colspan] i {
    color: var(--theme-text-muted);
    opacity: 0.5;
}

/* Card icon container improvements */
.bg-primary-light,
.bg-success-light,
.bg-warning-light,
.bg-info-light {
    transition: all var(--theme-transition-fast);
}

.card:hover .bg-primary-light {
    background-color: var(--theme-primary) !important;
}

.card:hover .bg-primary-light i {
    color: white !important;
}

.card:hover .bg-success-light {
    background-color: var(--theme-success) !important;
}

.card:hover .bg-success-light i {
    color: white !important;
}

.card:hover .bg-warning-light {
    background-color: var(--theme-warning) !important;
}

.card:hover .bg-warning-light i {
    color: white !important;
}

.card:hover .bg-info-light {
    background-color: var(--theme-info) !important;
}

.card:hover .bg-info-light i {
    color: white !important;
}

/* POS System Styles */
.pos-container {
    background: var(--theme-background);
}

.pos-header {
    background: var(--theme-surface);
}

.pos-menu {
    background: var(--theme-background);
}

.pos-order {
    background: var(--theme-surface);
}

/* Table Select Dropdown with Arrow */
.table-select {
    width: auto;
    min-width: 180px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    cursor: pointer;
}

.position-relative .select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--theme-text-secondary);
    font-size: 0.75rem;
}

/* Menu Item Cards - Enhanced and Wider */
.menu-item-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(91, 63, 208, 0.15);
    border-color: var(--theme-primary);
}

.menu-item-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(91, 63, 208, 0.2);
}

.menu-item-card.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.menu-item-card.unavailable:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-border);
}

.menu-item-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--theme-background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary-lighter) 100%);
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--theme-primary);
    opacity: 0.5;
}

.menu-item-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item-info .item-name {
    font-weight: var(--theme-font-weight-semibold);
    font-size: var(--theme-font-size-base);
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.menu-item-info .item-price {
    font-weight: var(--theme-font-weight-bold);
    font-size: var(--theme-font-size-lg);
    color: var(--theme-primary);
}

.unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--theme-font-weight-semibold);
    font-size: var(--theme-font-size-base);
}

/* Order Item Styles */
.order-item {
    transition: background-color 0.2s ease;
}

.order-item:hover {
    background-color: var(--theme-background);
}

.order-item .item-name {
    font-size: var(--theme-font-size-base);
    color: var(--theme-text-primary);
}

.order-item .item-price {
    color: var(--theme-text-secondary);
}

.order-item .item-total {
    color: var(--theme-primary);
    font-size: var(--theme-font-size-lg);
}

.quantity-controls .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls .quantity {
    min-width: 40px;
    text-align: center;
    font-size: var(--theme-font-size-base);
}

/* Empty Order State */
.empty-order {
    padding: 3rem 1rem;
}

.empty-order i {
    font-size: 3rem;
    color: var(--theme-text-muted);
    opacity: 0.5;
}

/* Order Summary */
.order-summary {
    background: var(--theme-background);
}

.summary-line {
    font-size: var(--theme-font-size-base);
    color: var(--theme-text-primary);
}

.summary-line.font-medium {
    font-size: var(--theme-font-size-lg);
}

/* Category Tabs */
.category-tabs .btn {
    transition: all 0.2s ease;
}

.category-tabs .btn:hover {
    transform: translateY(-1px);
}

/* Success Alert Positioning */
.alert.position-fixed {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive POS Layout */
@media (max-width: 991.98px) {
    .pos-main {
        flex-direction: column;
    }
    
    .pos-order {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid var(--theme-border);
        max-height: 50vh;
    }
    
    .menu-item-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .menu-item-image {
        height: 120px;
    }
    
    .image-placeholder i {
        font-size: 2rem;
    }
    
    .table-select {
        min-width: 140px;
        font-size: var(--theme-font-size-sm);
    }
}


/* ========================================
   MODERN POS SYSTEM STYLES
   ======================================== */

/* Workflow Steps Indicator */
.workflow-steps {
    padding: 1rem 0;
    overflow-x: auto;
    white-space: nowrap;
}

.workflow-step {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.workflow-step.active {
    opacity: 1;
}

.workflow-step.completed {
    opacity: 1;
}

.workflow-step .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--theme-background);
    border: 2px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--theme-text-muted);
    transition: all 0.3s ease;
}

.workflow-step.active .step-icon {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
    border-color: var(--theme-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 63, 208, 0.3);
    animation: pulse 2s infinite;
}

.workflow-step.completed .step-icon {
    background-color: var(--theme-success);
    border-color: var(--theme-success);
    color: white;
}

.workflow-step .step-label {
    font-size: var(--theme-font-size-xs);
    font-weight: var(--theme-font-weight-medium);
    color: var(--theme-text-secondary);
    text-align: center;
}

.workflow-step.active .step-label {
    color: var(--theme-primary);
    font-weight: var(--theme-font-weight-semibold);
}

.workflow-step.completed .step-label {
    color: var(--theme-success);
}

.workflow-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--theme-border);
    font-size: 0.875rem;
    margin: 0 0.5rem;
    padding-bottom: 1.5rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(91, 63, 208, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(91, 63, 208, 0.5);
    }
}

/* Modern POS Menu Item Cards */
.pos-menu-item-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pos-menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(91, 63, 208, 0.15);
    border-color: var(--theme-primary);
}

.pos-menu-item-card:active {
    transform: translateY(-2px) scale(0.98);
}

.pos-menu-item-card.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.pos-menu-item-card.unavailable:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-color: var(--theme-border);
}

.menu-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, #f8f9ff 100%);
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pos-menu-item-card:hover .menu-item-image {
    transform: scale(1.05);
}

.menu-item-image-wrapper .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-image-wrapper .image-placeholder i {
    font-size: 3.5rem;
    color: var(--theme-primary);
    opacity: 0.3;
}

.menu-item-details {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-item-details .item-name {
    font-weight: var(--theme-font-weight-semibold);
    font-size: var(--theme-font-size-base);
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-details .item-price {
    font-weight: var(--theme-font-weight-bold);
    font-size: 1.125rem;
    color: var(--theme-primary);
}

.menu-item-details .add-icon {
    color: var(--theme-primary);
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.pos-menu-item-card:hover .add-icon {
    transform: scale(1.2);
}

.unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.unavailable-overlay .badge {
    font-size: var(--theme-font-size-sm);
    padding: 0.5rem 1rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Responsive Workflow Steps */
@media (max-width: 991.98px) {
    .workflow-steps {
        padding: 0.75rem 0;
    }
    
    .workflow-step .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .workflow-step .step-label {
        font-size: 0.625rem;
    }
    
    .workflow-arrow {
        margin: 0 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .workflow-steps {
        justify-content: flex-start;
    }
    
    .workflow-step .step-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .workflow-step .step-label {
        display: none;
    }
    
    .menu-item-image-wrapper {
        height: 140px;
    }
    
    .menu-item-image-wrapper .image-placeholder i {
        font-size: 2.5rem;
    }
}

/* POS Header Improvements */
.pos-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Menu Items Grid Improvements */
.menu-items {
    background: var(--theme-background);
}

.menu-items .row {
    margin: 0;
}

/* Category Tabs Improvements */
.category-tabs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-tabs .btn {
    font-weight: var(--theme-font-weight-medium);
    transition: all 0.2s ease;
}

.category-tabs .btn:hover {
    transform: translateY(-1px);
}

.category-tabs .btn-primary {
    box-shadow: 0 2px 8px rgba(91, 63, 208, 0.25);
}

/* Order Panel Improvements */
.pos-order {
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}

/* Smooth Scrolling */
.menu-items,
.order-items {
    scroll-behavior: smooth;
}

/* Loading State for Menu Items */
.menu-items.loading {
    opacity: 0.6;
    pointer-events: none;
}


/* Guest Ordering - Cart Button Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.pulse-animation:hover {
    animation: none;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Floating Cart Button */
.btn-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1030;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Connection Status Badge */
.connection-status .badge {
    font-size: var(--theme-font-size-sm);
    padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    font-weight: var(--theme-font-weight-medium);
}

.connection-status .badge i {
    font-size: 0.7em;
}

/* Kitchen Order Card Overdue State */
.kitchen-order-card.overdue {
    border-color: var(--bs-danger) !important;
    background-color: rgba(var(--bs-danger-rgb), 0.05);
}
