/* ===================================
   ORDERNA - Kiosk System Stylesheet
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;

    /* Secondary Colors */
    --secondary: #10b981;
    --secondary-dark: #059669;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--white-500);
    font-size: 0.875rem;
}

.loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-500);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.badge-customer {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge.badge-seller {
    background-color: #fef3c7;
    color: #92400e;
}

.badge.badge-admin {
    background-color: #fce7f3;
    color: #9f1239;
}

/* Status Badges */
.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-accepted {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-preparing {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-ready {
    background-color: #dcfce7;
    color: #166534;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-300);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: var(--secondary-dark);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

.btn-google {
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: var(--gray-50);
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===================================
   PRODUCTS PAGE
   =================================== */

.products-list {
    display: grid;
    gap: var(--spacing-md);
}

.product-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    transition: box-shadow 0.2s;
}

.product-item:hover {
    box-shadow: var(--shadow-md);
}

.product-item-image {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-md);
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item-info {
    flex: 1;
}

.product-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.product-item-details {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.product-item-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-item-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn.edit {
    background-color: #dbeafe;
    color: var(--primary);
}

.icon-btn.edit:hover {
    background-color: #bfdbfe;
}

.icon-btn.delete {
    background-color: #fee2e2;
    color: var(--danger);
}

.icon-btn.delete:hover {
    background-color: #fecaca;
}

.icon-btn.toggle {
    background-color: var(--gray-200);
    color: var(--gray-600);
}

.icon-btn.toggle:hover {
    background-color: var(--gray-300);
}

.image-upload {
    text-align: center;
}

.image-preview {
    width: 12rem;
    height: 12rem;
    margin: 0 auto var(--spacing-md);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    background-color: var(--gray-50);
}

.image-preview:hover {
    border-color: var(--primary);
    background-color: var(--gray-100);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload input[type="file"] {
    display: none;
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.alert-warning {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.alert strong {
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   CATEGORIES PAGE
   =================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.category-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.category-card-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.category-card-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* ===================================
   ORDERS PAGE
   =================================== */

.orders-list {
    display: grid;
    gap: var(--spacing-md);
}

.order-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.order-id {
    font-weight: 600;
    color: var(--gray-900);
}

.order-time {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.order-info {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-item label {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.order-info-item span {
    font-weight: 600;
    color: var(--gray-900);
}

.order-items {
    margin-bottom: var(--spacing-md);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.order-item-name {
    color: var(--gray-700);
}

.order-item-quantity {
    color: var(--gray-500);
    margin-left: var(--spacing-sm);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.order-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.order-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.order-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   PROFILE PAGE
   =================================== */

.profile-container {
    max-width: 36rem;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.avatar-circle {
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.profile-form {
    margin-top: var(--spacing-xl);
}

/* ===================================
   TOKENS PAGE
   =================================== */

.token-balance-card {
    background: linear-gradient(135deg, var(--success) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: var(--spacing-sm) 0;
}

.balance-info p {
    opacity: 0.9;
}

.token-value {
    font-size: 1.125rem;
}

.balance-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.transactions-section {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.transactions-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
}

.transactions-list {
    display: grid;
    gap: var(--spacing-sm);
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--danger);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95vw;
    }

    .dashboard-header {
        padding: var(--spacing-md);
    }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .page-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .product-item-actions {
        width: 100%;
        justify-content: center;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .order-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .order-footer {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .order-actions {
        width: 100%;
    }

    .order-actions .btn {
        flex: 1;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .token-balance-card {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .table-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-content.modal-bottom {
    animation: slideUp 0.3s ease;
}

/* ===================================
   UTILITY ANIMATIONS
   =================================== */

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .no-print,
    .dashboard-header,
    .page-header,
    .filter-bar,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        background: white;
    }

    .order-card,
    .product-item {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-google:hover {
    background-color: var(--gray-50);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 0.7;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: var(--spacing-sm);
}

.btn-back:hover {
    color: var(--gray-800);
}

.button-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* ===================================
   FORMS
   =================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--gray-500);
    font-size: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
}

.input-group input {
    flex: 1;
}

/* ===================================
   MODALS
   =================================== */

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.modal-content.modal-large {
    max-width: 42rem;
}

.modal-content.modal-bottom {
    max-width: 28rem;
    position: absolute;
    bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 80vh;
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.modal-footer .btn {
    flex: 1;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
/*    width: 2rem;
    height: 2rem; */
    display: flex;
    align-items: center;
/*    justify-content: center; */
}

.close-modal:hover {
    color: var(--gray-700);
}

/* ===================================
   LANDING PAGE
   =================================== */

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.welcome-screen {
    text-align: center;
    max-width: 32rem;
}

.welcome-screen h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.welcome-screen p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

/* ===================================
   LOGIN PAGE
   =================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 24rem;
}

.login-box h1 {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
    text-align: center;
}

.login-box .subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.error-message {
    padding: var(--spacing-md);
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--gray-300);
}

.divider span {
    background: white;
    padding: 0 var(--spacing-md);
    color: var(--gray-500);
    font-size: 0.875rem;
    position: relative;
}

.toggle-auth {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.toggle-auth button {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
}

.toggle-auth button:hover {
    text-decoration: underline;
}

.demo-note {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
    text-align: center;
}

.demo-note p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0.25rem 0;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   DASHBOARD
   =================================== */

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-xs);
}

.dashboard-header p {
    opacity: 0.9;
}

.dashboard-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    width: 100%;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.menu-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.menu-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.menu-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.menu-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.share-kiosk {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.share-kiosk h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

/* ===================================
   KIOSK PAGE
   =================================== */

.kiosk-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 28rem;
    margin: 0 auto;
    background: white;
    box-shadow: var(--shadow-xl);
}

.kiosk-header {
    background-color: var(--primary);
    color: white;
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.kiosk-header h1 {
    font-size: 1.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

#table-info {
    font-size: 0.875rem;
}

.category-nav {
    background-color: var(--gray-200);
    padding: var(--spacing-sm);
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: var(--spacing-sm);
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-btn:hover {
    background-color: var(--gray-300);
}

.category-btn.active {
    background-color: var(--primary);
    color: white;
}

.products-grid {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    align-content: start;
}

.product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.product-card.bounce {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

.product-image {
    width: 3rem;
    height: 3rem;
    background-color: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
}

.product-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.product-stock-low {
    font-size: 0.75rem;
    color: var(--warning);
    margin-top: var(--spacing-xs);
}

.cart-summary-bar {
    background: white;
    border-top: 1px solid var(--gray-300);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.cart-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
}

.cart-badge {
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.qty-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--gray-200);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: var(--gray-300);
}

.qty-btn:active {
    transform: scale(0.95);
}

.cart-item-quantity {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 1.5rem;
    text-align: center;
}

.cart-item-total {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 4rem;
    text-align: right;
}

.delete-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #fee2e2;
    color: var(--danger);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.delete-btn:hover {
    background-color: #fecaca;
}

.order-summary {
    margin-bottom: var(--spacing-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.summary-row.total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--gray-300);
    margin-top: var(--spacing-sm);
}

.payment-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
}

.change-display {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: #dcfce7;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: #166534;
    display: flex;
    justify-content: space-between;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.table-btn {
    padding: var(--spacing-lg);
    background-color: var(--gray-200);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.table-btn:hover {
    background-color: var(--gray-300);
}

.table-btn.selected {
    background-color: var(--primary);
    color: white;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: var(--spacing-md);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-500);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

/* ===================================
   PAGE LAYOUT (Products, Orders, etc)
   =================================== */

.page-container {
    min-height: 100vh;
    background-color: var(--gray-100);
}

.page-header {
    background: white;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.page-header h1 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.page-content {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.filter-bar {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: white;
    border: 1px solid var(--gray-300);
}




/* ===================================
   TEMPLATES PAGE
   =================================== */

.template-collections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.template-collection {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
}

.template-collection:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.template-collection.active {
    border-color: var(--primary);
    background-color: #eff6ff;
}

.template-collection h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.template-collection p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.selection-info {
    background: var(--gray-50);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    color: var(--primary);
}

.templates-list {
    display: grid;
    gap: var(--spacing-sm);
}

.template-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    transition: all 0.2s;
}

.template-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.template-item.selected {
    border-color: var(--primary);
    background-color: #eff6ff;
}

.template-checkbox {
    position: relative;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.template-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.template-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.5rem;
    width: 1.5rem;
    background-color: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.template-checkbox:hover .checkmark {
    border-color: var(--primary);
}

.template-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.template-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.45rem;
    top: 0.2rem;
    width: 0.35rem;
    height: 0.65rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.template-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.template-info {
    flex: 1;
}

.template-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.template-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.template-price {
    color: var(--primary);
    font-weight: 600;
}

.template-category {
    background-color: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.template-description {
    color: var(--gray-500);
    font-style: italic;
}


/* Preview Modal Styles */
.preview-controls {
    background: var(--gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.preview-summary h3 {
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.preview-table th,
.preview-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.preview-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.preview-table tbody tr:hover {
    background: var(--gray-50);
}

.new-price {
    font-weight: 600;
}

.collection-count {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.template-stock {
    background-color: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}


/* ===================================
   SETTINGS PAGE
   =================================== */

.settings-container {
    max-width: 900px;
    margin: 0 auto;
}

.settings-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
}

.settings-tab {
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
    white-space: nowrap;
}

.settings-tab:hover {
    color: var(--gray-900);
    background-color: var(--gray-50);
}

.settings-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.settings-section {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.settings-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--gray-100);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
    margin-right: var(--spacing-lg);
}

.setting-info label {
    font-weight: 600;
    color: var(--gray-900);
    display: block;
    margin-bottom: 0.25rem;
}

.setting-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.setting-control {
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.setting-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.75rem;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    border-radius: 9999px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.25rem;
    width: 1.25rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(1.25rem);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Danger Zone */
.settings-danger {
    border: 2px solid var(--danger);
    background-color: #fef2f2;
}

.settings-danger h2 {
    color: var(--danger);
}

/* Settings Status */
.settings-status {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background-color: #dcfce7;
    color: #166534;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .setting-info {
        margin-right: 0;
    }

    .setting-control {
        width: 100%;
    }

    .toggle-switch {
        align-self: flex-end;
    }
}


/* ===================================
   USERS MANAGEMENT PAGE
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.search-bar {
    margin-bottom: var(--spacing-lg);
}

.search-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.users-list {
    display: grid;
    gap: var(--spacing-md);
}

.user-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    transition: box-shadow 0.2s;
}

.user-card:hover {
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.user-email {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 0.75rem;
}

.user-meta-item {
    color: var(--gray-500);
}

.user-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.user-stats {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.user-stats h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.user-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.user-stat-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.user-stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.user-stat-value {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        text-align: center;
    }

    .user-actions {
        width: 100%;
        justify-content: center;
    }

    .user-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* POS Card Highlight Styling - Add this to your style.css */

.menu-card-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: 2px solid #059669 !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.02);
    animation: pulse-glow 2s ease-in-out infinite;
}

.menu-card-highlight:hover {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4) !important;
}

.menu-card-highlight .menu-card-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.menu-card-highlight h3 {
    color: white !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-card-highlight p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 10px 35px rgba(16, 185, 129, 0.5);
    }
}

/* Badge styling for cashier role */
.badge-cashier {
    background-color: #10b981;
    color: white;
}

/* Modal Footer Fixes */
.modal-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.modal-footer .order-summary {
    margin-bottom: 1rem;
}

.modal-footer .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.modal-footer .summary-row.total {
    font-weight: bold;
    font-size: 1.25rem;
    padding-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

/* Button Group Grid */
.modal-footer .button-group,
.modal-footer > div[style*="grid"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.modal-footer button {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.modal-footer .close-modal {
    border: 2px solid #d1d5db;
    background: white;
    color: #374151;
}

.modal-footer .close-modal:hover {
    background: #f3f4f6;
}

.modal-footer #checkout-btn,
.modal-footer .btn-primary {
    border: none;
    background: #3b82f6;
    color: white;
}

.modal-footer #checkout-btn:hover,
.modal-footer .btn-primary:hover {
    background: #2563eb;
}

/* Confirmation Modal Fixes */
#confirmation-modal .modal-content {
    max-width: 500px;
    margin: 2rem auto;
}

#confirmation-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

#confirmation-modal button {
    width: 100%;
    max-width: 400px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

#confirmation-modal button:hover {
    background: #2563eb;
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* Table display animations */
#pos-table-number {
    transition: all 0.3s ease;
}

#pos-table-number:hover {
    transform: scale(1.05);
}

/* Change button pulse effect when table not selected */
#change-table-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Table selection modal animations */
.pos-table-btn {
    transition: all 0.2s ease;
}

.pos-table-btn:active {
    transform: scale(0.95) !important;
}

/* Badge for current table */
.pos-table-btn .text-xs {
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Table Button Status Colors */
.table-btn {
    position: relative;
    padding: 1.5rem 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Available - Green */
.table-btn.table-available {
    border-color: #10b981;
    background-color: #d1fae5;
    color: #065f46;
}

.table-btn.table-available:hover {
    background-color: #a7f3d0;
}

/* Occupied - Orange */
.table-btn.table-occupied {
    border-color: #f59e0b;
    background-color: #fef3c7;
    color: #92400e;
}

.table-btn.table-occupied:hover {
    background-color: #fde68a;
}

/* Busy - Red */
.table-btn.table-busy {
    border-color: #ef4444;
    background-color: #fee2e2;
    color: #991b1b;
}

.table-btn.table-busy:hover {
    background-color: #fecaca;
}

/* Selected Table */
.table-btn.selected {
    border-color: #3b82f6 !important;
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}


/* Change Table Button */
#change-table-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#change-table-btn:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

#change-table-btn:active {
    transform: scale(0.95);
}

#change-table-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Table Info Container */
#table-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

#table-number {
    font-weight: bold;
}

/* Table Status Animation */
@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

#table-number {
    display: inline-flex;
    align-items: center;
    animation: statusPulse 0.5s ease-in-out;
}

header, .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-header h1 {
    color: white;
}

.page-header .btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-header .btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Category scroll container */
.category-scroll-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar but keep functionality */
.category-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.category-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ensure buttons don't shrink */
.category-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Optional: Add fade effect on edges */
#category-nav {
    position: relative;
}

#category-nav::before,
#category-nav::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 1;
}

#category-nav::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

#category-nav::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Category navigation - wraps to multiple rows */
#category-nav {
    display: flex;
    flex-wrap: wrap; /* ✅ Allows wrapping to multiple rows */
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0; /* ✅ Prevents buttons from shrinking */
}

.category-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.category-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

/* Demo Trial Banner Animation */
.demo-trial-banner {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Demo Trial Banner Responsive Design */
@media (max-width: 768px) {
    .demo-trial-banner > div {
        flex-direction: column !important;
        text-align: center;
    }

    .demo-trial-banner h3 {
        font-size: 1rem !important;
    }

    .demo-trial-banner p {
        font-size: 0.75rem !important;
    }

    .demo-trial-banner a {
        width: 100%;
        text-align: center;
    }
}

/* Highlight menu cards for demo users */
.menu-card-highlight {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.menu-card-highlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3);
}

/* Demo badge in header */
.badge-demo {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pulse animation for upgrade button */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.demo-trial-banner a {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.demo-trial-banner a:hover {
    animation: none;
}

/* Demo kiosk section styling */
#share-kiosk small {
    font-style: italic;
}

/* Disabled state for features not available to demo users */
.menu-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.menu-card.disabled::after {
    content: "🔒 Upgrade Required";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Trial status indicators */
.trial-status-good {
    color: #10b981;
}

.trial-status-warning {
    color: #f59e0b;
}

.trial-status-critical {
    color: #ef4444;
}

/* Countdown timer styling */
.trial-countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.5rem;
}

/* ============================================
   KIOSK MOBILE FIXES - Add to style.css
   ============================================ */

/* 1. FIX: View Cart Modal - Mobile Responsive */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem; /* Add padding for mobile */
}

.cart-modal.active {
    display: flex;
}

.cart-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh; /* Don't exceed viewport height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-body {
    padding: 1rem;
    overflow-y: auto; /* Scrollable content */
    flex: 1;
}

.cart-modal-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* 2. FIX: Cart Items - Mobile Responsive */
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto; /* Image, info, remove button */
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.cart-item-info {
    min-width: 0; /* Allow text to wrap */
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.cart-item-quantity span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 0.875rem;
}

/* 3. FIX: Cart Action Buttons - Mobile Responsive */
.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 0.75rem;
    margin-top: 1rem;
}

.cart-actions button {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-keep-shopping {
    background: #6b7280;
    color: white;
}

.btn-checkout {
    background: #10b981;
    color: white;
}

/* 4. FIX: Order Type Modal - Add Close Button */
.order-type-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
}

.order-type-modal.active {
    display: flex;
}

.order-type-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.order-type-modal-header {
    padding: 1.5rem;
    padding-right: 3rem; /* Space for close button */
    border-bottom: 1px solid #e5e7eb;
}

.order-type-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #6b7280;
    transition: all 0.2s;
}

.order-type-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.order-type-modal-body {
    padding: 1.5rem;
}

/* 5. FIX: Scroll Indicator for Kiosk Main Page */
.scroll-indicator {
    position: fixed;
    bottom: 6rem; /* Above view cart button */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInOut 2s ease-in-out infinite;
    pointer-events: none;
}

.scroll-indicator-text {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.scroll-indicator-arrow {
    font-size: 2rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Hide scroll indicator when user scrolls down */
.scroll-indicator.hidden {
    display: none;
}

/* 6. Mobile Specific Fixes */
@media (max-width: 640px) {
    /* Cart modal takes more screen space on mobile */
    .cart-modal-content {
        max-width: 100%;
        margin: 0.5rem;
        max-height: 95vh;
    }

    .cart-modal-header,
    .cart-modal-body,
    .cart-modal-footer {
        padding: 1rem;
    }

    /* Smaller cart items */
    .cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    /* Stack buttons on very small screens if needed */
    @media (max-width: 360px) {
        .cart-actions {
            grid-template-columns: 1fr; /* Stack buttons */
        }
    }

    /* Smaller action buttons */
    .cart-actions button {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }

    /* Order type modal */
    .order-type-modal-content {
        margin: 0.5rem;
    }

    .order-type-modal-header,
    .order-type-modal-body {
        padding: 1rem;
    }
}

/* 7. Fix for View Cart Button (keep visible) */
.view-cart-btn {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 3rem;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    min-width: 200px;
}

/* 8. Ensure product grid doesn't hide behind cart button */
.products-grid {
    padding-bottom: 6rem; /* Space for view cart button + scroll indicator */
}

/* ============================================
   KIOSK PAGE WIDTH FIX - Add to style.css
   Makes kiosk page 15% wider
   ============================================ */

/* 1. Original max-width was 1200px, increase by 15% */
.kiosk-container,
.kiosk-main,
.kiosk-content {
    max-width: 600px; /* 1200px * 1.15 = 1380px */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ===================================
   UNIVERSAL HEADER STYLES
   Add this to your style.css
   =================================== */

/* Header Container */
.universal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Gradient Variants */
.header-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.header-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Header Container Layout */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Left Section */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

/* Menu Button (Hamburger) */
.header-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.header-menu-btn.active {
    background: rgba(255, 255, 255, 0.4);
}

/* Logo */
.header-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.9;
}

/* Divider */
.header-divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    display: none;
}

/* Page Title */
.header-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

/* Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Dashboard Button */
.header-dashboard-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
    display: none;
}

.header-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* User Info */
.header-user-info {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.header-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Logout Button */
.header-logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Navigation Dropdown Menu */
.header-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.header-nav-menu.open {
    max-height: 600px;
    opacity: 1;
}

.header-nav-content {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.header-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.header-nav-link.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-title {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet and up (768px+) */
@media (min-width: 768px) {
    .header-divider {
        display: block;
    }

    .header-title {
        display: block;
    }

    .header-dashboard-btn {
        display: inline-block;
    }

    .header-user-info {
        display: flex;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .header-container {
        padding: 1rem 2rem;
    }

    .header-nav-content {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding: 1.5rem;
    }

    .header-nav-link {
        padding: 1rem 1.25rem;
    }

    .nav-title {
        font-size: 0.9375rem;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .header-logo {
        font-size: 1rem;
    }

    .header-logout-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }

    .header-nav-content {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .header-nav-link {
        padding: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .header-menu-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }

    .header-logo {
        font-size: 0.9rem;
    }

    .header-logout-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   COMPATIBILITY FIXES
   Hide old page headers when universal header is present
   =================================== */

body:has(.universal-header) .page-header:not(.keep-old-header),
body:has(.universal-header) .dashboard-header:not(.keep-old-header) {
    display: none;
}

/* Adjust main content area to account for fixed header */
body:has(.universal-header) .page-container,
body:has(.universal-header) .dashboard-container {
    padding-top: 70px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.modal-body {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
}

/* Secondary Header - Page-specific controls below universal header */
.secondary-header {
    position: fixed;
    top: 70px; /* Below universal header */
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between; /* Space between left and right */
    align-items: center;
    z-index: 998;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.secondary-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.secondary-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.secondary-title {
    font-size: 1.125rem; /* Smaller - was 1.5rem */
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* Adjust page container to account for secondary header */
.page-container {
    margin-top: 80px; /* Space for secondary header */
    padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secondary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .secondary-header-left,
    .secondary-header-right {
        width: 100%;
    }

    .secondary-header-right {
        justify-content: flex-end;
    }

    .secondary-title {
        font-size: 1.25rem;
    }

    .page-container {
        margin-top: 140px; /* More space for wrapped secondary header */
        padding: 1rem;
    }
}

/* ===================================
   MOBILE MENU ENHANCEMENTS
   Add this section to your style.css
   =================================== */

/* Mobile Menu - Fixed Scrolling */
.header-nav-menu {
    position: fixed; /* Changed from absolute to fixed */
    top: 70px; /* Below header */
    left: 0;
    right: 0;
    bottom: 0; /* Full height */
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 9997;
}

.header-nav-menu.open {
    max-height: calc(100vh - 70px); /* Full viewport minus header */
    opacity: 1;
}

.header-nav-content {
    height: 100%;
    overflow-y: auto; /* Enable scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.mobile-token-balance {
    margin-bottom: 1rem;
}

.mobile-dashboard-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.2s;
}

.mobile-dashboard-btn:hover {
    transform: translateY(-1px);
}

/* Mobile Menu Links */
.mobile-menu-links {
    padding: 0.5rem;
}

.mobile-menu-links .header-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.mobile-menu-links .header-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.mobile-menu-links .header-nav-link.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-links .nav-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-menu-links .nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1rem;
    border-top: 2px solid #e5e7eb;
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.mobile-logout-btn {
    width: 100%;
    padding: 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-logout-btn:hover {
    background: #dc2626;
}

/* Desktop - Grid Layout */
@media (min-width: 769px) {
    .header-nav-menu {
        position: absolute; /* Back to absolute on desktop */
        bottom: auto;
    }

    .header-nav-content {
        padding: 1rem;
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.5rem;
        height: auto;
        overflow: visible;
    }

    .mobile-menu-header,
    .mobile-menu-footer {
        display: none;
    }

    .mobile-menu-links {
        display: contents;
    }

    .mobile-menu-links .header-nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   KIOSK NOTIFICATION ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
    }
}

/* Notification container */
.kiosk-notification {
    animation: slideInRight 0.3s ease;
}

.kiosk-notification.closing {
    animation: slideOutRight 0.3s ease;
}

/* Modal animations */
.order-ready-modal,
.order-completed-modal,
.payment-confirmed-modal {
    animation: fadeIn 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .kiosk-notification {
        top: 1rem !important;
        right: 1rem !important;
        left: 1rem !important;
        max-width: none !important;
    }

    .order-ready-modal > div {
        padding: 2rem !important;
    }

    .order-ready-modal h1 {
        font-size: 2rem !important;
    }

    .order-ready-modal > div > div:first-child {
        font-size: 6rem !important;
    }
}

/* ============================================
   ORDER READY MODAL - PURPLE THEME
   Add these styles to your style.css
   ============================================ */

/* Order Ready Modal - Purple Background */
.order-ready-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.order-ready-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    animation: bounceIn 0.5s ease;
}

.order-ready-icon {
    font-size: 8rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.order-ready-modal h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.order-ready-number {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin: 1.5rem 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
}

.order-ready-message {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.order-ready-btn {
    background: white;
    color: #667eea;
    padding: 1rem 3rem;
    border: none;
    border-radius: 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.order-ready-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.order-ready-btn:active {
    transform: translateY(0);
}

/* Order Completed Modal - Purple Theme */
.order-completed-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.order-completed-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    animation: bounceIn 0.5s ease;
}

.order-completed-icon {
    font-size: 8rem;
    margin-bottom: 1.5rem;
}

.order-completed-modal h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.order-completed-message {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Payment Confirmed Modal - Purple Theme */
.payment-confirmed-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.payment-confirmed-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.payment-confirmed-icon {
    font-size: 8rem;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.6s ease;
}

.payment-confirmed-modal h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.payment-confirmed-message {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* Kiosk Notification - Purple Theme */
.kiosk-notification {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    max-width: 400px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.notification-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-body {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
}

.notification-order-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin: 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Status Badge - Purple Theme Consistency */
.status-ready {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Order Card Status - Purple for Ready */
.order-card.status-ready {
    border-left: 4px solid #667eea;
}

.order-card.status-ready .order-header {
    border-bottom-color: rgba(102, 126, 234, 0.2);
}

/* Responsive Design */
@media (max-width: 640px) {
    .order-ready-modal-content,
    .order-completed-modal-content,
    .payment-confirmed-modal-content {
        padding: 2rem;
        width: 95%;
    }

    .order-ready-icon,
    .order-completed-icon,
    .payment-confirmed-icon {
        font-size: 6rem;
    }

    .order-ready-modal h1,
    .order-completed-modal h1,
    .payment-confirmed-modal h1 {
        font-size: 2rem;
    }

    .order-ready-number {
        font-size: 3rem;
    }

    .order-ready-message,
    .order-completed-message,
    .payment-confirmed-message {
        font-size: 1rem;
    }

    .kiosk-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Loading spinner for header */
.header-loading-spinner {
    animation: spin 1s linear infinite;
    font-size: 1.25rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Prevent layout shift */
.universal-header {
    min-height: 70px;
}

/* Secondary header should also be visible immediately */
.secondary-header {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Universal loading state for all grids and containers */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    padding: 3rem;
}

/* Optional: Add a spinner animation */
.loading::before {
    content: '⟳ ';
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Center loading state in grids */
.categories-grid .loading,
.products-grid .loading,
.orders-grid .loading {
    grid-column: 1 / -1; /* Span all columns */
    text-align: center;
    padding: 3rem;
    font-size: 1.125rem;
    color: #6b7280;
}
/* ===================================
   HEADER - RESPONSIVE TITLE/TOKEN DISPLAY
   Add this to your style.css
   =================================== */

/* Desktop: Show token balance, hide mobile title */
.header-token-wrapper-desktop {
    display: flex;
    align-items: center;
}

.header-title-mobile {
    display: block;
}

/* Mobile: Hide token balance, show page title */
@media (max-width: 768px) {
    /* Hide desktop token balance wrapper */
    .header-token-wrapper-desktop {
        display: none !important;
    }

    /* Show mobile page title */
    .header-title-mobile {
        display: block !important;
        font-size: 1rem;
        font-weight: 600;
        color: white;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
        margin-right: 0.5rem;
    }


    /* Hide the left header title (redundant on mobile) */
    .header-left .header-title {
        display: none !important;
    }

    /* Keep logo visible but smaller */
    .header-logo {
        font-size: 1rem !important;
        display: inline-block !important;
    }

    /* Keep divider visible */
    .header-divider {
        display: inline-block !important;
    }

    /* Adjust header layout for mobile */
    .header-right {
        gap: 0.5rem;
    }
}

/* Very small screens - hide user info */
@media (max-width: 480px) {
    .header-user-info {
        display: none;
    }

    .header-title-mobile {
        max-width: 120px;
    }

    .header-dashboard-btn {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    .header-logout-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Tablet - keep both visible if space allows */
@media (min-width: 481px) and (max-width: 768px) {
    .header-title-mobile {
        max-width: 200px;
    }
}

/* ===================================
   HEADER TOKEN BALANCE - MOBILE RESPONSIVE
   =================================== */

/* Desktop: Show token balance */
.header-token-balance {
    display: inline-flex !important;
}

/* Mobile: Hide token balance, show page title */
@media (max-width: 768px) {
    /* Hide token balance on mobile */
    .header-token-balance {
        display: none !important;
    }

    /* Show page title on mobile with smaller font */
    .header-left .header-title {
        display: block !important;
        font-size: 0.875rem; /* Smaller font for mobile */
    }

    /* Adjust header layout for mobile */
    .header-right {
        gap: 0.5rem;
    }
}

/* Very small screens - even smaller title */
@media (max-width: 480px) {
    .header-left .header-title {
        font-size: 0.8125rem; /* Even smaller on very small screens */
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-user-info {
        display: none;
    }

    .header-dashboard-btn {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    .header-logout-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Tablet - keep both visible if space allows */
@media (min-width: 481px) and (max-width: 768px) {
    .header-title {
        font-size: 1rem; /* Medium size for tablets */
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

