@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import "https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css";
/* 
@font-face {
    font-family: 'Samsung Sharp Sans';
    src: url('/fonts/SamsungSharpSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
  } */

/* Global style settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Noto Sans", sans-serif; */
    font-family: "Open Sans", sans-serif;

    /* font-family: 'Samsung Sharp Sans', sans-serif; */

    transition: all 0.1s ease-in-out;
}

/* Sidebar container styling */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 78px;
    /* Default sidebar width */
    background: #11101D;
    /* Dark background color for sidebar */
    padding: 6px 14px;
    z-index: 99;
    /* Ensures sidebar is on top */
    transition: all 0.5s ease;
    /* Smooth transition for width change */
}

/* Logo details within the sidebar */
.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .logo-details .icon {
    opacity: 0;
    /* Hidden by default, shows when sidebar is expanded */
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #218dd5;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    display: none;
    /* Hidden by default, shows when sidebar is expanded */
    transition: all 1s ease;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

/* General icon styling */
.sidebar i {
    color: #00db00;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
    /* Centers icon vertically */
}

/* Sidebar navigation list styling */
.sidebar .nav-list {
    height: calc(100% - 140px);
    padding: 0;
    /* Leaves space for logo and profile */
}

/* Scrollbar styles for sidebar */
.sidebar .scroll {
    overflow-y: auto;
    /* Enables vertical scrolling */
    scrollbar-width: thin;
}

.sidebar .scroll::-webkit-scrollbar {
    width: 8px;
    background: #262440;
    /* Scrollbar background color */
    border-radius: 5px;
}

.sidebar .scroll::-webkit-scrollbar-thumb {
    background: #262440;
    /* Scrollbar thumb color */
    border-radius: 5px;
}

.sidebar .scroll::-webkit-scrollbar-track {
    background: #171526;
    /* Scrollbar track color */
    border-radius: 5px;
}

/* Sidebar navigation item styling */
.sidebar li {
    position: relative;
    margin: 8px 8px 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    /* Hidden by default */
    pointer-events: none;
    transition: 0s;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
}

/* Link styling within sidebar items */
.sidebar li a {
    display: flex;
    height: 100%;
    width: 95%;
    border-radius: 3px;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    /* background: #11101D; */
    /* Default background for links */
}

.dropdown-content li a {
    color: #FFDD00;
}

.sidebar li a:hover {
    background: #1d1b31;
    /* Lighter background on hover */
}

/* Link text and icon hover effects */
.sidebar li a:hover .links_name {
    transition: all 0.5s ease;
}

.sidebar li a:hover i {
    transition: all 0.5s ease;
}

/* Link text styling */
.sidebar li a .links_name {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    /* Hidden by default */
    pointer-events: none;
    transition: 0.4s;
}

/* Icon styling within sidebar items */
.sidebar li i {
    height: 50px;
    line-height: 50px;
    /* Centers icon vertically */
    font-size: 18px;
    border-radius: 12px;
}


.sidebar li .usericon {
    height: 50px;
    line-height: 50px;
    font-size: 28px;
    border-radius: 12px;
    /* border: 2px solid #fff; */
    margin-right: .5rem;
}

/* Profile details styling */
.sidebar li .profile-details {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.sidebar li .profile-details a {
    color: #218dd5;
}

.sidebar li img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

/* Sidebar input (search) styling */
.sidebar input {
    font-size: 15px;
    color: #FFF;
    font-weight: 400;
    outline: none;
    height: 50px;
    width: 50px;
    /* Default width for search input */
    border: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: #1d1b31;
    /* Input background color */
}

/* Search button styling */
.sidebar .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    background: #1d1b31;
    color: #FFF;
}

.sidebar .bx-search:hover {
    background: #FFF;
    /* Hover background color */
    color: #11101d;
    /* Hover text color */
}

/* Profile section styling */
.sidebar li.profile {
    position: fixed;
    height: 60px;
    width: 78px;
    /* Default width for profile section */
    left: 0;
    bottom: -8px;
    padding: 10px 14px;
    background: #1d1b31;
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar li.profile .name {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.sidebar li.profile .job {
    font-size: 12px;
    font-weight: 400;
    color: #FFDD00;
    white-space: nowrap;
}

/* Logout button styling */
.sidebar .profile #log_out {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #2f2b50;
    width: 100%;
    height: 60px;
    line-height: 60px;
    /* Centers logout icon vertically */
    border-radius: 0px;
    transition: all 0.5s ease;
}

/* Expanded sidebar styles */
.sidebar.open {
    width: 250px;
    /* Expanded sidebar width */
}

.sidebar.open .logo-details .icon {
    opacity: 1;
    /* Shows icon in expanded state */
}

.sidebar.open .logo-details .logo_name {
    opacity: 1;
    display: block;
    /* Shows logo name in expanded state */
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar.open li .tooltip {
    display: none;
}

.sidebar.open li a .links_name {
    opacity: 1;
    /* Shows link names when expanded */
    pointer-events: auto;
}

.sidebar.open input {
    padding: 0 20px 0 50px;
    width: 100%;
    /* Expands input width */
}

.sidebar.open .bx-search:hover {
    background: #1d1b31;
    color: #FFF;
}

.sidebar.open li.profile {
    width: 250px;
    /* Expands profile section */
}

.sidebar.open .profile #log_out {
    width: 50px;
    /* Shrinks logout button */
    background: none;
}

.sidebar.open~.home-section {
    left: 250px;
    /* Adjusts home section to sidebar width */
    width: calc(100% - 250px);
}

/* إخفاء القائمة الفرعية */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    list-style: none;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    background-color: #090910;
    font-size: 14px;
}

/* إظهار عند الفتح */
.dropdown.active .dropdown-content {
    max-height: 200px;
    /* قيمة مناسبة لتتسع للعناصر */
    opacity: 1;
}

/* عناصر القائمة الفرعية */
.dropdown-content li {
    position: relative;
    padding-left: 10px;
    /* تقليل المسافة */
    margin: 3px 0;
}

/* الخط الفرعي */
.branch-line {
    position: absolute;
    left: -10px;
    top: 50%;
    width: 8px;
    /* تقليل الطول */
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* الأيقونات داخل القائمة الفرعية */
.dropdown-content li i {
    margin-right: 0px;
    /* تقليل المسافة */
    color: rgba(255, 255, 255, 0.7);
}

.sidebar.open .dropdown .arrow {
    width: 250px;
    display: block;
}

/* زر القائمة الرئيسية */
.dropdown .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    display: none;
}

/* دوران السهم عند الفتح */
.dropdown.active .arrow {
    transform: rotate(180deg);
}







/* Main content (home section) styling */
.home-section {
    position: relative;
    background: #E4E9F7;
    /* Light background for main content */
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    /* Adjusts width to fit next to sidebar */
    transition: all 0.5s ease;
    z-index: 2;
}

.home-section .text {
    display: inline-block;
    color: #11101d;
    font-size: 25px;
    font-weight: 500;
    margin: 0px;
    padding: 12px;
    width: -webkit-fill-available;
}

/* Floating YouTube Button Styling */
.youtube-button {
    position: fixed;
    bottom: 20px;
    /* Distance from the bottom */
    right: 20px;
    /* Distance from the right */
    background-color: #222;
    /* YouTube red color */
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Icon Styling */
.youtube-button i {
    font-size: 24px;
}

/* Hover Effect */
.youtube-button:hover {
    background-color: #333;
    /* Darker shade of red */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    /* Slight upward movement */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dataTables_wrapper .row {
    margin: 0 !important;
}

.table {
    width: 100%;
}

.table {
    font-size: smaller;
}


/* تصميم الحقول */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    /* نفس تصميم بوتستراب */
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    /* زوايا مستديرة */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* عند التركيز على الحقل */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    /* تأثير التركيز */
}

/* تكبير النص داخل الحقل */
input[type="text"].form-control-lg,
textarea.form-control-lg,
select.form-control-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

/* تصغير النص داخل الحقل */
input[type="text"].form-control-sm,
textarea.form-control-sm,
select.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.bg-primary,
.btn-primary {
    /* background-color: #2C3E50 !important; */
    /* background-color: #4A6FA5  !important;  */
    background-color: #5E60CE !important;
    /* background-color: #1E5631 !important;  */

}


#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 238, 238, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

#loading-screen p {
    margin-top: 15px;
    font-size: 18px;
    color: #333;
    font-family: Arial, sans-serif;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 768px) {
    #loading-screen p {
        font-size: 16px;
    }

    .loading-spinner {
        width: 30px;
        height: 30px;
    }
}

