.hidden-scroll-bar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE و Edge القديم */
}

.hidden-scroll-bar::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}

/* Custom checkbox style */
input[type="checkbox"] {
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.25rem;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}
input[type="checkbox"]:checked {
  border-color: #115cc0;
  background: #115cc0;
}
input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 1;
}
input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #115cc033;
}

.btn {
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn:hover {
  background-color: #1d4ed8;
}

.btn-danger {
  background-color: #ef4444;
  color: #fff;
}
.btn-danger:hover {
  background-color: #dc2626;
}
.btn-primary {
  background-color: #115cc0;
  color: #fff;
}
.btn-secondary {
  background-color: #6b7280;
  color: #fff;
}

.input {
  /* w-full p-2 border border-gray-200 rounded focus:outline-none focus:ring-2 focus:ring-blue-500; */

  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  outline: none;
  transition: ring-2 ring-blue-500;
}

/* i need animation for backButton as move from left to right infinitely */
#backButton:hover button {
  animation: moveRight 1s linear infinite;
}

@keyframes moveRight {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

input,
select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  outline: none;
  transition: ring-2 ring-blue-500;
}

.selected {
  background-color: #3f7bca !important;
  color: #fff;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

table {
  width: 100%;
  border-collapse: collapse; /* Merges adjacent cell borders */
}

th,
td {
  padding: 8px;
  text-align: left;
}

tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}

thead th {
  /*  i need to change the background color to color match the theme dont know how ; */
  background-color: #115cc0 !important;
  color: white;
}

.loading-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  overflow: hidden;
  display: none; /* Initially hidden */
}

.loading-bar {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: #115cc0;
  animation: loading 1s linear infinite;
}

.htmx-request {
  display: block !important; /* Show the loading bar when htmx is making a request */
}

@keyframes loading {
  from {
    left: -30%;
  }
  to {
    left: 100%;
  }
}
