 /* Arabic Font Configuration */
        body,
        html,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        p,
        span,
        div,
        a,
        button,
        .btn,
        .nav-link,
        .dropdown-item,
        .modal-title,
        .modal-body,
        .form-control,
        .form-label,
        .card-title,
        .card-text,
        .navbar-brand,
        .list-body,
        input,
        textarea,
        select {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        }

        /* Preserve FontAwesome icons */
        .fa,
        .fas,
        .far,
        .fal,
        .fab,
        i[class*="fa-"],
        .fa:before,
        .fas:before,
        .far:before,
        .fal:before,
        .fab:before {
            font-family: 'FontAwesome' !important;
        }



        .br-15 {
            border-radius: 15px;
        }

        .br-l-15 {
            border-radius: 15px 0 0 15px;
        }

        /* Chart.js */
        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }

            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }

            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }

        /* Modern Theme Enhancements */
        .navbar .nav-link:hover {
            background: rgba(255, 255, 255, 0.25) !important;
            transform: translateY(-1px);
        }

        .dropdown-menu {
            animation: fadeInUp 0.3s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .content-main::-webkit-scrollbar {
            width: 6px;
        }

    .content-main::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.content-main::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 3px;
}

.content-main::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--theme-color) 85%, black);
}

        /* Responsive adjustments */
        @media (max-width: 768px) {
            #content {
                width: 100% !important;
            }

            .content-header,
            .content-main {
                margin: 10px !important;
            }

            .content-main {
                height: calc(100vh - 90px) !important;
            }
        }

        /* Hover effects for navigation buttons */
        .nav-link {
            position: relative;
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .nav-link:hover::before {
            left: 100%;
        }

        /* Modern Preloader Styles */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            background: var(--theme-color);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
            overflow: hidden;
        }

        /* Animated background particles */
      #preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-color);
    animation: float 20s infinite linear;
    pointer-events: none;
}
        @keyframes float {
            0% {
                transform: translateY(0px) translateX(0px);
            }

            33% {
                transform: translateY(-10px) translateX(5px);
            }

            66% {
                transform: translateY(5px) translateX(-3px);
            }

            100% {
                transform: translateY(0px) translateX(0px);
            }
        }

        #preloader.fade-out {
            opacity: 0;
            visibility: hidden;
        }

        .preloader-content {
            text-align: center;
            color: white;
            z-index: 2;
            position: relative;
        }

        .preloader-logo {
            width: 80px;
            height: 80px;
            margin-bottom: 30px;
            animation: pulse 2s infinite;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .loader-ring {
            display: inline-block;
            position: relative;
            width: 80px;
            height: 80px;
            margin-bottom: 30px;
        }

        .loader-ring div {
            box-sizing: border-box;
            display: block;
            position: absolute;
            width: 64px;
            height: 64px;
            margin: 8px;
            border: 8px solid #fff;
            border-radius: 50%;
            animation: loader-ring-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
            border-color: #fff transparent transparent transparent;
        }

        .loader-ring div:nth-child(1) {
            animation-delay: -0.45s;
        }

        .loader-ring div:nth-child(2) {
            animation-delay: -0.3s;
        }

        .loader-ring div:nth-child(3) {
            animation-delay: -0.15s;
        }

        @keyframes loader-ring-animation {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .preloader-text {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 15px;
            animation: fadeInUp 1s ease-out;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            letter-spacing: 1px;
        }

        .preloader-subtitle {
            font-size: 16px;
            opacity: 0.9;
            animation: fadeInUp 1s ease-out 0.2s both;
            margin-bottom: 30px;
            font-weight: 400;
        }

        .loading-progress {
            width: 300px;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            margin: 20px auto;
            overflow: hidden;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .loading-bar {
            height: 100%;
            background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.9), #fff);
            background-size: 200% 100%;
            border-radius: 3px;
            width: 0%;
            animation: loading-progress 3s ease-out forwards, shimmer 1.5s infinite;
        }

        @keyframes loading-progress {
            0% {
                width: 0%;
            }

            25% {
                width: 30%;
            }

            50% {
                width: 60%;
            }

            75% {
                width: 85%;
            }

            100% {
                width: 100%;
            }
        }

        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        @keyframes pulse {

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

            50% {
                transform: scale(1.05);
                opacity: 0.9;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Hide main content during loading */
        body.loading .app {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
        }

        /* Responsive preloader */
        @media (max-width: 768px) {
            .preloader-text {
                font-size: 24px;
            }

            .preloader-logo {
                width: 70px;
                height: 70px;
            }

            .loading-progress {
                width: 250px;
            }
        }