

.no-scroll {
    overflow: hidden;
}








.form-container {
  max-width: 600px;
  margin: 0 auto;
  direction:rtl;

}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%; 
    min-width: 200px; 
    max-width: 400px;
    margin: 0 auto;
    direction: rtl;
}


.form-group .label {
  font-weight: bold;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: flex;
  direction: rtl; 

}

.main-textbox {
  margin-top: 5px;
  padding: 10px;
  resize:none;
  font-size: 16px;
  border: 1px solid silver;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: border-color 0.4s; 
  direction: rtl;
}
.main-textbox:focus {
  border-color: lightgray; 
  outline: none;  
}

.main-textbox:focus {
    border-color: rgb(73, 73, 73);
}

.small-card {
  border-radius: 10px;
  padding: 30px;
  background-color: white; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 10px;
}


	



.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  color: #000000;
  display: none;
  width: 80px;
  height: 80px;
}

.spinner,
.spinner:after {
  box-sizing: border-box;
}

.spinner:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6.4px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  animation: spinner 1.2s linear infinite;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}





.edit-content {
    font-size:25px;
    text-align:left;
    margin-top:-50px;
}








/* -------Notification------ */


.popup-notifications {
  position: fixed;
  top: 30px;
  right: 1px;
  z-index: 9990;

}
.popup-notifications :where(.notify, .column) {
  display: flex;
  align-items: center;
}
.popup-notifications .notify {
  direction:rtl;
  width: 400px;
  position: relative;
  overflow: hidden;
  list-style: none;
  border-radius: 4px;
  padding: 16px 17px;
  margin-bottom: 10px;
  justify-content: space-between;
  animation: show_notify 0.5s ease forwards;
  border: 1px solid;
  background: white;

}
@keyframes show_notify {
  0% {
    transform: translateX(100%);
  }
  40% {
    transform: translateX(-5%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-10px);
  }
}
.popup-notifications .notify.hide {
  animation: hide_notify 0.3s ease forwards;
}
@keyframes hide_notify {
  0% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(0%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(calc(100% + 20px));
  }
}
.notify::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  right: 0px;
  animation: progress 3s linear forwards;
}
@keyframes progress {
  100% {
    width: 0%;
  }
}
.notify.success::before, .btn#success {
  background: var(--success);
}
.notify.error::before, .btn#error {
  background: var(--error);
}
.notify.warning::before, .btn#warning {
  background: var(--warning);
}
.notify.info::before, .btn#info {
  background: var(--info);
}
.notify .column i {
  font-size: 1.75rem;
  margin-left: 5px;
}
.notify.success .column i {
  color: var(--success);
}
.notify.error .column i {
  color: var(--error);
}
.notify.warning .column i {
  color: var(--warning);
}
.notify.info .column i {
  color: var(--info);
}
.notify .column span {
  font-size: 1.07rem;
  margin-left: 12px;
}
.notify i:last-child {
  color: #aeb0d7;
  cursor: pointer;
}
.notify i:last-child:hover {
  color: var(--dark);
}

@media screen and (max-width: 530px) {
  .popup-notifications {
    width: 89%;

  }
  .popup-notifications .notify {
    width: 96%;
    font-size: 1rem;
  }

}

/* ------------------------------------------------------------- */






.tiny-ripple-spinner {
  color: #1c4c5b;
}

.tiny-ripple-spinner,
.tiny-ripple-spinner div {
  box-sizing: border-box;
}

.tiny-ripple-spinner {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}

