.logout-btn {
  background: none;
  width: auto !important;
  align-self: center;
  overflow: visible !important;
  border: none;
  font-size: 15px;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 5px;
  font-family: Noto Sans Hebrew, Noto Sans, Arial;
  align-items: stretch;
  justify-items: stretch;
  max-width: 380px;
  margin: auto;
  direction: ltr !important;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  border-style: dashed;
  --tw-border-opacity: 1;
  border-width: 2px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background-color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 110px;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card.loading {
  position: relative;
  overflow: hidden;
}

.card.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.space-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  --tw-text-opacity: 1;
  color: #9ca2af;
  position: relative;
  z-index: 2;

}

.car-svg {
  height: 40px;
}

.error {
  background-color: #fff3e0;
  color: #e65100;
}

.info {
  font-size: 0.875rem;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
  line-height: 1.25rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: space-around;
  word-wrap: break-word;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  padding-right: 40px;
  z-index: 5;
}

.info-row {
  display: flex;
  flex-direction: row;
  gap: 0.1rem;
  align-items: center;
}

.username {
  display:block;
  font-size: 1.1rem;
  font-weight: bolder;
  direction: rtl;          /* Specify RTL direction */
  text-align: center;       /* Align text to the right */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 80px;           /* or whatever width you want */
  
    
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hours-select-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.parking-space-validity-message {
  display: block;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
  font-size: 1rem;
}

.unoccupy-btn {
  background-color: #f44336;
  color: white;
}

.unoccupy-btn:hover:not(:disabled) {
  background-color: #d32f2f;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-size: 0.9em;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background-color: #2e7d32;
}

.toast.error {
  background-color: #c62828;
}

.end-time-modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
}

.end-time-modal-content {
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  position: relative;
  background: white;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.end-time-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
}

.close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  color: #000;
}

.close:hover {
  color: #000;
}

.timeLabel {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.time-picker {
  margin-block: 0.5rem;
}

@supports (-webkit-appearance: none) {
    .time-picker {
        appearance: none;
        direction: ltr;
    }
}

.confirm-btn {
  width: 100%;
  padding: 16px;
  background: #1e1e1e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.hidden {
  display: none;
}

.parking-space-info-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
}

.parking-space-info-modal-card {
  background: white;
  padding: 20px;
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.parking-space-info-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.parking-space-info-modal-title {
  font-size: 18px;
  color: black;
  justify-content: space-between;
  margin: 0;
}

.parking-space-info-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  color: black;
}

.parking-space-info-modal-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.parking-space-info-modal-icon {
  width: 24px;
  height: 24px;
  color: #93c5fd;
}

.ltr .parking-space-info-modal-icon {
  margin-right: 12px;
}

.rtl .parking-space-info-modal-icon {
  margin-left: 12px;
}

.parking-space-info-modal-label {
  font-size: 14px;
  color: #5d6a79;
  margin-bottom: 4px;
}

.parking-space-info-modal-value {
  font-size: 16px;
  font-weight: 500;
}

.parking-space-info-modal-content {
  display: flex;
  flex-direction: column;
}

.parking-space-info-modal-action {
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.parking-space-info-modal-action svg {
  width: 20px;
  height: 20px;
}

.rtl .parking-space-info-modal-action svg {
  margin-left: 8px;
}

.ltr .parking-space-info-modal-action svg {
  margin-right: 8px;
}
