/* ===== أنماط النموذج العام ===== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-medium);
}

/* ===== أنماط الحاوية الرئيسية للنموذج ===== */
form {
    width: 100%;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow-light);
}

/* ===== أنماط الحاوية الرئيسية للحقل ===== */
.f-c {
    position: relative;
    vertical-align: top;
    display: inline-block;
    margin: 2%;
    margin-bottom: 24px;
    width: 96%;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--white-alpha-20);
    overflow: hidden;
}


.required-red-star {
    position: absolute;
    display: block;
    top: 5px;
    left: 5px;
    color: #e74c3c;
    font-size: 150%;
    font-weight: bold;
    content: '*';
}


/* تأثيرات hover للكونتينر */
.f-c:hover {
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-2px);
    border-color: var(--border-transparent);
}

/* تأثيرات active للكونتينر */
.f-c:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px var(--shadow-dark);
}

/* كونتينر واحد في السطر - يأخذ العرض الكامل */
.f-c.c1 {
    width: 96%;
    display: block;
    margin-left: 2%;
    margin-right: 2%;
}

/* كونتينرين في السطر - كل واحد يأخذ 46% */
.f-c.c2 {
    width: 46%;
}

/* ثلاثة كونتينرات في السطر - كل واحد يأخذ 29.333% */
.f-c.c3 {
    width: 29.333%;
}

/* أربعة كونتينرات في السطر - كل واحد يأخذ 21% */
.f-c.c4 {
    width: 21%;
}

/* خمسة كونتينرات في السطر - كل واحد يأخذ 16% */
.f-c.c5 {
    width: 16%;
}

/* ستة كونتينرات في السطر - كل واحد يأخذ 12.666% */
.f-c.c6 {
    width: 12.666%;
}

/* سبعة كونتينرات في السطر - كل واحد يأخذ 10.285% */
.f-c.c7 {
    width: 10.285%;
}

/* محاذاة للعناصر في السطر الواحد */
.f-c.c2:nth-child(2n+1),
.f-c.c3:nth-child(3n+1),
.f-c.c4:nth-child(4n+1),
.f-c.c5:nth-child(5n+1),
.f-c.c6:nth-child(6n+1),
.f-c.c7:nth-child(7n+1) {
    margin-left: 2%;
    margin-right: 2%;
}

.f-c.c2:nth-child(2n),
.f-c.c3:nth-child(3n),
.f-c.c4:nth-child(4n),
.f-c.c5:nth-child(5n),
.f-c.c6:nth-child(6n),
.f-c.c7:nth-child(7n) {
    margin-left: 2%;
    margin-right: 2%;
}

/* لضمان عدم وجود مسافات بين العناصر inline-block */
.f-c.c2,
.f-c.c3,
.f-c.c4,
.f-c.c5,
.f-c.c6,
.f-c.c7 {
    margin-right: -4px;
}

/* تأثيرات خاصة للكونتينرات المتعددة */
.f-c.c2:hover {
    box-shadow: 0 8px 28px var(--shadow-blue-light);
}

.f-c.c3:hover {
    box-shadow: 0 8px 32px var(--shadow-blue-medium);
}

.f-c.c4:hover,
.f-c.c5:hover {
    box-shadow: 0 8px 36px var(--shadow-blue-dark);
}

.f-c.c6:hover,
.f-c.c7:hover {
    box-shadow: 0 8px 40px var(--shadow-blue-dark);
}

/* تحسينات إضافية للكونتينرات الصغيرة */
.f-c.c6,
.f-c.c7 {
    font-size: 0.9em;
    /* تصغير الخط قليلاً للعناصر الصغيرة */
}

.f-c.c7 {
    padding: 8px;
    /* تقليل padding للعناصر الأصغر */
}


/* شريط علوي زخرفي */
.f-c::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.f-c:hover::before {
    opacity: 1;
}

/* تأثير إضاءة عند hover */
.f-c::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--white-alpha-10), transparent);
    transition: left 0.6s ease;
}

.f-c:hover::after {
    left: 100%;
}

