
.animate-update {
    animation: moveNumber 1s ease-in-out;
}

@keyframes moveNumber {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.new-count {
    position: absolute;
    top: 3px;
    background-color: #fd0000;
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    padding: 0 5px;
    font-weight: bold;
    display: none;
    box-shadow: 0px 0px 5px #000;
}

.new-count.animate-update {
    transform: scale(1.5);
    transition: transform 0.3s ease-in-out;
}








/*//  loading */

#loading-icon {
    display: none; /* Hide by default */
    position: fixed; /* Make it stay in place */
    z-index: 100; /* Put it on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if necessary */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#loading-icon-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

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


/*//  css profil */

.nav-item {
  text-align: center;
  margin-right: 10px;
}

.filter-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f9f9f9;
  margin-bottom: 5px;
}

.icon-container i {
  color: #000;
}

.count {
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}

.label {
  font-size: 12px;
}

.user-icon-container {
  position: relative;
}

.user-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  transition: background-color 0.3s;
}

.user-icon i {
  font-size: 50px;
}

.user-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  color: #009191 !important;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.user-icon-container:hover .user-menu,
.user-icon-container:focus-within .user-menu {
  display: block;
}

.user-icon:hover,
.user-icon:focus {
  background-color: #f9a825;
}

.nav-item:hover .icon-container,
.nav-item:focus .icon-container {
  background-color: #f9a825;
}

/* Styles for mobile view */
@media (max-width: 767px) {
  .bottom-navigation {
    overflow-x: scroll;
    scrollbar-width: none; /* for Firefox */
    -ms-overflow-style: none; /* for Internet Explorer 10+ */
  }
	
	#header h1 {

  font-size: 14px;

}

  .user-menu {
    position: fixed; /* position fixed to the viewport */
    bottom: 0; /* aligned to the bottom */
    right: 0;
    color: #009191 !important;
    top: 0; /* span the entire height */
    width: 80%; /* width of 80% */
    display: none;
    padding: 15px;
    background-color: #b59f9f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%); /* starts off the screen */
  }

  .user-icon-container:hover .user-menu,
  .user-icon-container:focus-within .user-menu {
    display: block;
    transform: translateX(0); /* slides in */
  }
}

.bottom-navigation::-webkit-scrollbar {
  /* for Google Chrome, Safari, and Opera */
  display: none;
}

.user-menu {
  bottom: 0; /* adjust position for mobile */
  right: 0;
  width: 100%; /* make menu full-width on mobile */
  max-width: none; /* remove max width limit on mobile */
}
.user-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.user-page-content {
  background-color: #ffffff;
  width: 95%;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}

.user-page-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.user-info {
  margin-bottom: 20px;
}

 .user-info-container {
        display: flex;
        justify-content: space-between;
    }

    .user-info {
        flex: 1;
        text-align: center;
        margin: 10px;
    }

.user-info label {
  font-weight: bold;
}

.user-info span {
  margin-left: 5px;
}

.logout-button {
  display: block;
  text-align: center;
  background-color: #f9a825;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.logout-button:hover {
  background-color: #f57c00;
}


.bottom-navigation {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
 justify-content: space-between;
	 align-items: center;
  background-color: #000;
	padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
	left: 0;
  right: 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
	
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.nav-item a:hover {
  color: #3498db;
}

.nav-item i {
  font-size: 24px;

}

.icon-label {
  font-size: 12px;
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}




@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

#new-order-notification.animate {
    animation: pulse 1s;
}


#refresh-button {
    position: relative; /* Relative positioning allows the notification to be positioned relative to the button */
}

#new-order-notification {
    position: absolute; /* Absolute positioning positions the notification relative to the first parent element with a position other than static, in this case the button */
    top: -10px; /* Adjust these values as needed */
    right: -10px; /* Adjust these values as needed */
    background-color: red;
    color: white;
    border-radius: 50%; /* Makes the notification circular */
    padding: 5px 10px;
    font-size: 0.8em;
	
	
}





.hidden {
    display: none;
}

.custom-checkbox-label {
    font-size: 16px;
    color: #333;
}

.my-field-class, .custom-order-notes {
   width: 75%;
    height: 42px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    resize: none;
}
.my-field-class textarea {
    resize: none; /* Prevent user from resizing the textarea */
    height: 40px; /* Set initial height */
    min-height: 40px; /* Ensure the textarea always has at least this height */
    overflow: auto; /* Allow the textarea to grow in size when text overflows */
    width: 100%; /* Full width */
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #ddd; /* Border color */
    padding: 10px; /* Padding around text */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Prevent textarea from exceeding its container */
}

