@font-face {
    font-family: 'FrutigerArabic';
    src: url('/fonts/AlFont_com_FrutigerLTArabic-45Light-1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    font-family: 'FrutigerArabic', sans-serif !important;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    right: auto !important;
    left: 1rem !important;
    margin-left: 5px;
}


.navbar {
    background-color: #EDEFE5 !important;
}

    .navbar .nav-link,
    .navbar .navbar-brand,
    .navbar .nav-link span {
        color: #000 !important;
    }

        .navbar .nav-link:hover {
            color: #333 !important;
        }


.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    font-size: 1.2rem;
}

.brand-container {
    margin-left: 20px; 
}

@media (max-width: 576px) {
    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .brand-container {
        margin-left: 10px; 
    }
}



/* ================= SIDEBAR ================= */
#sidebar-wrapper {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    color: #fff;
    transition: all 0.3s;
    border-left: none;
}

.brand-title {
    font-size: 22px;
    font-weight: bold;
    padding: 20px 0;
}

.list-group-item {
    background: transparent;
    color: #cbd5f1;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    transition: all 0.2s;
}

    .list-group-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: #fff;
        padding-right: 25px;
    }

    .list-group-item.active {
        background-color: #3b82f6;
        color: #fff;
        border-radius: 8px;
        margin: 5px;
    }

.user-name {
    color: #94a3b8;
    font-size: 13px;
}

.logout {
    color: #f87171;
}

/* ================= CONTENT ================= */
#wrapper {
    display: flex;
}

#page-content-wrapper {
    width: 100%;
}

#menu-toggle {
    color: #fff; 
    font-size: 24px; 
    background: transparent;
    border: none;
}
/* ================= MOBILE ================= */
@media (max-width: 992px) {
    #sidebar-wrapper {
        margin-right: -260px;
        position: fixed;
        z-index: 999;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-right: 0;
    }
}


.btn-close-sidebar {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 20px;
    background: transparent;
    border: none;
}

#sidebar-overlay {
    display: none;
}

@media (max-width: 992px) {
    #sidebar-overlay {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    #wrapper.toggled #sidebar-overlay {
        display: block;
    }
}

#sidebar-wrapper,
.top-navbar {
    background: linear-gradient(180deg, #1e293b, #0f172a) !important;
}

.top-navbar {
    background-color: transparent !important;
}

    .top-navbar .nav-link {
        color: #fff !important;
    }


    .top-navbar .dropdown-menu {
        right: 0; 
        left: auto;
        min-width: 160px; 
    }



#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999; 
    transition: opacity 0.3s ease;
}

.loading-gif {
    width: 140px;
    height: auto;
    object-fit: contain;
}

.modal-backdrop.show {
    opacity: 0.25 !important; 
}



.toast-success {
    background-color: #28a745 !important;
    color: white !important;
}

.toast-error {
    background-color: #dc3545 !important;
    color: white !important;
}

.toast-warning {
    background-color: #ffc107 !important;
    color: black !important;
}

.toast-info {
    background-color: #17a2b8 !important;
    color: white !important;
}
