@font-face{
  font-family :fontarab;
  src :url("Expo-Arabic-Book.ttf");
}
body {
   font-family: fontarab !important; 
  direction: rtl;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: rgba(224, 224, 235,0.3);

}

.material-icons-outlined {
  vertical-align: middle;
  line-height: 1px;
}

.text-primary {
  color: #666666;
}

.text-blue {
  color: #246dec;
}

.text-red {
  color: #cc3c43;
}

.text-green {
  color: #367952;
}

.text-orange {
  color: #f5b74f;
}

.font-weight-bold {
  font-weight: 600;
}

.grid-container {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  grid-template-rows: 0.2fr 3fr;
  grid-template-areas:
    "sidebar header header header"
    "sidebar main main main";
  height: 100vh;
}

/* ---------- HEADER ---------- */

.header {
  grid-area: header;
  height: 50px;
  margin-right:20px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 30px;

}

.menu-icon {
  display: none;
}

/* ---------- SIDEBAR ---------- */

#sidebar {
  grid-area: sidebar;
  height: 100%;
 background: rgb(2,0,36);
 background:#007bff;
  color: #fff;
  overflow-y: auto;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  border-top-left-radius:50px ;
   transition: transform 0.4s ease-in-out, background 0.5s ease;
  -webkit-transition: transform 0.4s ease-in-out, background 0.5s ease;
    overflow: hidden; /* مهم جدًا */
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 20px 20px;
  margin-bottom: 30px;
}

.sidebar-title > span {
  display: none;
}

.sidebar-brand {
  margin-top: 15px;
  font-size: 30px;
  font-weight: 700;
}

.sidebar-list {
  padding: 0;
  margin-top: 15px;
  list-style-type: none;
}

.sidebar-list-item {
  padding: 20px 20px 20px 20px;
}

.sidebar-list-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.sidebar-list-item > a {
  text-decoration: none;
  color: #fff;
}

.sidebar-responsive {
  display: inline !important;
  position: absolute;
  /*
    the z-index of the ApexCharts is 11
    we want the z-index of the sidebar higher so that
    the charts are not showing over the sidebar 
    on small screens
  */
  z-index: 12 !important;
}


/* ---------- MAIN ---------- */

.main-container {
  grid-area: main;
  overflow-y: auto;
  padding: 20px 20px;
}

.main-title {
  display: flex;
  justify-content: space-between;
}

.main-title > p {
  font-size: 20px;
}

.main-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.card-button {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 25px;
  background-color: #ffffff;
  box-sizing: border-box;
  border: 1px solid #d2d2d3;
  border-radius: 5px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}

.card-button:first-child {
  border-left: 7px solid #246dec;
}

.card-button:nth-child(2) {
  border-left: 7px solid #f5b74f;
}

.card-button:nth-child(3) {
  border-left: 7px solid #367952;
}

.card-button:nth-child(4) {
  border-left: 7px solid #cc3c43;
}

.card-button > span {
  font-size: 20px;
  font-weight: 600;
}

.card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-inner > p {
  font-size: 18px;
}

.card-inner > span {
  font-size: 35px;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.charts-card {
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 25px;
  box-sizing: border-box;
  -webkit-column-break-inside: avoid;
  border: 1px solid #d2d2d3;
  border-radius: 5px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}


/* ---------- SCROLLBARS ---------- */

::-webkit-scrollbar {
  width: 5px;
  height: 6px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #a5aaad;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #4f35a1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a5aaad;
}


/* ---------- MEDIA QUERIES ---------- */


/* Medium <= 992px */
@media screen and (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 0.2fr 3fr;
    grid-template-areas:
      "header"
      "main";
  }

  #sidebar {
    display: none;
  }

  .menu-icon {
    display: inline;
  }

  .sidebar-title > span {
    display: inline;
  }
}

/* Small <= 768px */
@media screen and (max-width: 768px) {
  .main-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .charts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
}

/* Extra Small <= 576px */
@media screen and (max-width: 576px) {
  .header-left {
    display: none;
  }
}


/* edit bootstrap style */
.btn {
   border: none;
    padding: 5px 10px; 
    border-radius: 5px;
  }


.btn-primary:hover,.btn_back:hover {
 background-position: right center;
}

