@font-face {
    font-family: 'El Messiri';
    src: url('/fonts/ElMessiri-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/fonts/ElMessiri-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/fonts/ElMessiri-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/fonts/ElMessiri-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'boxicons';
    src: url('/fonts/boxicons/boxicons.woff2') format('woff2'),
         url('/fonts/boxicons/boxicons.woff') format('woff'),
         url('/fonts/boxicons/boxicons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    src: url('/fonts/fontawesome/fa-solid-900.woff2') format('woff2'),
         url('/fonts/fontawesome/fa-solid-900.woff2') format('truetype'),
         url('/fonts/fontawesome/fa-solid-900.woff') format('woff');
}

* {
    font-family: 'El Messiri', sans-serif;
}

a {
    background-color: transparent;
    color: inherit;
    text-decoration: none;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

/* لوحة الألوان معرّفة في variables.css */

.primary-text {
    color: var(--primary);
}

.second-text {
    color: var(--second-color);
}

.primary-bg {
    background-color: var(--bg-color);
}

.secondary-bg {
    background-color: var(--second-bg-color);
}

.rounded-full {
    border-radius: 100%;
}

#wrapper {
    overflow-x: hidden;
    background-color: var(--bg-color);
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-right: -15rem;
    -webkit-transition: margin 0.25s ease-out;
    -moz-transition: margin 0.25s ease-out;
    -o-transition: margin 0.25s ease-out;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;  
    background-color: var(--white);
    margin:10PX;
}

#sidebar-wrapper .list-group {
    width: 15rem;
    padding: 5px 10px; 
}

#logo {
    width: 190px;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-right: 0;
}

#menu-toggle {
    cursor: pointer;
}

