@font-face {
    font-family: "Tajawal", sans-serif;
    src: url("website/Tajwal/Tajawal-Medium") format("ttf");
}

body {
    /*margin: 0;*/
    font-family: "Tajawal", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    /*color: #212529;*/
    /*text-align: left;*/
    /*background-color: #fff;*/
}

.navbar-header {
    height: 85px !important;
}
.navbar-header .admin_logo {
    width: 136px;
    position: relative;
    top: 0px;
    left: 0px;
}
.brand-login {
    width: 190px;
}
.main-menu.menu-light .navigation > li.active > a {
    background: #f6dc87 !important;
}
#dashboard-analytics .card .card-header {
    padding-bottom: 20px !important;
}

.apexcharts-legend-text {
    color: #f6dc87 !important;
    padding: 5px;
}

.image_area {
    position: relative;
}

.preview {
    overflow: hidden;
    width: 160px;
    height: 160px;
    margin: 10px;
    border: 1px solid red;
}

.modal-lg {
    max-width: 1000px !important;
}

.overlay {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    height: 0;
    transition: 0.5s ease;
    width: 100%;
}

.image_area:hover .overlay {
    height: 50%;
    cursor: pointer;
}

.text {
    color: #333;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.bootstrap-tagsinput .tag {
    margin-right: 2px;
    color: white !important;
    background-color: #0d6efd;
    padding: 0.35rem;
    border-radius: 10px;
}

.bootstrap-tagsinput {
    padding: 10px 10px;
}

/* --------------------------------------------------- */
/* category page */
.tree {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.tree li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px 0;
    cursor: grab;
    padding: 10px;
    list-style-type: none;
}
.tree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* دعم الشاشات الصغيرة */
    justify-content: space-between;
}
.tree-item img {
    width: 35px;
    height: 35px;
}
.toggle-btn {
    cursor: pointer;
    font-weight: bold;
    color: #007bff;
    width: 20px;
    text-align: center;
}
.toggle-btn:hover {
    color: #0056b3;
}
.nested {
    display: none;
    margin-right: 20px;
    padding-right: 10px;
    /* border-right: 1px solid #ccc; */
}
.active {
    display: block;
}
.dragging {
    opacity: 0.5;
    background: #ddd;
}
.product-count {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}
.product-count:hover {
    text-decoration: underline;
}
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* دعم الشاشات الصغيرة */
}
.delete-btn {
    background-color: #fa0303;
    color: white;
    border: none;
    padding: 5px 5px;
    cursor: pointer;
    border-radius: 25px;
}
.delete-btn:hover {
    background-color: darkred;
}
select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
select:hover {
    border-color: #007bff;
}
select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 91, 187, 0.5);
}
@media (max-width: 600px) {
    /* .tree-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .controls {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 5px;
    } */
}

.list-group-item {
    background-color: #ffffff00;
}

.card-body ul {
    margin: 0;
    padding: 0;
}

/* category page */
/* --------------------------------------------------- */
.select2-container--classic
    .select2-selection--single
    .select2-selection__arrow
    b,
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    padding-left: 0 !important;
}
.table thead th,
.table tfoot th {
    vertical-align: top;
    text-transform: capitalize;
    font-size: 0.857rem;
    letter-spacing: 0.5px;
}
.shift-select {
    min-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