.tiny-ripple-spinner div {
  position: absolute;
  border: 2px solid currentColor;
  opacity: 1;
  border-radius: 50%;
  animation: tiny-ripple-spinner 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.tiny-ripple-spinner div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes tiny-ripple-spinner {
  0% {
    top: 18px;
    left: 18px;
    width: 4px;
    height: 4px;
    opacity: 0;
  }
  4.9% {
    top: 18px;
    left: 18px;
    width: 4px;
    height: 4px;
    opacity: 0;
  }
  5% {
    top: 18px;
    left: 18px;
    width: 4px;
    height: 4px;
    opacity: 1;
  }
  100% {
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}


/* ------------------------------------------------------------- */





.page-link {
  padding:5px 10px;
  font-size:14px;
}

.loader-container {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 9999;
   justify-content: center;
   align-items: center;
   display:none;
}




            .overlay {
            z-index: 2000;
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            visibility: hidden;
            opacity: 0;
            overflow-y: auto;
            transition: opacity 0.5s ease-in-out, visibility 0s 0.5s; 
        }

        .popup {
            z-index: 16;
            margin: auto;
            transform: translateY(-100px);
            opacity: 0;
            transition: transform 0.5s ease-out, opacity 0.5s ease-out;
        }

        .overlay.active {
            visibility: visible;
            opacity: 1;
            transition: opacity 0.5s ease-in-out, visibility 0s 0s;
        }

        .overlay.active .popup {
            transform: translateY(0);
            opacity: 1;
        }

        .close {
            display: inline-block;
            margin-top: 10px;
            padding: 10px 20px;
            background: #f44336;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
        }

        .close:hover {
            background: #d32f2f;
        }

        .box {
            text-align: center;
        }

        .button {
            background: #4CAF50;
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            font-size: 18px;
            border-radius: 5px;
        }

        .button:hover {
            background: #45a049;
        }
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

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

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

.page-link {
  cursor: pointer;
}

.rotate-icon-container{
    justify-content: center;
    align-items: center;
    display: flex;
}

.rotating-icon {
    transition: transform 0.3s ease;
}

.rotating-icon:hover {
              transform: scale(1.05);
}

.rotating-icon.rotate{
            transform: rotate(45deg); 
}

.rotating-icon.rotate:hover{
            color: #6b8199;
}





::-webkit-scrollbar {
  width: 4px; 
  height: 4px; 
}

::-webkit-scrollbar-track {
  background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
  background: #888; 
  border-radius: 10px; 

}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
























/* IMMMMMGGGGG */



#imagePreview {
    width: auto;
    height: 100%;
    max-height: 300px;
    max-width: 300px;
    margin: 20px auto;
    display: none;
    border: 1px solid #ccc;
    display: block;
}

.image-removal {
  position: absolute;
  bottom: 0;
  left: 0;
  padding:3px;
  background: transparent;
  border: none;
  width:100%;
  cursor: pointer;
  color: white;
  background-color:red;
  font-size: 15px;
}



#importIMG {
  border-radius: 10px;
  text-align: center;
}

input[type="file"] {
  display: none;
}

.upload-img-btn {
   display: inline-block;
   padding: 10px 25px 3px 25px;
   border: 3px dashed #7d8da1;
   border-radius: 15px;
   color: #7d8da1;
   font-weight: bold;
   cursor: pointer;
   transition: background-color 0.3s, border-color 0.3s;
}

.upload-img-btn:hover {
   background-color: rgba(255, 255, 255, 0.6);
}


#imageContainer {
    position: relative;
    margin: 20px auto;
    text-align: center;
    display: none;
}

#removeIMG {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(128, 128, 128, 0.5); 
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    display: none;
    cursor: pointer;
}

#imageContainer:hover #removeIMG {
    display: block;
}









         .switch-field {
         display: flex;
         direction: rtl;
         margin-bottom: 10px;
         overflow: hidden;
         text-align: right;
         }
         .switch-field input {
         position: absolute !important;
         clip: rect(0, 0, 0, 0);
         height: 1px;
         width: 1px;
         border: 0;
         overflow: hidden;
         }
         .switch-field label {
         background-color: #EAEEF7;
         color: rgba(0, 0, 0, 0.6);
         font-size: 13	px;
         line-height: 1;
         text-align: center;
         font-weight: bold;
         padding: 9px 16px;
         transition: all 0.1s ease-in-out;
         }
         .switch-field label:hover {
         cursor: pointer;
         }
         .switch-field input:checked + label {
         background-color: #6071a3;
         box-shadow: none;
         color:white;
         }
	.switch-field label:first-of-type {
	 border-radius: 0 15px 15px 0;
	}

	.switch-field label:last-of-type {
 	 border-radius: 15px 0 0 15px;
	}
         @keyframes slideInFromTop {
         0% {
         transform: translateY(-40%);
         opacity: 0;
         }
         100% {
         transform: translateY(0);
         opacity: 1;
         }
         }
         .counting-method-area.show {
         animation: slideInFromTop 0.3s ease-out forwards;
         }
         @keyframes slideOutUp {
         0% {
         transform: translateY(0);
         opacity: 1;
         }
         100% {
         transform: translateY(-40%);
         opacity: 0;
         }
         }
         .counting-method-area {
         animation: slideOutUp 0.2s ease-in forwards;
         }


.rotate-icon-container{
    justify-content: center;
    align-items: center;
    display: flex;
}

