:root {
    --primary: #1A237E;
    --primary-light: #3949AB;
    --accent: #FFD700;
    --success: #2ECC71;
    --danger: #E74C3C;
    --bg-light: #F8F9FD;
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --white: #ffffff;
    --radius-sm: 12px;
    --radius-md: 20px;
    --shadow: 0 8px 30px rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* بطاقات بتصميم عائم */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.card:active {
    transform: scale(0.98);
}

/* تحسين الأزرار */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* حقول الإدخال */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    border: 1.5px solid #EDF2F7;
    background-color: #FBFCFE;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(57, 73, 171, 0.1);
}

/* شريط التنقل السفلي الاحترافي */
.navbar-bottom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1050;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 (env(safe-area-inset-bottom)); /* لدعم شاشات الآيفون الحديثة */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link i {
    font-size: 1.4rem;
}

/* المودال */
.modal-content {
    border-radius: 25px 25px 0 0; /* شكل سحب من الأسفل للموبايل */
    border: none;
}

@media (min-width: 576px) {
    .modal-content {
        border-radius: 25px;
    }
}

.modal-header {
    border-bottom: none;
    padding: 20px 25px 10px;
}

/* تأثيرات إضافية */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* إخفاء شريط التمرير */
::-webkit-scrollbar {
    display: none;
}

/* استايلات خاصة بصفحات الدخول */
.auth-body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}
/* POS Specific Styles */
.pos-wrapper {
    height: 100vh;
    overflow: hidden;
    background-color: #f0f2f5;
}

.category-bar {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}
.category-bar::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.item-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-radius: 15px;
}
.item-card:active { transform: scale(0.95); }
.item-card .card-body { padding: 10px; }

.cart-sidebar {
    background: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.checkout-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 25px 25px 0 0;
}

.qty-btn {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
}
/* ميزات إضافية لشاشة الـ POS */
.table-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
}

.weight-unit-badge {
    position: absolute;
    bottom: 45px;
    left: 10px;
    background: var(--bs-warning);
    color: #000;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.65rem;
}

.tables-grid .btn-table {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: all 0.2s;
}

.btn-table.available { background-color: #e8f5e9; color: #2e7d32; border: 2px solid #c8e6c9; }
.btn-table.occupied { background-color: #ffebee; color: #c62828; border: 2px solid #ffcdd2; }

/* Hotel & Booking Styles */
.room-card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.status-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.room-available { background-color: #f1f8e9; border: 1px solid #c8e6c9 !important; }
.room-available .status-indicator { background-color: #4caf50; }

.room-occupied { background-color: #fff3e0; border: 1px solid #ffe0b2 !important; }
.room-occupied .status-indicator { background-color: #ff9800; }

.room-cleaning { background-color: #e3f2fd; border: 1px solid #bbdefb !important; }
.room-cleaning .status-indicator { background-color: #2196f3; }

.booking-timeline {
    display: flex;
    overflow-x: auto;
    padding: 15px 0;
    gap: 15px;
}

.date-card {
    min-width: 60px;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.date-card.active {
    background: var(--primary);
    color: white;
}
/* Services Styles */
.service-item-btn {
    border: 2px solid #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.service-item-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.service-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}
/* Kitchen Display System (KDS) */
.kds-wrapper {
    background-color: #1a1d21; /* خلفية داكنة لراحة عين الطباخ */
    min-height: 100vh;
    padding: 20px;
}

.order-card {
    background: #ffffff;
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.order-card.priority-high {
    border-top: 6px solid #dc3545; /* أحمر للطلبات المتأخرة */
}

.order-card.priority-normal {
    border-top: 6px solid #0d6efd; /* أزرق للطلبات الجديدة */
}

.item-row {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.timer-badge {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
}
/* Startup / Onboarding Styles */
.onboarding-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

.type-card {
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    text-align: center;
    padding: 30px 20px;
}

.type-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(26, 35, 126, 0.1);
}

.type-card.active {
    border-color: var(--primary);
    background: var(--bg-light);
}

.type-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.type-card.active .type-icon {
    background: var(--primary);
    color: white;
}

/* Pricing Table Styles */
.pricing-card {
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.featured-label {
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--primary);
    color: white;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-size: 0.7rem;
    font-weight: bold;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.plan-features li {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #555;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: #28a745;
}

.plan-features li.disabled {
    color: #ccc;
    text-decoration: line-through;
}

.plan-features li.disabled i {
    color: #ccc;
}
/* Checkout & Payment Styles */
.payment-method-card {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-method-card.active {
    border-color: var(--primary);
    background-color: var(--bg-light);
}
.card-input-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}
/* Processing Page Styles */
.setup-step {
    opacity: 0.5;
    transition: all 0.5s ease;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setup-step.active {
    opacity: 1;
    color: var(--primary);
    font-weight: bold;
}

.setup-step i {
    font-size: 1.2rem;
}

.spinner-container {
    margin-bottom: 30px;
}

@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-logo {
    animation: pulse-soft 2s infinite ease-in-out;
}
        .hero-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            padding: 80px 0;
            border-bottom-left-radius: 50px;
            border-bottom-right-radius: 50px;
        }
        .feature-icon {
            width: 60px;
            height: 60px;
            background: var(--bg-light);
            color: var(--primary);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 1.5rem;
        }