.f-c.button:hover {
    box-shadow: none;
    transform: none;
    border-color: none;
}

.f-c.button:hover::after {
    display: none;
    /* إيقاف تأثير الإضاءة للأزرار */
}


.f-c.button {
    width: 100%;
    box-shadow: none;
    border: none;
    background: none;
    text-align: center;
}

.f-c.button input,
.f-c.button button {
    width: 100%;
    height: 100%;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    background: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .f-c {
        box-shadow: 0 3px 8px var(--shadow-light);
        margin-bottom: 20px;
    }

    .f-c:hover {
        box-shadow: 0 6px 16px var(--shadow-medium);
        transform: translateY(-1px);
    }

    .f-c.c3,
    .f-c.c4,
    .f-c.c5 {
        width: 46%;
    }
}

@media (max-width: 480px) {
    .f-c {
        box-shadow: 0 2px 6px var(--shadow-light);
        margin-bottom: 16px;
    }

    .f-c:hover {
        box-shadow: 0 4px 12px var(--shadow-medium);
        transform: none;
    }

    .f-c.c2,
    .f-c.c3,
    .f-c.c4,
    .f-c.c5,
    .f-c.c6,
    .f-c.c7,
    .f-c.c8 {
        width: 96%;
        display: block;
        margin-left: 2%;
        margin-right: 2%;
    }

    .f-c::before,
    .f-c::after {
        display: none;
        /* إخفاء التأثيرات الزخرفية في الشاشات الصغيرة */
    }
}

/* تأثيرات التركيز للحقول داخل الكونتينر */
.f-c:focus-within {
    box-shadow: 0 8px 28px var(--shadow-blue-medium);
    border-color: var(--bright-blue);
}

.f-c:focus-within::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--bright-blue), var(--teal));
}

/* أنماط خاصة للكونتينرات النشطة */
.f-c.active {
    box-shadow: 0 6px 20px var(--shadow-blue-light);
    border-color: var(--accent-blue);
}

.f-c.active::before {
    opacity: 1;
}

/* تأثيرات انتقالية سلسة */
.f-w {
    transition: all 0.3s ease;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* تحسين المظهر الداخلي */
.f-c .lbl-c,
.f-c .input-c {
    transition: all 0.3s ease;
}

.f-c:hover .lbl-c {
    color: var(--accent-blue);
}

.f-c:focus-within .lbl-c {
    color: var(--bright-blue);
    font-weight: 600;
}

.f-w {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== أنماط التسمية ===== */
.lbl-c {
    width: 100%;
    margin-bottom: 6px;
}

.lbl-w {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
    transition: all 0.3s ease;
}

.lbl-w::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.form-c .f-c .lbl-c .valid {
    color: #e74c3c;
}

.form-c .f-c .lbl-c .lbl-w .hint {
    color: #f39c12;
}


/* ===== أنماط حاوية الإدخال ===== */
.input-c {
    width: 100%;
    position: relative;
}

.input-w {
    width: 100%;
    position: relative;
}

/* ===== أنماط الحقول النصية الأساسية ===== */
.input-w input[type="text"],
.input-w input[type="email"],
.input-w input[type="password"],
.input-w input[type="search"],
.input-w input[type="tel"],
.input-w input[type="url"],
.input-w input[type="number"],
.input-w input[type="date"],
.input-w input[type="time"],
.input-w input[type="datetime-local"],
.input-w input[type="month"],
.input-w input[type="week"],
.input-w input[type="color"],
.input-w input[type="range"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-transparent);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.input-w input[type="range"] {
    padding: 16px 12px;
    height: 40px;
}

.input-w input[type="color"] {
    height: 48px;
    padding: 8px;
    cursor: pointer;
}

/* ===== أنماط textarea ===== */
.input-w textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-transparent);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
    box-shadow: 0 2px 8px var(--shadow-light);
    font-family: inherit;
}

/* ===== أنماط select ===== */
.input-w select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-transparent);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow-light);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231e3a5f' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

