
     
        /* Force dark status bar text on iOS */
        @supports (padding-top: env(safe-area-inset-top)) {
            body {
                padding-top: env(safe-area-inset-top);
                padding-bottom: calc(env(safe-area-inset-bottom) + 5rem);
                margin-top: 0;
            }
        }
        
        body {
            background: #1c1c1e;
            color: #ffffff;
            font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            margin: 0;
            padding: 0 0 5rem;
            min-height: 100vh;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            overflow-x: hidden;
            -ms-overflow-style: none;
            scrollbar-width: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        body::-webkit-scrollbar, 
        *::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }
        
        * {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        
        div, section, nav, main, aside, article, form {
            scrollbar-width: none;
        }
        
        .container {
            max-width: 48rem;
            margin: 0 auto;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .section {
            background: #252527;
            border-radius: 1.25rem;
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
            transition: transform 0.15s ease-out, opacity 0.15s ease-out;
            width: 100%;
            max-width: 36rem;
            text-align: center;
            will-change: transform, opacity;
        }
        
        .section.hidden {
            transform: translateY(1rem);
            opacity: 0;
            pointer-events: none;
        }
        
        h1 {
            font-size: clamp(1.75rem, 5vw, 2.25rem);
            font-weight: 700;
            letter-spacing: -0.5px;
            margin: 0 0 1.5rem;
            background: linear-gradient(45deg, #007aff, #34c759, #007aff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0.25rem 1.25rem rgba(0, 122, 255, 0.2);
        }
        
        h2 {
            font-size: clamp(1.25rem, 4vw, 1.5rem);
            font-weight: 600;
            margin-bottom: 1.25rem;
        }
        
        p {
            font-size: clamp(0.9rem, 3vw, 1rem);
            opacity: 0.9;
            margin: 0 0 1.25rem;
        }
        
        .btn {
            background: #007aff;
            color: #fff;
            padding: 1rem 1.5rem;
            border-radius: 0.875rem;
            font-weight: 500;
            text-align: center;
            transition: all 0.15s ease-out;
            border: none;
            cursor: pointer;
            width: 100%;
            max-width: 20rem;
            margin: 0.75rem auto;
            display: block;
            font-size: 1rem;
            min-height: 3rem;
        }
        
        .btn:hover {
            background: #0062cc;
            transform: translateY(-0.1rem);
        }
        
        .btn-secondary {
            background: #ff3b30;
        }
        
        .btn-secondary:hover {
            background: #dc2626;
        }
        
        .btn-edit {
            background: #34c759;
        }
        
        .btn-edit:hover {
            background: #2ea44f;
        }
        
        .btn-delivered {
            background: #f59e0b;
        }
        
        .btn-delivered:hover {
            background: #d97706;
        }
        
        .input {
            background: #2c2c2e;
            border: none;
            color: #fff;
            padding: 1rem;
            border-radius: 0.75rem;
            width: 100%;
            margin: 0 auto 1.25rem;
            font-size: 1rem;
            box-shadow: inset 0 0.1rem 0.2rem rgba(0, 0, 0, 0.3);
            transition: all 0.15s ease-out;
            display: block;
            min-height: 3rem;
        }
        
        .input:focus {
            background: #343436;
            outline: none;
            box-shadow: 0 0 0 2px #007aff;
        }
        
        .notification {
            position: fixed;
            top: 1rem;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 24rem;
            padding: 1rem;
            border-radius: 0.75rem;
            background: #1c1c1e;
            color: white;
            font-size: 0.9rem;
            font-weight: 500;
            text-align: center;
            box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.75rem;
            border-left: 0.25rem solid #34c759;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .notification.show {
            opacity: 1;
            visibility: visible;
            animation: notification-bounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
        }
        
        @keyframes notification-bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
            40% {transform: translateX(-50%) translateY(-0.5rem);}
            60% {transform: translateX(-50%) translateY(-0.25rem);}
        }
        
        .notification.success {
            border-left-color: #34c759;
            background: #0a3d1c;
        }
        
        .notification.error {
            border-left-color: #ff3b30;
            background: #3d0a0a;
        }
        
        .notification.warning {
            border-left-color: #f59e0b;
            background: #3d2c0a;
        }
        
        .notification.info {
            border-left-color: #007aff;
            background: #0a1e3d;
        }
        
        .notification i {
            font-size: 1.25rem;
        }
        
        .grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            justify-items: center;
            width: 100%;
        }
        
        .order-item {
            background: #2c2c2e;
            padding: 1.25rem;
            border-radius: 0.875rem;
            margin-bottom: 1rem;
            transition: all 0.15s ease-out;
            width: 100%;
            max-width: 24rem;
            text-align: left;
            will-change: transform;
        }
        
        .order-item h4 {
            margin: 0 0 0.75rem;
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .order-item p {
            margin: 0.25rem 0;
            font-size: 0.95rem;
            opacity: 0.9;
        }
        
        .orders-item {
            background: #2c2c2e;
            padding: 1.25rem;
            border-radius: 0.875rem;
            margin-bottom: 1rem;
            transition: all 0.15s ease-out;
            width: 100%;
            max-width: 24rem;
            text-align: left;
            will-change: transform;
        }

        .orders-item h4 {
            margin: 0 0 0.75rem;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .orders-item p {
            margin: 0.5rem 0;
            font-size: 0.95rem;
            opacity: 0.9;
            text-align: left;
        }

        .footer-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(44, 44, 46, 0.95);
            backdrop-filter: blur(0.5rem);
            padding: 0.75rem;
            display: flex;
            justify-content: space-around;
            box-shadow: 0 -0.25rem 0.5rem rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }
        
        .footer-nav button {
            background: none;
            color: #a1a1a6;
            padding: 0.5rem;
            font-size: 0.75rem;
            font-weight: 500;
            border-radius: 0.5rem;
            transition: all 0.15s ease-out;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
            min-width: 3.5rem;
            will-change: transform;
        }
        
        .footer-nav button i {
            font-size: 1rem;
        }
        
        .footer-nav button span {
            display: block;
        }
        
        .footer-nav button.active {
            background: #007aff;
            color: #fff;
            transform: scale(1.05);
        }
        
        .footer-nav button:hover {
            color: #fff;
        }
        
        /* Dashboard styles */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
            gap: 1rem;
            width: 100%;
            margin-bottom: 1.5rem;
        }
        
        .dashboard-card {
            background: #2c2c2e;
            padding: 1.25rem;
            border-radius: 0.75rem;
            text-align: center;
            transition: all 0.15s ease-out;
            min-height: 5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .dashboard-card h3 {
            font-size: 0.9rem;
            font-weight: 500;
            color: #a1a1a6;
            margin-bottom: 0.5rem;
        }
        
        .dashboard-card p {
            font-size: 1.25rem;
            font-weight: 600;
            color: #34c759;
            margin: 0;
        }
        
        /* Loading screen */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #1c1c1e;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
        }
        
        /* Login section */
        #login-section {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            background: #1c1c1e;
            z-index: 2000;
        }
        
        .login-container {
            width: 100%;
            max-width: 24rem;
            padding: 2rem;
            background: rgba(37, 37, 39, 0.95);
            border-radius: 1rem;
            box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease-out;
        }
        
        .login-title {
            font-size: 1.75rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1.25rem;
            background: linear-gradient(45deg, #007aff, #34c759);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .form-group {
            position: relative;
            margin-bottom: 1.25rem;
        }
        
        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .form-input {
            width: 100%;
            padding: 1rem;
            background: #2c2c2e;
            border: none;
            border-radius: 0.75rem;
            color: #fff;
            font-size: 1rem;
            transition: all 0.15s ease;
        }
        
        .password-toggle {
            position: absolute;
            right: 0.75rem;
            top: 68%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 0.5rem;
        }
        
        .login-btn {
            width: 100%;
            padding: 1rem;
            background: #007aff;
            border: none;
            border-radius: 0.75rem;
            color: #fff;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1.25rem;
        }
        
        .spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

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

        

        
        /* Menu Management Styles */
        #manage-menu {
            padding: 2.5rem;
        }
        
        #manage-menu h2 {
            font-size: clamp(1.5rem, 4vw, 1.75rem);
            font-weight: 700;
            margin-bottom: 1.5rem;
        }
        
        #manage-menu p {
            font-size: clamp(0.95rem, 3vw, 1.1rem);
            opacity: 0.8;
            margin-bottom: 2rem;
        }
        
        #manage-menu .btn {
            font-size: 1.1rem;
            padding: 1rem 2rem;
            border-radius: 1rem;
            min-height: 3.5rem;
            max-width: 24rem;
            margin-bottom: 2rem;
            background: #007aff;
        }
        
        .menu-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            width: 100%;
        }
        
        .menu-item {
            background: #2c2c2e;
            padding: 1.5rem;
            border-radius: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.15s ease-out;
            box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
        }
        
        .menu-item h4 {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
            flex: 1;
            text-align: left;
        }
        
        .menu-item p {
            font-size: 1rem;
            opacity: 0.8;
            margin: 0.5rem 0 0;
            text-align: left;
        }
        
        .menu-item-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .menu-item-actions .btn {
            padding: 0.75rem 1.25rem;
            font-size: 0.95rem;
            min-height: 2.5rem;
            max-width: 6rem;
            margin: 0;
        }
        
        /* Menu Edit Section Styles */
        .menu-edit-section {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #1c1c1e;
            display: flex;
            flex-direction: column;
            z-index: 2000;
            transform: translateY(100%);
            transition: transform 0.3s ease-out;
            overflow-y: auto;
            padding: 1.5rem;
        }

        .menu-edit-section.show {
            transform: translateY(0);
        }

        .menu-edit-container {
            max-width: 36rem;
            margin: 0 auto;
            padding: 2rem;
            background: #252527;
            border-radius: 1rem;
            box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
            width: 100%;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .menu-edit-header {
            text-align: center;
            margin-bottom: 1.5rem;
            position: relative;
        }

        .menu-edit-header h3 {
            font-size: 1.75rem;
            font-weight: 700;
            background: linear-gradient(45deg, #007aff, #34c759);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin: 0;
        }

        .menu-edit-instructions {
            font-size: 1rem;
            opacity: 0.8;
            margin: 0.75rem 0 0;
        }

        .menu-edit-close-btn {
            position: absolute;
            top: 0;
            right: 0;
            background: none;
            border: none;
            color: #ff3b30;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            transition: color 0.15s ease-out;
        }

        .menu-edit-close-btn:hover {
            color: #dc2626;
        }

        .form-group {
            width: 100%;
            margin-bottom: 1.75rem;
        }

        .form-label {
            display: block;
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 0.75rem;
            color: #ffffff;
            text-align: left;
        }

        .menu-edit-section .input {
            background: #343436;
            border: none;
            color: #ffffff;
            padding: 1.25rem;
            border-radius: 1rem;
            width: 100%;
            font-size: 1.1rem;
            margin: 0;
            box-shadow: none;
        }

        .menu-edit-section .input:focus {
            background: #3a3a3c;
            box-shadow: 0 0 0 2px #007aff;
        }

        .error-message {
            color: #ff3b30;
            font-size: 0.9rem;
            margin-top: 0.5rem;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        .option-group {
            width: 100%;
            margin: 1.75rem 0;
            padding: 1.5rem;
            border-radius: 1rem;
            background: #2c2c2e;
        }

        .toggle-btn {
            background: none;
            color: #007aff;
            padding: 0.75rem 0;
            width: 100%;
            text-align: left;
            font-size: 1.1rem;
            font-weight: 500;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .toggle-btn[aria-expanded="true"] .fa-chevron-down {
            transform: rotate(180deg);
        }

        .option-list {
            margin-top: 1.25rem;
            max-height: 12rem;
            overflow-y: auto;
        }

        .option-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1rem;
            padding: 1rem;
            border-radius: 0.75rem;
            background: #343436;
        }

        .option-item p {
            flex: 1;
            font-size: 1rem;
            margin: 0;
        }

        .option-item .btn {
            padding: 0.75rem;
            min-height: 2.5rem;
            font-size: 0.9rem;
            max-width: 2.5rem;
            margin: 0;
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            width: 100%;
            margin-top: 2rem;
        }

        .modal-actions .btn {
            flex: 1;
            padding: 1rem;
            font-size: 1.1rem;
            min-height: 3.5rem;
            max-width: none;
            margin: 0;
        }

        .btn-save {
            background: #34c759;
        }

        .btn-save:hover {
            background: #2ea44f;
        }

        .btn-cancel {
            background: #ff3b30;
        }

        .btn-cancel:hover {
            background: #dc2626;
        }

        .btn-add {
            background: #007aff;
        }

        .btn-add:hover {
            background: #0062cc;
        }

        .btn-undo {
            background: #f59e0b;
        }

        .btn-undo:hover {
            background: #d97706;
        }

        .help-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #252527;
            padding: 2.5rem;
            border-radius: 1.5rem;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .help-overlay h4 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .help-overlay p {
            font-size: 1rem;
            margin-bottom: 1.25rem;
            text-align: center;
        }

        .btn-close-help {
            background: #007aff;
            width: 100%;
            padding: 1rem;
            border-radius: 1rem;
            font-size: 1.1rem;
            color: #ffffff;
            margin-top: auto;
        }

        @media (max-width: 480px) {
            .section {
                padding: 1.5rem;
                border-radius: 1rem;
            }
            
            .dashboard-grid {
                grid-template-columns: 1fr 1fr;
            }
            
            .footer-nav button {
                min-width: 3rem;
                padding: 0.5rem 0.25rem;
            }
            
            .footer-nav button i {
                font-size: 0.9rem;
            }
            
            .footer-nav button span {
                font-size: 0.7rem;
            }
            
            .menu-edit-container {
                padding: 1.5rem;
                width: 100%;
            }
            
            .menu-edit-header h3 {
                font-size: 1.5rem;
            }
            
            .menu-edit-section .form-label {
                font-size: 1rem;
            }
            
            .menu-edit-section .input {
                font-size: 1rem;
                padding: 1rem;
            }
            
            .modal-actions .btn {
                font-size: 1rem;
                padding: 0.9rem;
            }
            
            .menu-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .menu-item-actions {
                width: 100%;
                justify-content: flex-end;
            }
        }
        .toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin: 0 0.5rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #555;
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #34c759;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

    
   