.my-field-class textarea:focus {
    border-color: #5b9dd9; /* Border color on focus */
    box-shadow: 0 0 2px rgba(30, 140, 190, .8); /* Box shadow on focus */
}

/* Override styles for the container */
.my-field-class {
    padding: 0;
    margin: 0;
    max-width: 100%; /* Prevent the container from exceeding its parent */
}


.my-form .input-row2 {
  display: flex;
  justify-content: space-between;
}



/*//  scan code bar */
/* تصميم الخلفية الشفافة للنافذة المنبثقة */
.viewport-backdrop {
    display: none; /* مخفي بشكل افتراضي */
    position: fixed; /* بقاء في المكان حتى مع التمرير */
    z-index: 1; /* يظهر فوق كل شيء */
    left: 0;
    top: 0;
    width: 100%; /* عرض كامل */
    height: 88%; /* ارتفاع كامل */
    overflow: auto; /* تمكين التمرير إذا لزم الأمر */
    background-color: rgb(0,0,0); /* خلفية سوداء */
    background-color: rgba(0,0,0,0.4); /* خلفية سوداء مع شفافية */
}

/* تصميم النافذة المنبثقة */
.viewport {
    background-color: #00000042;
    margin: 15% auto; /* 15% من الأعلى وتوسيط */
    padding: 20px;
    border: 1px solid #888;
    width: 100%; /* 80% من عرض الشاشة */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); /* تأثير الظل */
}

/* زر الإغلاق */
.close-btn {
    color: #aaa;
    float: right; /* يظهر على اليمين */
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}




.show-previous-orders-btn {
    border: none;
    cursor: pointer;
    width: 15px; /* Small size */
    height: 15px; /* Small size */
    background-color: red; /* Red color */
    border-radius: 50%; /* Make it round */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Add some shadow */
    animation: blink-animation 1.5s infinite; /* Blinking effect */
}
.previous-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0px 0;
}
.previous-orders-table th, .previous-orders-table td {
    border: 1px solid #ddd;
    padding: 5px;
   text-align: center;
}
.previous-orders-table th {
   background-color: #cfcfcf;
    font-size: 13px;
}

@keyframes blink-animation {
    50% {
        opacity: 0.5; /* Half visible */
    }
}



#search-results {
    max-height: 223px;
    overflow-y: auto; 
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 20px; 
	background-color: #fefefe;
}

#search3-results {
    max-height: 223px;
    overflow-y: auto; 
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 20px; 
	background-color: #fefefe;
}



#actions-bar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px; 
    background-color: #f2f2f2; 
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); 
}

#order-count {
    font-size: 16px; /* حجم الخط لعداد الطلبات */
}

#change-all-status {
    padding: 6px 12px;
    font-size: 16px;
    color: #fff; 
    background-color: #007bff;
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

#change-all-status:hover {
    background-color: #0056b3; 
}


#change-all-status3 {
    padding: 6px 12px;
    font-size: 16px;
    color: #fff; 
    background-color: #ff8c04;
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

#change-all-status3:hover {
    background-color: #0056b3; /* تغيير لون الزر عند تمرير المؤشر */
}




.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
  	width: 100%;
    padding: 18px 10px;
	  height: 58px;
  	font-size: 17px;
    border-none-radius: 4px;
text-align: center;
text-decoration: none;
font-weight: bold;
margin-top: 5px;
margin-bottom: 10px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
background-color: #128C7E;
}

#print-button {
    background-color: #0a29f1;
}

#print-button2 {
    background-color: #000000;
    position: fixed;
    right: 20px;
   top: 115px;
   width: 40px; 
}







.password-reminder-bar {
    background-color: #f8d7da; /* لون خلفية الشريط */
    color: #721c24; /* لون النص */
    padding: 10px; /* هامش داخلي */
    border: 1px solid #f5c6cb; /* حدود */
margin-top: 42px;
    border-radius: 4px; /* تدوير الحواف */
}

.user-info {
    margin-top: 5px; /* تباعد أعلى */
}

.user-info label {
    font-weight: bold; /* عرض النص بخط عريض */
}

.user-info a {
    color: #721c24; /* لون الرابط */
    text-decoration: underline; /* تسطير النص */
    cursor: pointer; /* مؤشر الفأرة */
}

.user-info a:hover {
    color: #dc3545; /* تغيير لون الرابط عند التحويل */
}


