@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary-color: #29abac;
}

@font-face {
    font-family: 'Droid Arabic Kufi';
    font-style: normal;
    font-weight: 400;
    src: url(//themes.googleusercontent.com/static/fonts/earlyaccess/droidarabickufi/v2/DroidKufi-Regular.eot?#iefix) format('embedded-opentype'),
    url(//themes.googleusercontent.com/static/fonts/earlyaccess/droidarabickufi/v2/DroidKufi-Regular.woff) format('woff'),
    url(//themes.googleusercontent.com/static/fonts/earlyaccess/droidarabickufi/v2/DroidKufi-Regular.ttf) format('truetype');
}

body {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif;
    font-size: 1.07rem !important;
    line-height: 1.8;
}

.navigation {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif;
    font-size: 1.07rem !important;
    line-height: 1.8;
}

.navigation-header {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
    font-size: 1.07rem !important;
    line-height: 1.8 !important;
}

.dropdown-user {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
    font-size: 1.07rem !important;
    line-height: 1.8 !important;
}

.modal-footer {
    padding: 14px 20px;
    background: #f2f5f7;
    text-align: right;
}

.modal-header {
    padding: 14px 20px;
    background: var(--primary-color);
    text-align: right;
}
.icon-base{
    color: #d5d5d5;
}
.modal-title{
    color: #29abac;
}

.bootstrap-select .dropdown-menu a[aria-selected=true]{
    background: #D8EEEE;
    color: #29abac;
}

.bootstrap-select .dropdown-menu .dropdown-item:active{
    background: #D8EEEE;
    color: #29abac;
}


.accordion-button {
    color: #ffffff;
}
.accordion-item:last-of-type .accordion-collapse:last-of-type .accordion-button ,
.accordion-item:nth-last-of-type(2) .accordion-collapse:nth-last-of-type(2)  .accordion-button {
    color: #000000;
}

.dropdown-toggle {
    display: block !important;
}

.form-label{
    font-size: 1.07rem !important;
}

.col-form-label{
    font-size: 1.07rem !important;
}

.vertical-layout.vertical-menu-modern.menu-expanded .main-menu {
    width: 270px !important;
}

.mb-70{
    margin-bottom: 0.7rem !important;
}

.rounded-5{
    border-radius: 1rem !important;
}

.rounded-6{
    border-radius: 1.5rem !important;
}

.select-rounded{
    border-radius: 40px !important
}

#phone_number{
    direction: ltr
}
#phone{
    direction: ltr
}

.app-content{
    background-image: linear-gradient(to left,#ddf8e9, #fbfffa, #f8fef8, #ddf8e9);}

.dropdown-menu {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
}
.nav {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
}

.form-control:focus::placeholder {
    transform: unset;
}

/* Enlarge the alert window size and change the font */
.swal2-popup {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    width: 480px !important;
    padding: 2rem 2rem 1.5rem 2rem !important;
    border-radius: 12px;
}

/* Increase the title size */
.swal2-title {
    font-size: 26px !important;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Increase the text size within the alert */
.swal2-html-container {
    font-size: 18px !important;
}

/* Increase the size and beautify the buttons */
.swal2-confirm,
.swal2-cancel {
    font-size: 16px !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
}

/* Adjust the spacing between buttons */.swal2-actions {
    gap: 12px !important;
}

/* تغيير الخط وحجم النص داخل محتوى popover */
.popover {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    max-width: 400px; /* لتحديد عرض أقصى إذا كان النص طويل */
    padding: 10px;
}

/* تحسين شكل النص داخل popover */
.popover-body {
    font-size: 15px !important;
    color: #333;
    line-height: 1.6;
}

.filter-toggle {
    padding: 0.5rem 0;
}

.filter-label {
    white-space: nowrap;
}

.filter-line {
    border-top: 1px solid #ddd;
    height: 1px;
    margin-top: 0.2rem;
}

.toggle-icon::before {
    content: "\ecca"; /* tabler-plus */
    font-family: 'tabler-icons';
    transition: transform 0.3s ease;
}

.filter-toggle[aria-expanded="true"] .toggle-icon::before {
    content: "\ecc9"; /* tabler-minus */
}

/* Sidebar Fix CSS */
/* إصلاح مشكلة الـ sidebar */
.layout-menu {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    z-index: 1000;
    background: #fff;
    border-right: 1px solid #d9dee3;
    transition: all 0.25s ease;
}

/* للغة العربية RTL */
[dir="rtl"] .layout-menu {
    right: 0;
    left: auto;
    border-right: none;
    border-left: 1px solid #d9dee3;
}

/* إصلاح المحتوى الداخلي للـ sidebar */
.layout-menu .menu-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

/* إصلاح الـ scrollbar */
.layout-menu::-webkit-scrollbar {
    width: 6px;
}

.layout-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.layout-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.layout-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* إصلاح المحتوى الرئيسي */
.layout-page {
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f5f9;
}

/* للغة العربية RTL */
[dir="rtl"] .layout-page {
    margin-right: 260px;
    margin-left: 0;
}

/* إصلاح الـ content wrapper */
.content-wrapper {
    min-height: calc(100vh - 70px);
    background: #f5f5f9;
    display: flex;
    flex-direction: column;
}

/* إصلاح الـ container */
.container-xxl {
    flex: 1;
    background: #f5f5f9;
}

/* إزالة المساحة البيضاء */
body {
    background: #f5f5f9 !important;
    margin: 0;
    padding: 0;
}

.layout-wrapper {
    background: #f5f5f9;
    min-height: 100vh;
}

.layout-container {
    background: #f5f5f9;
    min-height: 100vh;
}

/* إصلاح الـ navbar */
.layout-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #d9dee3;
}

/* إصلاح الـ footer */
.content-footer {
    background: #fff;
    border-top: 1px solid #d9dee3;
    margin-top: auto;
}

/* إصلاح للشاشات الصغيرة */
@media (max-width: 1199.98px) {
    .layout-menu {
        transform: translateX(-100%);
    }

    [dir="rtl"] .layout-menu {
        transform: translateX(100%);
    }

    .layout-page {
        margin-left: 0;
    }

    [dir="rtl"] .layout-page {
        margin-right: 0;
    }

    .layout-menu-expanded .layout-menu {
        transform: translateX(0);
    }
}

/* إصلاح الـ overlay */
.layout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.layout-menu-expanded .layout-overlay {
    display: block;
}

/* إصلاح الـ menu items */
.menu-item .menu-link {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.menu-item .menu-link:hover {
    background-color: #f8f9fa;
}

.menu-item.active > .menu-link {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* إصلاح الـ sub menu */
.menu-sub {
    background: #fafafa;
}

.menu-sub .menu-item .menu-link {
    padding: 0.5rem 1.5rem 0.5rem 3rem;
}

[dir="rtl"] .menu-sub .menu-item .menu-link {
    padding: 0.5rem 3rem 0.5rem 1.5rem;
}