/* ===== أنماط file input ===== */
.input-w input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-transparent);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* ===== أنماط checkboxes و radio buttons ===== */
.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-item:hover,
.radio-item:hover {
    background: var(--card-hover-bg);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.checkbox-item label,
.radio-item label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
}

/* ===== أنماط الأزرار ===== */
.input-w input[type="submit"],
.input-w input[type="reset"],
.input-w input[type="button"] {
    width: auto;
    min-width: 120px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    background: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-w input[type="reset"] {
    background: transparent;
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.input-w input[type="button"] {
    background: var(--teal);
    border-color: var(--teal);
}

/* ===== حالات التفعيل والتركيز ===== */
.input-w input:focus,
.input-w textarea:focus,
.input-w select:focus {
    border-color: var(--bright-blue);
    box-shadow: 0 4px 16px var(--shadow-blue-medium);
    background: var(--bg-white);
}

.f-c:focus-within .lbl-w {
    color: var(--bright-blue);
}

.f-c:focus-within .lbl-w::after {
    width: 100%;
}

/* ===== حالات القراءة فقط والمعطلة ===== */
.input-w input:read-only,
.input-w textarea:read-only {
    background: var(--light-gray);
    border-color: var(--white-alpha-30);
    color: var(--text-secondary);
    /* cursor: not-allowed; */
}

.input-w input:disabled,
.input-w textarea:disabled,
.input-w select:disabled {
    background: var(--light-gray);
    border-color: var(--white-alpha-30);
    color: var(--text-secondary);
    /* cursor: not-allowed; */
    opacity: 0.7;
}

/* ===== الحقول المطلوبة ===== */
.input-w input:required,
.input-w textarea:required,
.input-w select:required {
    border-left: 4px solid var(--teal);
}

/* ===== تأثيرات الhover ===== */
.input-w input:not(:disabled):not(:read-only):hover,
.input-w textarea:not(:disabled):not(:read-only):hover,
.input-w select:not(:disabled):hover {
    border-color: var(--bright-blue);
    box-shadow: 0 4px 12px var(--shadow-blue-light);
}

.input-w input[type="submit"]:hover,
.input-w input[type="button"]:hover {
    background: var(--bright-blue);
    border-color: var(--bright-blue);
    box-shadow: 0 6px 20px var(--shadow-blue-medium);
    transform: translateY(-2px);
    cursor: pointer;
}

.input-w input[type="reset"]:hover {
    background: var(--accent-blue);
    color: var(--text-white);
    box-shadow: 0 6px 20px var(--shadow-blue-medium);
    transform: translateY(-2px);
}

/* ===== تأثيرات النشاط ===== */
.input-w input[type="submit"]:active,
.input-w input[type="reset"]:active,
.input-w input[type="button"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-blue-dark);
}

/* ===== أنماط المجموعات (checkbox-group, radio-group) ===== */
.input-w .checkbox-group,
.input-w .radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-transparent);
}

/* ===== أنماط الاستكمال التلقائي ===== */
.input-w input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--bg-white) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    border-color: var(--bright-blue);
}

.input-w input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--bg-white) inset, 0 4px 16px var(--shadow-blue-medium) !important;
}

/* ===== أنماط الصحة والخطأ ===== */
.input-w input:valid:not(:placeholder-shown) {
    border-color: var(--teal);
}

.input-w input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* ===== الوسائط المتعددة للأجهزة المختلفة ===== */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
        margin: 10px;
    }

    form {
        padding: 20px;
    }

    .input-w input[type="submit"],
    .input-w input[type="reset"],
    .input-w input[type="button"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .checkbox-item,
    .radio-item {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 10px;
        margin: 5px;
    }

    form {
        padding: 15px;
    }

    .input-w input,
    .input-w textarea,
    .input-w select {
        padding: 10px 12px;
        font-size: 16px;
        /* لمنع التكبير في iOS */
    }
}

/* ===== أنماط الطباعة ===== */
@media print {
    .form-container {
        box-shadow: none;
        background: transparent;
    }

    .input-w input,
    .input-w textarea,
    .input-w select {
        border: 1px solid var(--text-primary);
        background: transparent;
        box-shadow: none;
    }

    .input-w input[type="submit"],
    .input-w input[type="reset"],
    .input-w input[type="button"] {
        display: none;
    }
}

