
        :root {
            --primary: #FF7B31;
            --secondary: #FFAA53;
            --accent: #4CAF50;
            --light: #FFF5EB;
            --dark: #2D2D2D;
            --card-bg: #FFFFFF;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
            background-color: #f5f3f6;
            color: var(--dark);
            max-width: 100%;
            margin: 0 auto;
            overflow-x: hidden;
        }

        .app-container {
            max-width: 600px;
            margin: 0 auto;
            background-color: rgb(241, 241, 241);
            position: relative;
        }

.app-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: white;
    letter-spacing: -0.3px;
}

.app-logo span {
    color: white;
}

.app-logo i {
    margin-right: 8px;
    font-size: 1.1rem;
    color: white;
}

.header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-icons i {
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.header-icons i:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

#cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.user-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-icon i {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.bottom-nav {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
}

.bottom-nav.show ~ .main-content {
    padding-bottom: 80px;
}

.food-list {
    padding: 12px 16px 80px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 200px;
    position: relative;
    margin-bottom: 40px;
}

.food-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    display: flex;
    padding: 12px;
    gap: 12px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.food-card:active {
    transform: scale(0.99);
}

.food-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.food-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #dee2e6;
}

.food-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.food-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1e24;
    margin-bottom: 4px;
    line-height: 1.3;
    padding-right: 65px;
    word-break: break-word;
}

.food-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
    position: absolute;
    top: 0;
    right: 0;
    white-space: nowrap;
}

.food-desc {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.food-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.food-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.food-category {
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
}

.food-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #f5a623;
    background: #fff4e8;
    padding: 4px 10px;
    border-radius: 20px;
}

.rating-star {
    color: #ffb800;
    font-size: 0.7rem;
}

.btn-add {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 123, 49, 0.3);
    flex-shrink: 0;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 123, 49, 0.4);
}

.btn-add:active {
    transform: scale(0.95);
}