.form-control,
.select2-container--bootstrap4 .select2-selection,
textarea,
select {
    border: 1px solid #429ad0 !important;
}

html.dark {
    /* خلفية عامة */
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    scrollbar-color: #555 #222 !important;
    /* ألوان شريط التمرير */
}

/* النصوص */
html.dark body,
html.dark p,
html.dark span,
html.dark a,
html.dark li,
html.dark label,
html.dark button,
html.dark input,
html.dark select,
html.dark textarea {
    color: #e0e0e0 !important;
}

/* الروابط */
html.dark a {
    color: #ffffff !important;
    /* أزرق فاتح */
    text-decoration: none !important;
}

html.dark a:hover,
html.dark a:focus {
    color: #64b5f6 !important;
}

/* رؤوس العناوين */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: #ffffff !important;
}

/* خلفيات العناصر */
html.dark header,
html.dark nav,
html.dark section,
html.dark article,
html.dark aside,
html.dark footer,
html.dark main,
html.dark .container-fluid,
html.dark .container,
html.dark .chart,
html.dark .dashboard-cards div,
html.dark .profile-page div,
html.dark .card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

html.dark .card {
    background-color: #111 !important;
    border-color: #666 !important;
}

html.dark button,
html.dark input[type="button"],
html.dark input[type="submit"],
html.dark input[type="reset"] {
    background-color: #333 !important;
    color: #eee !important;
    border: 1px solid #555 !important;
    transition: background-color 0.3s ease !important;
}