/* fb.css */
/* أنماط إضافية لمربع البحث في القوائم */
.search-select-container {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.select-search-input {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 2px solid var(--border-transparent);
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
}

.select-search-input:focus {
    border-color: var(--bright-blue);
    box-shadow: 0 4px 16px var(--shadow-blue-medium);
}

.select-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* تحسين مظهر القوائم بعد إضافة البحث */
.search-select-container select {
    width: 100%;
    border: 2px solid var(--border-transparent);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.search-select-container select:focus {
    border-color: var(--bright-blue);
    box-shadow: 0 4px 16px var(--shadow-blue-medium);
}



/* ===== أنماط النموذج البسيطة والاحترافية ===== */
.form-c {
    margin: 20px auto;
    padding: 0;
    background: transparent;
    position: relative;
}

.form-w {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-transparent);
    overflow: hidden;
}

/* ===== محاذاة النموذج ===== */
.form-c.form-center {
    margin-left: auto;
    margin-right: auto;
}

.form-c.form-left {
    margin-left: 0;
    margin-right: auto;
}

.form-c.form-right {
    margin-left: auto;
    margin-right: 0;
}

/* ===== عنوان النموذج ===== */
.form-title {
    background: var(--navy-blue);
    padding: 18px 25px;
    text-align: center;
    border-bottom: 1px solid var(--teal);
}

.form-title h2 {
    color: var(--text-white);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* ===== النموذج الداخلي ===== */
.form-w form {
    padding: 25px;
    background: var(--bg-white);
}

/* ===== أحجام النموذج ===== */
.form-c[style*="width: 100%"] .form-w {
    margin: 0;
}

.form-c[style*="width: 50%"] .form-w {
    margin: 0 auto;
}

.form-c[style*="width: 350px"] .form-w,
.form-c[style*="width: 300px"] .form-w {
    margin: 0 auto;
}

/* ===== تحسينات للشاشات الصغيرة ===== */
@media (max-width: 768px) {
    .form-c {
        width: 95% !important;
        margin: 15px auto !important;
    }

    .form-w {
        border-radius: 6px;
    }

    .form-title {
        padding: 15px 20px;
    }

    .form-title h2 {
        font-size: 18px;
    }

    .form-w form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-c {
        width: 100% !important;
        margin: 10px 0 !important;
    }

    .form-w {
        border-radius: 4px;
        box-shadow: 0 1px 6px var(--shadow-light);
    }

    .form-title {
        padding: 12px 15px;
    }

    .form-title h2 {
        font-size: 16px;
    }

    .form-w form {
        padding: 15px;
    }
}



/* أنماط معاينة الملفات */
.file-preview-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-transparent);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    background: var(--card-hover-bg);
    border-color: var(--bright-blue);
}

.file-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-white);
}

.file-icon.file-image {
    background: var(--teal);
}

.file-icon.file-video {
    background: var(--accent-blue);
}

.file-icon.file-pdf {
    background: #e74c3c;
}

.file-icon.file-doc {
    background: #2980b9;
}

.file-icon.file-archive {
    background: #f39c12;
}

.file-icon.file-default {
    background: var(--text-secondary);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.remove-file {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file:hover {
    background: #e74c3c;
    color: white;
}

.image-preview {
    margin-top: 8px;
    width: 100%;
}

.image-preview img {
    max-width: 100px;
    max-height: 80px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-transparent);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .file-preview-item {
        padding: 8px;
        gap: 8px;
    }

    .file-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .file-name {
        font-size: 13px;
    }

    .image-preview img {
        max-width: 80px;
        max-height: 60px;
    }
}

/* ========================================
   تنسيق Fieldset والنموذج
======================================== */

fieldset {
    border: 2px solid var(--border-transparent);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px var(--shadow-light);


}

fieldset legend {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--navy-blue);
    padding: 0 15px;
    background-color: var(--bg-white);
    border-radius: 4px;
}




fieldset {
    height: 80px;
    overflow: hidden;
    position: relative;
}