.text-primary {
    color: #007bff !important
}


/* modal trash design */

/* popup dialog style */
.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(230, 232, 237);
  background-color: rgba(230, 232, 237, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top:5%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}


.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
}

@media screen and (max-height: 450px) {
  .overlay {overflow-y: auto;}
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}
.popup-modal{
z-index:99999999 !important;
}
.btn-modal {
  height: 50px;
  line-height: 30px;  
  width: 50px;  
  font-size: 1em;
  font-weight: bold;
  border-radius:10px;
  background-color: #ff0000;
  color: white;
  text-align: center;
  cursor: pointer;
  opacity:0.7;
    -webkit-transition: 0.6s ease-out;
  -moz-transition: 0.6s ease-out;
  transition: 0.6s ease-out;
  align-content:center;
}
.btn-modal:hover {
opacity:1;
  -webkit-transform: rotateZ(360deg);
  -moz-transform: rotateZ(360deg);
  transform: rotateZ(360deg);
}

/* image style upload */
/** end style page index*/
#img-preview {
  display: none;
  width: 100px;
  margin-bottom: 20px;
}
#img-cat img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 10px;
}
#img-cat {

  width: 100px;
  border: 2px dashed #333;  
  margin-bottom: 20px;
}
#img-cat img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 50%;
}

#img-preview {
  display: none;
  width: 100px;
  border: 2px dashed #333;  
  margin-bottom: 20px;
}
#img-preview img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 50%;
}
#img-preview-service {
  display: none;
  width: 100px;
  border: 2px dashed #333;  
  margin-bottom: 20px;
}
#img-preview-service img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 50%;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99999999999; /* Sit on top */
  padding-top: 10px; /* Location of the box */
   padding-left: 10px;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4);

}


/* style image table */
.avatar img{
  width:50px;
  height:50px;
  border-radius:10px;
}


/* toastr design button */
    #success{background: green;}
    #error{background: red;}
    #warning{background: coral;}
    #info{background: cornflowerblue;}
    #question{background: grey;}


    /* gradient card dashboard */
.gradient-1 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #895cf2 0%, #ffabf4 50%, #895cf2 100%);
  transition: 0.5s;
}
.text-1 {
  color:#ffabf4;
}

.gradient-2 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #00c3ff 0%, #ffff1c 50%, #00c3ff 100%);
  transition: 0.5s;
}

.text-2 {
  color:#ffff1c;
}

.gradient-3 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #ff6a00 0%, #ee0979 50%, #ff6a00 100%);
  transition: 0.5s;
}

.text-3 {
  color:#ee0979;
}

.gradient-4 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #0052d4 0%, #65c7f7 50%, #0052d4 100%);
  transition: 0.5s;
}

.text-4 {
  color:#65c7f7;
}

.gradient-5 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #45b649 0%, #dce35b 50%, #45b649 100%);
  transition: 0.5s;
}

.text-5 {
  color:#dce35b;
}

.gradient-6 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #ffd200 0%, #f7971e 50%, #ffd200 100%);
  transition: 0.5s;
}

.text-6 {
  color:#f7971e;
}