.rotating-icon {
    transition: transform 0.4s ease;
}

.rotating-icon:hover {
    transform: scale(1.05);
}

.rotating-icon.rotate{
    transform: rotate(45deg); 
}

.rotating-icon.rotate:hover{
    color: #6b8199;
}


.extra-layer {
  background-color: rgba(113, 116, 117, 0);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.extra-layer.active {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(113, 116, 117, 0.4);
  z-index: 5;
  opacity: 1;
}



.modal-body-content {
    position: relative;
    min-height: 100%;
}

/* الشكل الأساسي */
.modal-content-blocker {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;

    z-index: 10;
    border-radius: inherit;
}

.modal-content-blocker.active-red {
    background: rgba(220, 53, 69, 0.12);
    color: #ff4d4f;
}

.modal-content-blocker.active-green {
    background: rgba(25, 135, 84, 0.12);
    color: #09ab51;
    
}

.modal-content-blocker.active-dark {
    background: rgba(0, 0, 0, 0.08);
    color: #4b4b4b;
}

.modal-content-blocker .rotate-45 {
    transform: rotate(-45deg);
}

.modal-content-blocker .rotate-325 {
    transform: rotate(325deg);
}

.modal-content-blocker .rotate-335 {
    transform: rotate(335deg);
}

.modal-content-blocker .rotate-330 {
    transform: rotate(330deg);
}

.modal-content-blocker .rotate-340 {
    transform: rotate(340deg);
}
.modal-content-blocker .rotate-350 {
    transform: rotate(350deg);
}



.product_row {
  transition: background-color 0.3s ease; /* Smooth transition */
}

.product_row:hover {
  background-color: rgb(242, 242, 242); /* Hover color */
}




/* SEECTION ONE */
  .page-link {
    padding:5px 10px;
    font-size:14px;
  }
  .loader-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    display:none;
  }






/* END SEECTION ONE */


    .sticky-note {
      position: absolute;
      width: 200px;
      height: 140px;
      background-color: #fff8a6;
      box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
      border-radius: 10px;
      padding-top: 1.2rem;
      padding-right: 0.4rem;
      padding-left: 0.2rem;
      cursor: grab;
      user-select: none;
      z-index: 11;
    }

    .sticky-note:active {
      cursor: grabbing;
    }

    .note-textarea {
      width: 100%;
      height: 100%;
      resize: none;
      border: none;
      background: transparent;
      font-size: 13px;
      line-height: 1.3;
      outline: none;
      padding: 0;
      margin: 0;

  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;

}

.note-textarea::-webkit-scrollbar {
  width: 3px; 
}

.note-textarea::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 2px;
}

.note-textarea::-webkit-scrollbar-track {
  background: transparent;
}

    .close-btn {
      position: absolute;
      top: -5px;
      right: 5px;
      font-size: 20px;
      color: #444;
      cursor: pointer;
      z-index: 12;
      user-select: none;
    }

    .close-btn:hover {
      color: #d00;
    }



.icons-button-shape {
  font-size: 30px;
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.icons-button-shape:hover {
  color: gray;
  transform: scale(1.1); 
}

#active_sorting {
cursor: pointer;
}

.blocked-supervisor {
 background:rgb(245 225 225);
}























/* MESSAGES */



  @media (max-width: 991.98px) {
    .auth-buttons {
      flex-direction: column !important;
      align-items: stretch !important;
      width: 100%;
      gap: 0.5rem;
    }

    .auth-buttons .btn {
      width: 100%;
    }
  }





        .contact-info-card {
            border-radius: 15px;
            overflow: hidden;
            transition: transform 0.3s ease;
            height: 100%;
        }
        
        .contact-info-card:hover {
            transform: translateY(-5px);
        }
        
        .contact-icon {
            font-size: 2.5rem;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }
        
        .contact-form {
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            padding: 2rem;
        }
        
        .form-control, .form-select {
            border-radius: 10px;
            padding: 0.75rem 1rem;
            border: 1px solid #ddd;
            transition: all 0.3s;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
        }
        

.form-select {
    background-position: left 0.85rem center;

}




.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}
.news-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.news-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .card-img-top {
    transform: scale(1.05);
}
.news-card .img-wrapper {
    overflow: hidden;
    position: relative;
}
/* وسم التصنيف العائم على الصورة */
.category-badge-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(var(--bs-primary-rgb), 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
    z-index: 2;
}