fieldset.expanded {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
}

.legend-after {
    position: absolute;
    display: block;
    font-size: 45px;
    top: 0%;
    left: 2%;
    text-align: end;
    width: 30px;
    height: 30px;
    line-height: 20px;
    cursor: pointer;
}




/* حاوية شريط الخطوات الرئيسية */
.stepsbar-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-navy));
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-dark);
    margin: 20px 0;
}

/* عنصر الخطوة الواحد */
.stepsbar-item {
    flex: 1 1 calc(33.333% - 15px);
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white-alpha-10);
    border: 2px solid var(--border-white-alpha);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* تأثير الخلفية المتحركة */
.stepsbar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--white-alpha-20), transparent);
    transition: left 0.5s ease;
}

.stepsbar-item:hover::before {
    left: 100%;
}

/* الأيقونة */
.stepsbar-item i {
    font-size: 32px;
    color: var(--teal);
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* الرابط */
.stepsbar-item a {
    flex: 1;
    text-decoration: none;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* تأثيرات Hover */
.stepsbar-item:hover {
    background: var(--white-alpha-20);
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-blue-medium);
}

.stepsbar-item:hover i {
    color: var(--bright-blue);
    transform: scale(1.15) rotate(5deg);
}

.stepsbar-item:hover a {
    color: var(--teal);
    transform: translateX(5px);
}

/* تأثير الضغط */
.stepsbar-item:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px var(--shadow-blue-light);
}

/* الحالة النشطة */
.stepsbar-item.active {
    background: linear-gradient(135deg, var(--bright-blue), var(--accent-blue));
    border-color: var(--teal);
    box-shadow: 0 8px 25px var(--shadow-blue-dark);
}

.stepsbar-item.active i {
    color: var(--white);
    animation: iconBounce 1s ease infinite;
}

.stepsbar-item.active a {
    color: var(--white);
    font-weight: 700;
}

/* تأثير النبض للعنصر النشط */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px var(--shadow-blue-dark);
    }

    50% {
        box-shadow: 0 8px 35px var(--shadow-blue-darker);
    }
}

.stepsbar-item.active {
    animation: pulse 2s infinite;
}

/* تأثير حركة الأيقونة */
@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* استجابة للتابلت */
@media (max-width: 768px) {
    .stepsbar-items {
        gap: 12px;
        padding: 20px;
    }

    .stepsbar-item {
        flex: 1 1 calc(50% - 12px);
        min-width: 160px;
        padding: 18px 15px;
        gap: 12px;
    }

    .stepsbar-item i {
        font-size: 28px;
        min-width: 35px;
    }

    .stepsbar-item a {
        font-size: 15px;
    }
}

/* استجابة للموبايل */
@media (max-width: 480px) {
    .stepsbar-items {
        gap: 10px;
        padding: 15px;
    }

    .stepsbar-item {
        flex: 1 1 100%;
        min-width: auto;
        padding: 16px 18px;
        gap: 15px;
    }

    .stepsbar-item i {
        font-size: 26px;
        min-width: 32px;
    }

    .stepsbar-item a {
        font-size: 15px;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .stepsbar-items {
        padding: 12px;
    }

    .stepsbar-item {
        padding: 14px 15px;
        gap: 12px;
    }

    .stepsbar-item i {
        font-size: 24px;
        min-width: 28px;
    }

    .stepsbar-item a {
        font-size: 14px;
    }
}

/* تأثيرات إضافية للتفاعل */
.stepsbar-item::after {
    content: '←';
    position: absolute;
    left: 20px;
    opacity: 0;
    color: var(--teal);
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.stepsbar-item:hover::after {
    opacity: 1;
    left: 15px;
}

.stepsbar-item.active::after {
    content: '✓';
    opacity: 1;
    left: 15px;
    color: var(--white);
}

/* تحسين الرؤية للعناصر المعطلة */
.stepsbar-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    /* cursor: not-allowed; */
}

.stepsbar-item.disabled i,
.stepsbar-item.disabled a {
    color: var(--white-alpha-50);
}