﻿/* ===== متغيرات الألوان والخطوط ===== */
:root {
    --primary-color: #009ef7;
    --secondary-color: #000000;
    --primary-font: "Somar", "Roboto", sans-serif;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #e4e6ea;
    --text-gray: #6c757d;
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --danger-red: #dc3545;
    --shadow-light: 0 2px 8px rgba(0, 158, 247, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 158, 247, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ===== إعدادات عامة ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* تحسين جودة الصور */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* تحسين الخطوط */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== تحسينات الهيدر والنافبار ===== */
.topBar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #007acc 100%);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

    .topBar nav {
        padding: 0.75rem 0;
    }

    .topBar .container {
        margin: 0 auto;
        padding: 0 1rem;
    }

/* ===== تصميم الأزرار المحسن ===== */
.navBlockStyle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    min-height: 48px;
}

    .navBlockStyle:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: var(--shadow-light);
    }

 

/* ===== تحسين منطقة اللوجو ===== */
.logo_icon, .logo_icon_mobile {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

    .logo_icon:hover, .logo_icon_mobile:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-medium);
    }

    .logo_icon img, .logo_icon_mobile img {
        max-height: 40px;
        width: auto;
    }

/* ===== تحسين أيقونة السلة ===== */
.card_nav_mobile {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15%;
    width: 55px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

    

    .card_nav_mobile:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.1);
    }

.itemsCount .cartcount {
    background: var(--danger-red);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    top: -5px;
    right: -5px;
}
 
/* ===== تحسين قائمة الـ Sidebar ===== */
 

/* ===== تحسين الأزرار العامة ===== */
.btnStyle {
    background: linear-gradient(135deg, var(--primary-color), #007acc);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-family: var(--primary-font);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    min-height: 25px;
}

    .btnStyle:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
        background: linear-gradient(135deg, #007acc, var(--primary-color));
    }

    .btnStyle:active {
        transform: translateY(0);
        box-shadow: var(--shadow-light);
    }

    .btnStyle:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* ===== تحسين المودالات ===== */
 
/* ===== تحسين حقول الإدخال ===== */
input[type="text"],
input[type="email"],
input[type="tel"] {
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-family: var(--primary-font);
    transition: var(--transition);
    background: var(--white);
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
    }

.phoneInput {
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .phoneInput:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
    }

/* ===== تحسين منطقة التحقق من OTP ===== */
.verifyInput input {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5rem;
    text-align: center;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
}

    .verifyInput input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
    }

/* ===== تحسين الـ Status badges ===== */
.text-success, .text-blue {
    color: var(--success-green) !important;
    font-weight: 600;
}

.text-warning {
    color: var(--warning-orange) !important;
    font-weight: 600;
}

.text-danger {
    color: var(--danger-red) !important;
    font-weight: 600;
}

/* ===== تحسين الـ Footer ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-color), #333);
    color: var(--white);
    margin-top: 3rem;
}

.footerTop {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.socialMedia a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: var(--transition);
}

    .socialMedia a:hover {
        color: var(--primary-color);
        transform: translateY(-3px);
    }

.downloadApp img {
    max-height: 50px;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .downloadApp img:hover {
        transform: scale(1.05);
    }

/* ===== تحسين الـ Loading Spinner ===== */
.modalLoaders {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== تحسينات للجوال ===== */
@media (max-width: 768px) {
    .topBar .container {
        padding: 0 0.5rem;
    }

    .navBlockStyle {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .logo_icon {
        display: none;
    }

    .logo_icon_mobile {
        display: flex;
    }

    .btnStyle {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
     
}

/* ===== تحسينات إضافية للـ UX ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

    .btn-ripple::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s;
    }

    .btn-ripple:active::before {
        width: 300px;
        height: 300px;
    }

/* ===== تحسين التركيز للوصولية ===== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus, a:focus {
    outline-color: var(--primary-color);
}

/* ===== تحسين الحركات والانتقالات ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== إضافات مخصصة للمشروع ===== */
.SelectTypeRequest {
 /*   background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem;*/
}

.recieve_block {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

/* ===== تحسين منطقة المحتوى الرئيسي ===== */
main {
    min-height: 100vh;
    padding-top: 80px; /* للتعويض عن الهيدر الثابت */
}

/* ===== إضافة تأثيرات hover للعناصر التفاعلية ===== */
.interactive-element {
    transition: var(--transition);
}

    .interactive-element:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

/* ===== تحسين الـ Radio buttons ===== */
.ganderGroup input[type="radio"] {
    appearance: none;
}

.ganderGroup label {
    background: var(--light-gray);
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.ganderGroup input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.ganderGroup label:hover {
    border-color: var(--primary-color);
}

/* ===== تحسين رسائل الخطأ والنجاح ===== */
.helpBlock {
    color: var(--danger-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#otpnotvalid {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-red);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    color: var(--danger-red);
}

/* ===== تحسين الـ Branch items ===== */
.branchItem {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 0.5rem;
}

    .branchItem:hover {
        box-shadow: var(--shadow-medium);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

    .branchItem.selected {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-light);
    }

    .branchItem .status {
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-left: 1rem;
    }

        .branchItem .status.closed {
            background: rgba(220, 53, 69, 0.1);
            color: var(--danger-red);
        }

/* ===== تحسين الأيقونات ===== */
.mapIcon, .phoneIcon, .clockIcon {
    background: var(--light-gray);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 0.25rem;
    transition: var(--transition);
}

    .mapIcon:hover, .phoneIcon:hover, .clockIcon:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: scale(1.1);
    }

/* ===== تحسين الجداول والقوائم ===== */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

    .table th {
        background: var(--primary-color);
        color: var(--white);
        border: none;
        font-weight: 600;
    }

    .table td {
        border-color: var(--border-gray);
        vertical-align: middle;
    }

/* ===== إصلاح عرض السعر والعملة ===== */
.total p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: bold;
}

    .total p small {
        display: inline-flex;
        align-items: center;
        margin: 0;
    }

    .total p img {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
    }

/* تحسين عام لعرض الأسعار */
.price-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-direction: row;
}

    .price-display .currency-symbol {
        display: inline-flex;
        align-items: center;
    } 

        .price-display .currency-symbol img {
            width: 16px;
            height: auto;
            vertical-align: middle;
        }

/* إصلاح للنصوص العربية مع الأرقام */
[dir="rtl"] .price-display {
    flex-direction: row-reverse;
}

img.me-1 {
    width: 15px!important; 
    display: inline;
}

/* تحسين عرض العناصر المالية */
.itemtotal {
    font-weight: bold;
    font-size: 1.1em;
}

 

    .block.total:hover {
        box-shadow: var(--shadow-medium);
        border-color: var(--primary-color);
    }

header[data-v-4a29d162] {
    background-color: #f6f8fb;
    padding-top: calc(0px + 1rem);
}

.logo_icon img {
    margin-right: 0rem !important;
}


.logo_icon_mobile img {
    margin-right: 0rem !important;
}