html.dark button:hover,
html.dark button:focus,
html.dark input[type="button"]:hover,
html.dark input[type="submit"]:hover,
html.dark input[type="reset"]:hover {
    background-color: #555 !important;
    border-color: #777 !important;
    color: #fff !important;
}

html.dark input,
html.dark select,
html.dark textarea {
    background-color: #222 !important;
    color: #ddd !important;
    border: 1px solid #444 !important;
    caret-color: #64b5f6 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #888 !important;
}

/* الجداول */
html.dark table {
    border-collapse: collapse !important;
    background-color: #1a1a1a !important;
    color: #ddd !important;
}

html.dark th,
html.dark td {
    border: 1px solid #333 !important;
    padding: 8px 12px !important;
}

html.dark th {
    background-color: #222 !important;
    color: #eee !important;
}

/* القوائم */
html.dark ul,
html.dark ol {
    color: #ccc !important;
}

/* القوائم المنسدلة */
html.dark select {
    background-color: #222 !important;
    color: #ddd !important;
}

/* تنسيقات خاصة للروابط داخل القوائم */
html.dark ul a,
html.dark ol a {
    color: #90caf9 !important;
}

/* تنسيقات Tooltip */
html.dark .tooltip-inner {
    background-color: #222 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
}

.tooltip-inner {
    max-width: none !important;
    /* إزالة الحد الأقصى للعرض */
    white-space: normal;
    /* السماح بلف النص */
    text-align: start;
    /* تحسين محاذاة النص للغات مثل العربية */
}

/* تنسيقات خاصة للـ Modal */
html.dark .modal-content {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* تنسيقات للأزرار ضمن النماذج */
html.dark .btn-primary {
    background-color: #1976d2 !important;
    border-color: #1565c0 !important;
    color: #fff !important;
}

html.dark .btn-primary:hover,
html.dark .btn-primary:focus {
    background-color: #1565c0 !important;
    border-color: #0d47a1 !important;
    color: #fff !important;
}

/* تنسيقات للبطاقات */
html.dark .card {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #ddd !important;
}


/* Scrollbar */
html.dark ::-webkit-scrollbar {
    width: 12px !important;
}

html.dark ::-webkit-scrollbar-track {
    background: #222 !important;
}

html.dark ::-webkit-scrollbar-thumb {
    background-color: #555 !important;
    border-radius: 10px !important;
    border: 3px solid #222 !important;
}

/* تنسيقات للقوائم المنسدلة */
html.dark .dropdown-menu {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #ddd !important;
}

/* Checkbox and radio inputs */
html.dark input[type="checkbox"],
html.dark input[type="radio"] {
    accent-color: #64b5f6 !important;
}

/* تنسيقات للعناصر الفعالة أو المحددة */
html.dark .active,
html.dark .selected,
html.dark .show {
    background-color: #333 !important;
    color: #eee !important;
}

/* تنسيقات للرسائل التنبيهية */
html.dark .alert {
    background-color: #333 !important;
    color: #eee !important;
    border-color: #555 !important;
}

/* تنسيقات للروابط داخل التنبيهات */
html.dark .alert a {
    color: #90caf9 !important;
    text-decoration: underline !important;
}


html.dark .dataTable,
html.dark table.dataTable {
    background-color: #1e1e1e !important;
    color: #ddd !important;
    border-color: #333 !important;
}

html.dark table.dataTable thead {
    background-color: #2a2a2a !important;
    color: #fff !important;
}

html.dark table.dataTable thead th {
    border-bottom: 1px solid #444 !important;
}

html.dark table.dataTable tbody tr {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333 !important;
}

html.dark table.dataTable tbody tr:hover {
    background-color: #2c2c2c !important;
}

html.dark .dataTables_wrapper .dataTables_filter input,
html.dark .dataTables_wrapper .dataTables_length select {
    background-color: #222 !important;
    color: #eee !important;
    border: 1px solid #444 !important;
}

html.dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: transparent !important;
    color: #ccc !important;
    border: 1px solid #444 !important;
    margin: 0 2px !important;
}