.food-addons {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    color: #6c757d;
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.food-addons strong {
    color: #1a1e24;
    font-weight: 600;
    font-size: 0.65rem;
}

.food-addons span:not(strong) {
    background: white;
    padding: 2px 8px;
    border-radius: 12px;
    color: var(--primary);
    font-size: 0.6rem;
}

.food-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-estimate {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.time-estimate i {
    font-size: 0.6rem;
}

.time-estimate span {
    line-height: 1;
}

.categories-container {
    margin-top: 60px;
    padding: 10px;
}

.categories {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    background: #4d0000;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.category:hover {
    background: #f8f9fa;
}

.category.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

@media (max-width: 480px) {
    .food-image {
        width: 100px;
        height: 100px;
    }
    
    .food-title {
        font-size: 0.9rem;
        padding-right: 55px;
    }
    
    .food-price {
        font-size: 0.9rem;
    }
    
    .food-category {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    
    .food-rating {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .btn-add {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    max-width: 580px;
    margin: 0 auto;
    border-radius: 40px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 
                0 0 0 1px rgba(255, 123, 49, 0.1);
    transition: transform 0.3s ease-in-out;
}

.bottom-nav.hide {
    transform: translateY(100px);
}

.bottom-nav.show {
    transform: translateY(0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item span {
    transition: all 0.2s ease;
}

.nav-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 6px rgba(255, 123, 49, 0.2));
}

.nav-item:not(.active):hover {
    color: #64748b;
    background: rgba(241, 245, 249, 0.7);
    transform: translateY(-2px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #FF7B31;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 123, 49, 0.2);
}

@keyframes navItemPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-item:active i {
    animation: navItemPop 0.2s ease;
}

        .admin-dashboard {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            z-index: 3000;
            display: none;
            flex-direction: column;
        }

        .admin-dashboard.active {
            display: flex;
        }

        .admin-header {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .admin-logo {
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .admin-nav {
            display: flex;
            gap: 10px;
        }

        .admin-nav-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
        }

        .admin-main {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .admin-sidebar {
            width: 250px;
            background: white;
            border-right: 1px solid #e9ecef;
            padding: 20px 0;
            overflow-y: auto;
        }

        .admin-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f8f9fa;
        }

        .sidebar-item {
            padding: 15px 20px;
            cursor: pointer;
            border-left: 4px solid transparent;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sidebar-item:hover {
            background: #f8f9fa;
        }

        .sidebar-item.active {
            background: var(--light);
            border-left-color: var(--primary);
            color: var(--primary);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

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

        .page-modal {
            background: white;
            width: 90%;
            max-width: 500px;
            border-radius: 15px;
            overflow: hidden;
            max-height: 80vh;
        }

        .page-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 20px;
            text-align: center;
            position: relative;
        }

        .page-content {
            padding: 20px;
            overflow-y: auto;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .form-input, .form-textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }

        .shop-selection {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at center, #FFAA53, #FF7B31);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2500;
        }

        .shop-selection-content {
            background: white;
            border-radius: 32px;
            padding: 32px 24px;
            max-width: 420px;
            width: 90%;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            animation: slideUp 0.4s ease-out;
        }

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

        .shop-selection-content h3 {
            font-size: 28px;
            font-weight: 700;
            margin: 0 0 8px 0;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .shop-selection-content p {
            color: #666;
            font-size: 15px;
            margin-bottom: 24px;
        }

        .shop-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .shop-option {
            background: var(--light);
            border-radius: 20px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.2s;
            border: 2px solid transparent;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        }


        .shop-option .shop-address::before {
            content: '\f3c5';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: #9ca3af;
            font-size: 12px;
            margin-right: 5px;
        }

        .shop-option:hover {
            transform: translateY(-2px);
            border-color: var(--primary);
            box-shadow: 0 12px 24px -8px rgba(255, 123, 49, 0.2);
            background: white;
        }

        .shop-name {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 6px;
        }

        .shop-address {
            font-size: 14px;
            color: #666;
            line-height: 1.4;
        }

        
        .admin-section {
            display: none;
        }

        .admin-section.active {
            display: block;
        }

        .customer-list, .shop-list-admin {
            margin-top: 20px;
        }

        .customer-item, .shop-item-admin {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .btn-danger {
            background: #dc3545;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
        }

        .food-rating {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.8rem;
            color: #666;
        }

        .rating-star {
            color: #FFC107;
        }

        @media (max-width: 768px) {
            .admin-sidebar {
                width: 200px;
            }
        }

        @media (max-width: 480px) {
            .admin-main {
                flex-direction: column;
            }
            
            .admin-sidebar {
                width: 100%;
                height: auto;
            }
        }

        .addon-management {
            margin: 15px 0;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
        }

        .addon-item {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            align-items: center;
        }

        .addon-input {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .btn-small {
            padding: 6px 12px;
            font-size: 0.8rem;
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
        }

        .menu-item-actions {
            display: flex;
            gap: 10px;
        }

        .form-section {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .form-section h4 {
            margin-bottom: 15px;
            color: var(--dark);
        }

        .shop-menu-section {
            margin-top: 20px;
        }

        .menu-items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .menu-item-card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .menu-item-header {
            display: flex;
            justify-content: between;
            align-items: start;
            margin-bottom: 10px;
        }

        .menu-item-name {
            font-weight: bold;
            font-size: 1.1rem;
            flex: 1;
        }

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

        .menu-item-category {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 8px;
        }

        .menu-item-description {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .menu-item-addons {
            font-size: 0.8rem;
            color: #888;
            margin-bottom: 10px;
        }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    padding: 20px;
}

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

.page-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}


.reminder-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.reminder-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.reminder-item.unread {
    background: #f0f7ff;
    border-left-color: #007bff;
}

.reminder-message {
    margin-bottom: 10px;
    line-height: 1.5;
}

.reminder-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.reminder-type {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
}

.notification-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    position: absolute;
    top: 15px;
    right: 35px;
}

.notifications-container {
    position: relative;
}

.mark-all-read {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.working-hours-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.temporary-closed-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.day-schedule {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.day-schedule:last-child {
    border-bottom: none;
}

.day-label {
    width: 100px;
    font-weight: 600;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 120px;
}

.closed-checkbox {
    margin-left: auto;
}

.closed-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.temporary-closed-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.toggle-label {
    font-weight: 600;
    color: #856404;
}

.toggle-description {
    font-size: 0.9rem;
    color: #856404;
    margin: 0;
}

.shop-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.shop-status.open {
    background: #d4edda;
    color: #155724;
}

.shop-status.closed {
    background: #f8d7da;
    color: #721c24;
}

.shop-status.temporary_closed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.closed-message {
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}

.closed-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.temporarily-closed-message {
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}

.temporary-closed-icon {
    font-size: 4rem;
    color: #ffa726;
    margin-bottom: 20px;
}



.form-input:read-only {
    background: #f8f9fa;
    cursor: not-allowed;
}

.status-waiting { background: #d1ecf1; color: #0c5460; }
.status-preparing { background: #fff3cd; color: #856404; }
.status-ready { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.contact-toggle-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-toggle-btn:hover {
    background: #e65c00;
    transform: translateY(-1px);
}

.contact-toggle-btn i {
    font-size: 0.9rem;
}

.phone-available-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-phone-message {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.no-phone-message i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f0f0f0;
    z-index: 99999;
    display: none;
}

#global-loader.active {
    display: block;
}

#global-loader-progress {
    height: 100%;
    width: 0%;
    background: #FF7B31;
    transition: width 0.3s ease;
}

#global-loader-text {
    position: fixed;
    top: 10px;
    right: 20px;
    background: rgba(0, 0, 0, 0);
    color: rgba(255, 255, 255, 0);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100000;
    display: none;
}

#global-loader-text.active {
    display: block;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary i.fa-spinner,
.btn-secondary i.fa-spinner {
    margin-right: 8px;
}

.time-input:invalid {
    border-color: #dc3545;
}

.time-input:valid {
    border-color: #28a745;
}

.order-scheduled {
    position: relative;
    border-top: 3px solid #ffc107 !important;
}

.order-scheduled::before {
    content: '⏰';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: #ffc107;
}

.scheduled-badge {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    border: 1px solid #ffeaa7;
}

.scheduled-time {
    background: #e7f3ff;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
    border-left: 3px solid #17a2b8;
    font-size: 0.9rem;
}

.scheduled-time.future {
    border-left-color: #28a745;
}

.scheduled-time.past {
    border-left-color: #6c757d;
    opacity: 0.8;
}

.delivery-payment-settings {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.settings-toggle label {
    font-weight: 600;
    color: var(--dark);
}

.settings-description {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0 15px 0;
    padding-left: 25px;
}

.advert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.advert-modal-overlay.active {
    display: flex;
}

.advert-modal {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.advert-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.advert-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.advert-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.advert-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.advert-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.advert-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.advert-timer {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.advert-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.advert-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.advert-title-small {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.advert-type-badge {
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.advert-status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.advert-status-active {
    background: #d4edda;
    color: #155724;
}

.advert-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.advert-dates {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.advert-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
}

.advert-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.app-header.hidden {
    display: none;
}
    