.list-group-item {
    border-radius: 8px 8px !important;
    margin-top: 10px;
    padding: 10px 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.list-group-item.active {
    background: var(--primary);
    color: var(--white) !important;
    margin-top: 10px !important; 
}

.list-group-item:hover {
    background: var(--primary);
    color: var(--white) !important;
    cursor: pointer;
}

.list-group-flush > .list-group-item {
    border-width: 0 0 0 !important;
}


/*
    Box Container >>>
*/
.box-container {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 24px;
    margin-top: 10px;
    width: 100%;
    color: var(--dark);
}

.box-container > div {
    border-radius: 10px;
    background: white;
    padding: 20px;
    overflow-x: auto;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.box-container .box-content {
    flex-grow: 1;
    flex-basis: 500px;
}

/*
    Form Inputs >>>
*/
.mbsc-popup-top {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
    max-width: none !important;
    box-sizing: border-box;
}

.mbsc-snackbar-message {
    font-size: 20px !important;
    padding: 0 10px !important; 
    text-align: center;
}

.status {
    color: var(--white);
    font-size: 14px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status.low {
    color: var(--green);
    background-color: #e9fef0;
}

.status.medium {
    color: var(--yellow);
    background-color: #fffaea;
}

.status.high {
    color: var(--orange);
    background-color: #fef5e9;
}

.status.critical {
    color: var(--red);
    background-color: #ffeae9;
}

.status.grays {
    color: var(--gray);
    background-color: lightgray;
}

.status-details {
    font-size: 18px;
}



    /* Add this CSS to your main CSS file */
    /*input, .select2-container .select2-selection--single {
    height: 50px !important;
}

input:focus {
    border: none;
    outline: none !important;*/ /* Remove default outline */
    /*box-shadow: 0 0 5px var(--primary) !important;*/ /* Change glow color to green */
    /*}


.select2-container:focus {
    border-color: var(--primary) !important;
}

.select2-container--bootstrap-5:focus {
    border-color: var(--primary) !important;
}

.select2-selection:focus {
    width: 100% !important;
    box-shadow: none !important;
    border-color: var(--primary) !important;
}

.select2-search .select2-search__field {
    box-shadow: none !important;
    border-color: var(--primary) !important;
}*/
    /*
    Service Cards >>>
*/
    .service-cards-item {
        cursor: pointer;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 24px 19px;
        background-color: #FFFFFF;
        -webkit-box-shadow: 0px 15px 50px rgba(160, 163, 189, 0.1);
        box-shadow: 0px 15px 50px rgba(160, 163, 189, 0.1);
        border-radius: 10px;
        height: 100%;
        border: solid 3px transparent;
    }

.service-cards-item:hover {
    border: solid 3px var(--primary);
}

.app-card {
    width: 100%;
    height: 130px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.7s ease-in-out;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 4px 12px;
}

.app-card i {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary);
    transition: color 0.3s ease-in-out; /* Add transition for color */
    /*border: 2px solid #333;
    border-radius: 50%;*/
}

.app-card::before {
  content: "";
  position: absolute;
  height: 40%;
  width: 100%;
  background-color: var(--primary);
  bottom: 0;
  right: 0;
  transform: translatey(70px);
  border-radius: 100%;
  transition: all 0.3s ease-in-out;
}

.app-card-txt {
    z-index: 2;
    margin: 0px;
}

.app-card:hover::before {
    transform: scale(7) translate(-20px);
}

.app-card:hover {
    color: var(--white);
}

.app-card:hover i {
    color: var(--white);
}




/*
    Table >>>
*/
.box-container .box-content table {
    width: 100% !important;
    border-collapse: collapse;
}

.box-container .box-content table th {
    padding-bottom: 12px;
    font-size: 14px;
    text-align: right;
    border-bottom: 1px solid var(--grey);
}

.box-container .box-content table td {
    text-align: right;
}

.box-container .box-content table tr td:first-child {
    align-items: right;
    grid-gap: 12px;
    padding-right: 6px;
}

.box-container .box-content table td img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.box-container .box-content table tbody tr:hover {
    background: var(--grey);
}

th.fit-content, td.fit-content {
    white-space: nowrap; /* Prevents text from wrapping */
    width: 1%; /* Ensures the column width fits its content */
}

/*
    Datatable >>>
*/

.dataTables_empty {
    color: var(--red);
    font-weight: bold;
}

    /* pagination */
    .paginate_button {
        height: 30px;
        width: 30px;
        padding: 5px 10px;
        z-index: 3;
        color: var(--black);
        background-color: var(--light);
        border-radius: 999px;
        box-shadow: none;
        cursor: pointer;
    }

    .paginate_button:hover {
        color: var(--primary);
    }

    .paginate_button.current {
        color: var(--white);
        background-color: var(--primary);
        border-radius: 50%;
    }

    .paginate_button.current:hover {
        /*background-color: var(--second-color);*/
    }

    .dataTables_paginate, .paging_simple_numbers {
        text-align: left !important;
    }

.clickableTable tr {
    cursor: pointer;
}

.clickableTable tbody tr:hover {
    background-color: var(--main-light) !important; 
}

.clickableTable tbody tr.selected {
    background-color: #d1e7dd; 
}


.align-datatable th,
.align-datatable td {
    text-align: center !important;
    vertical-align: middle;
}

.gray-row {
    background-color: lightgray !important;
    color: gray;
}

.clickableTable tbody tr.gray-row:hover {
    background-color: lightgray !important;
    color: gray;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: var(--primary) !important;
    outline: 0;
    box-shadow: none !important;
}

.swal2-file:focus, .swal2-input:focus, .swal2-textarea:focus {
    color: #212529;
    background-color: #fff;
    border-color: var(--primary); 
    outline: 0;
    box-shadow: none !important;
}

.swal2-styled.swal2-confirm {
    background-color: var(--primary);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary) !important;
    outline: 0;
    box-shadow: none !important;
}


/*
th, td {
    text-align: center;
}

.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
    overflow: auto;
    width: 100%;
}*/

/*
    Buttons >>>
*/

.btn-defualt {
    display: inline-block;
    min-width: 150px;
    padding: 6px 10px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: var(--primary);
    background-color: #fff;
    z-index: 1;
}

.btn-defualt:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.7s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.btn-defualt:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: var(--primary);
    border-radius: 50%;
    display: block;
    transition: all 0.7s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.btn-defualt:hover {
    color: #ffffff;
    border: 1px solid var(--primary);
}

.btn-defualt:hover:before {
    top: -35%;
    background-color: var(--primary);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.btn-defualt:hover:after {
    top: -45%;
    background-color: var(--primary);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.pen-icon-btn {
    color: var(--primary);
    cursor: pointer;
}
.pen-icon-btn:hover {
    color: var(--main-light);
}

/*
    Search Bar >>>
*/
.search-box {
    width: fit-content;
    height: fit-content;
    position: relative;
}

.input-search {
    height: 40px;
    width: 40px;
    border-style: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
    border-radius: 25px;
    transition: all .5s ease-in-out;
    padding-right: 30px;
}

.input-search::placeholder {
    color: var(--primary);
    font-size: 14px;
    font-weight: 100;
}

.btn-search {
    width: 40px;
    height: 40px;
    border-style: none;
    font-size: 14px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    color: var(--primary);
    background-color: transparent;
    pointer-events: painted;
}

.btn-search:focus ~ .input-search {
    width: 300px;
    border-radius: 0px;
    background-color: transparent;
    border: 1px solid var(--primary);
    color: #000;
    transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
}

.btn-search:focus {
    color: var(--primary);
}

.input-search:focus {
    width: 300px;
    color: #000;
    border-radius: 0px;
    background-color: transparent;
    border: 1px solid var(--primary);
    transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
}

.input-search:not(:placeholder-shown) {
    width: 300px;
    color: #000;
    border-radius: 0px;
    background-color: transparent;
    border: 1px solid var(--primary);
    transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2);
}


.filter-search:not(:placeholder-shown) {
    width: 150px !important;
}

tfoot input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box;
}

.select2-container--bootstrap-5
.select2-dropdown 
.select2-results__options
.select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5
.select2-dropdown 
.select2-results__options 
.select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    color: #fff;
    background-color: var(--primary) !important;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-right: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-right: -15rem;
    }
}


.swal2-confirm-green {
    background-color: #198754 !important; 
    color: white !important;
}

.swal2-cancel-red {
    background-color: #dc3545 !important;
    color: white !important;
}


.custom-card {
    border: none;
    border-radius: 14px;
    transition: 0.2s ease-in-out;
}

/*    .custom-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }*/

/*.card-header-custom {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-radius: 14px 14px 0 0;
    font-weight: 600;
}*/

/*.info-row {
    font-size: 14px;
    margin-bottom: 4px;
}

    .info-row i {
        color: #6c757d;
        margin-left: 4px;
    }*/

/*.reject-box {
    background: #fff5f5;
    border-right: 4px solid #dc3545;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
}*/

/*.action-icons button {
    width: 100%;
    max-width: 48%; 
    height: 48px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}


.main-action-btn {
    border-radius: 10px;
    font-weight: 600;
}
*/