html.dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #444 !important;
    color: #fff !important;
}

html.dark .dataTables_info {
    color: #aaa !important;
}

html.dark .dataTables_wrapper .dataTables_length label,
html.dark .dataTables_wrapper .dataTables_filter label {
    color: #ccc !important;
}


html.dark .select2-container--default .select2-selection--single {
    background-color: #222 !important;
    border: 1px solid #444 !important;
    color: #eee !important;
}

html.dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #eee !important;
}

html.dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888 !important;
}

html.dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #aaa transparent transparent transparent !important;
}

html.dark .select2-container--default .select2-dropdown {
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #eee !important;
}

html.dark .select2-container--default .select2-results>.select2-results__options {
    max-height: 300px !important;
}

html.dark .select2-container--default .select2-results__option {
    background-color: transparent !important;
    color: #ccc !important;
}

html.dark .select2-container--default .select2-results__option--highlighted {
    background-color: #444 !important;
    color: #fff !important;
}

html.dark .select2-container--default .select2-results__option--selected {
    background-color: #555 !important;
    color: #fff !important;
}

html.dark table.dataTable tbody tr {
    background-color: #2c2c2c !important;
    color: #eaeaea !important;
}

html.dark table.dataTable tbody td {
    border-color: #444 !important;
}

html.dark table.dataTable tbody tr:hover {
    background-color: #3a3a3a !important;
}

html.dark .dt-button {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #666 !important;
}

html.dark .dt-button:hover {
    background-color: #555 !important;
}

html.dark input[type="search"],
html.dark .select2-container--default .select2-selection--single {
    background-color: #2a2a2a !important;
    color: #eaeaea !important;
    border: 1px solid #555 !important;
}


html.dark table.dataTable thead th {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #444 !important;
}

html.dark table.dataTable.display tbody tr.odd>.sorting_1,
html.dark table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 {
    background-color: #2a2a2a !important;
    color: #ccc !important;
}

html.dark table.dataTable.display tbody tr.even>.sorting_1,
html.dark table.dataTable.order-column.stripe tbody tr.even>.sorting_1 {
    background-color: #333 !important;
    color: #fff !important;
}


.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 0%;
    left: 50%;
    width: 100%;
    height: 120px;
    margin-left: -50%;
    margin-top: 0;
    padding-top: 45px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #111;
    background: linear-gradient(to right, #f5f5f5);
}


html.dark .dataTables_wrapper .dataTables_processing {
    background: linear-gradient(to right, #555) !important;
    color: #fff !important;
}


html.dark .select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected="true"] {
    color: #fff !important;
    background-color: #111 !important;

}


html.dark .select2-container--bootstrap4 .select2-dropdown.select2-dropdown--below,
html.dark .select2-container--bootstrap4.select2-container--focus .select2-selection,
html.dark .select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above,
html.dark .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    background-color: #2a2a2a !important;

}



html.dark .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(to bottom, #111 0%, #000 100%);
    color: #fff !important;
}


html.dark .sidebar li .tooltip {
    background-color: #666 !important;
}


html.dark .home-section .text {
    color: #fff !important;
}

html.dark .summary-item div {
    color: #eee !important;
}

.form-check-input[type=checkbox] {
    border-color: blue !important;
}