.gradient-7 {
  color: #fff;
  border-radius: 6px;
  margin: 10px;
  background-size: 200% auto;
  color: white;
 background-image: linear-gradient(to right, #e100ff 0%, #7f00ff 50%, #e100ff 100%);
  transition: 0.5s;
}

.text-7 {
  color:#7f00ff;
}


.gradient-1:hover ,.gradient-2:hover ,.gradient-3:hover ,.gradient-4:hover ,.gradient-5:hover ,.gradient-6:hover ,.gradient-7:hover {
  background-position: right center;
}

/*sidebar design*/
.sidebar {
    position: fixed;
    right: 0; /* تغيير من left إلى right */
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #007bff;
    color: white;
    transition: width 0.3s;
    overflow: hidden;
}

.sidebar .toggle-button {
    padding: 10px;
    cursor: pointer;
    background-color: #007bfb;
    color: white;
    text-align: center;
}

.menu {
  padding-bottom:150px;
    margin-top: 20px;
    height: 100%;
  overflow-y: auto; /* التمرير هنا فقط */
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
    /*overflow-y: auto; /* التمرير هنا فقط */
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    color: white;
    text-decoration: none;
}

.menu-item .icon {
    font-size: 20px;
    width: 30px;
    text-align: center; /* توسيط الأيقونة */
}

.menu-item .hint {
    margin-right: 10px; /* تغيير من margin-left إلى margin-right */
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .hint {
    display: none;
}

.sidebar.collapsed .menu-item .icon {
    margin-right: 0; /* تغيير من margin-left إلى margin-right */
}

.content {
    margin-right: 250px; /* تعديل هذا وفقًا لعرض الشريط الجانبي */
    padding: 20px;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s; /* إضافة تأثير الانتقال */
}

/* تأثير عند تمرير المؤشر (hover) على عناصر القائمة */
.menu-item:hover,
.menu-item:focus {
    background-color: #fff; /* لون الخلفية الجديد */
    color: #007bff;
    border-top-left-radius:50px;
   border-bottom-left-radius:50px; /* لون النص الجديد */
}

/* إذا كنت ترغب في تغيير لون الخلفية والنص لكل عناصر القائمة عند الضغط على زر التبويب */
.menu-item:focus {
    outline: none; /* إزالة حدود التركيز الافتراضية */
    background-color: #555; /* نفس اللون كما هو في hover */
    color: #ffd700; /* نفس اللون كما هو في hover */
}
.card-button {
    background-color: #ffffff;
    width: 280px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    display: flex;
    flex-direction: column;

    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; /* إضافة تأثير الانتقال */
}

/* تأثير عند تمرير الفأرة */
.card-button:hover {
    transform: scale(1.05); /* تكبير البطاقة بنسبة 5% */
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التمرير */
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* مسافة بين العنوانين */
}

.icon-circle {
   /* لون دائري أزرق للإيقونة */
    color: white;
    border-radius: 10px; /* شكل دائري */
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px; /* مسافة بين الإيقونة والعنوان الرئيسي */
    font-size: 24px; /* حجم الأيقونة */
}

.main-title {
    font-size: 20px;
}

.sub-title {
    color: #6c757d; /* لون نص فرعي رمادي */
    margin: 5px 0 15px 0;
}

.action-button {
    background-color: #28a745; /* لون الزر */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* تأثير عند تمرير المؤشر على الزر */
.action-button:hover {
    background-color: #218838; /* تغيير لون الزر عند التمرير */
}
/*end sidebar design*/
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


/*treeview*/

/* ————————————————————–
  Tree core styles
*/
.tree { margin: 1em; direction: rtl; }

.tree input {
  position: absolute;
  text-align:right; 
  clip: rect(0, 0, 0, 0);
  }

.tree input ~ ul { display: none; }

.tree input:checked ~ ul { display: block; }

/* ————————————————————–
  Tree rows
*/
.tree li {
  line-height: 1.2;
  position: relative;
  padding:16px 33px 0 0;
  }

.tree ul li { padding: 16px 33px 0 0; }

.tree > li:last-child { padding-bottom: 0; }

/* ————————————————————–
  Tree labels
*/
.tree_label {
  position: relative;
  display: inline-block;
  background: #fff;
  }

label.tree_label { cursor: pointer; }

label.tree_label:hover { color: #666; }

/* ————————————————————–
  Tree expanded icon
*/
label.tree_label:after {
  background: #000;
  color: #fff;
  position: relative;
  z-index: 1;
  float: left;
  margin: 0 1em 0 -2em;
  width: 1em;
  height: 1em;
  border-radius: 1em;
  content: '+';
  text-align: center;
  line-height: .9em;
  }

:checked ~ label.tree_label:after { content: '–'; }

/* ————————————————————–
  Tree branches
*/
.tree li:before {
  position: absolute;
  top: 0;
  right:  -1.5em;
  display: block;
  height: 0.5em;
  width: 1em;

  content: '';
  }

.tree_label:after {
    
    
    
     position: absolute;
  top: 0;
  bottom: 0;
  left: -.5em;
  display: block;
  width: 0;
  border-right: 1px solid #777;
  content: "";
    
 
  }

label.tree_label:before { border-bottom: 0; }

:checked ~ label.tree_label:after {
    
     height: 1em;
  bottom: auto;
  
  }

.tree li:last-child:after {
    
    
  

  bottom: 0;
  top: 0.5em;
  height: auto;
  
  
  
 
  }

.tree > li:last-child:before { display: none; }

.tree_custom {
  display: block;
  background: #eee;
  padding: 1em;
  border-radius: 0.3em;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #d1ecf1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: right;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
   color: #0c5460;
}

/* Change background color of buttons on hover */

.tab button:hover {
margin-top:-5px;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #007bff;
  color: #fff;

}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* end tab style*/
.choosedate{
  display:none;
}

/* style icon button dashboard  */
.card-dashboard{
  border-radius:20px;
}
.icon-button{
  width: 50px;
  height:50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: .85em;
    font-weight: 400;
    padding: 2px;
    margin: 2px;
    border-radius:50%;

}

.icon-button .fa{
    vertical-align: middle;
    font-size:20px;
}

/* header img logo */
.img-header-logo , .img-header-login{
  width:50%;
  height:50%;
}
.img-header-logo img , .img-header-login img{
  width:100%;
}

/* new cards  dashboard css */

/* التنسيق الأساسي للموقع */


.stats-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* التصميم الموحد للبطاقة */
.stat-card {
    width: 210px;
    padding: 30px 20px;
    border-radius: 28px; /* حواف دائرية ناعمة */
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-number { margin: 0; font-size: 28px; font-weight: 800; color: #1a1a1a; }
.stat-title { margin: 0; font-size: 15px; color: #666; font-weight: 600; }
.stat-percent { font-size: 13px; font-weight: 700; }

/* -----------------------------------------------------------
   تعديل الألوان هنا (داخل كل كلاس بشكل منفصل)
   الرقم الأخير (0.25) هو المسؤول عن قوة لون الخلفية
----------------------------------------------------------- */

/* 1. مبيعات - وردي */
.sales-box {
    background-color: rgba(255, 77, 109, 0.25); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(255, 77, 109, 0.4);
}
.sales-box .icon-circle { background-color: rgba(255, 77, 109, 1); }
.sales-box .stat-percent { color: rgba(255, 77, 109, 1); }

/* 2. طلبات - برتقالي */
.orders-box {
    background-color: rgba(255, 159, 67, 0.25); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(255, 159, 67, 0.4);
}
.orders-box .icon-circle { background-color: rgba(255, 159, 67, 1); }
.orders-box .stat-percent { color: rgba(255, 159, 67, 1); }

/* 3. منتجات - أخضر */
.products-box {
    background-color: rgba(39, 174, 96, 0.25); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(39, 174, 96, 0.4);
}
.products-box .icon-circle { background-color: rgba(39, 174, 96, 1); }
.products-box .stat-percent { color: rgba(39, 174, 96, 1); }

/* 4. عملاء - بنفسجي */
.customers-box {
    background-color: rgba(162, 155, 254, 0.3); /* غير الرقم لزيادة الوضوح */
    border: 1.5px solid rgba(162, 155, 254, 0.5);
}
.customers-box .icon-circle { background-color: rgba(162, 155, 254, 1); }
.customers-box .stat-percent { color: rgba(162, 155, 254, 1); }

/* responsice table  */
/* تنسيق الجداول لتصبح كروت في الموبايل */
@media screen and (max-width: 768px) {
    /* إخفاء رأس الجدول */
    .table thead {
        display: none;
    }
    
    /* جعل كل سطر يبدو كأنه كارت منفصل */
    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* جعل كل خلية تأخذ عرض كامل وتظهر العنوان الجانبي */
    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        padding: 8px 5px !important;
        text-align: left !important;
    }

    .table tbody td:last-child {
        border-bottom: none !important;
    }

    /* إضافة النص التوضيحي قبل القيمة */
    .table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
        margin-left: 10px;
        text-align: right;
    }

    /* تعديل الصور لتناسب الحجم الصغير */
    img {
        max-width: 100%;
        height: auto;
    }

    /* تحسين شكل الأزرار في الخيارات لكي لا تخرج عن الإطار */
    .table td .btn {
        margin: 2px;
        padding: 5px 10px;
    }
}