@charset "UTF-8";

/* ===================== Guest Booking View ===================== */
#booking .booking-guest {
  background: #fff;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

#booking .booking-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

#booking .booking-header .logo {
  height: 50px;
  cursor: pointer;
}

#booking .booking-container {
  background: #fff;
  padding: 48px;
  border-radius: 5px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

#booking .booking-title {
  text-align: center;
  color: #005cb9;
  font-size: 1.5em;
  margin-bottom: 30px;
  font-weight: bold;
}

#booking .booking-form .form-group {
  margin-bottom: 20px;
}

#booking .booking-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.9em;
}

#booking .booking-form .form-group.required label:after {
  content: " *";
  color: #e01583;
}

#booking .booking-form .form-group input,
#booking .booking-form .form-group select {
  width: 100%;
  height: 50px;
  border: 1px solid #96a3b1;
  border-radius: 2px;
  padding: 0 15px;
  font-size: 1em;
  color: #333;
  box-sizing: border-box;
  background-color: #fff;
}

#booking .booking-form .form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

#booking .booking-form .form-group input:focus,
#booking .booking-form .form-group select:focus {
  border-color: #005cb9;
  outline: none;
}

#booking .booking-form .form-group input.error,
#booking .booking-form .form-group select.error {
  border-color: #e01583;
}

#booking .booking-form .form-group .error-text {
  color: #e01583;
  font-size: 0.8em;
  margin-top: 5px;
  display: block;
}

#booking .booking-form .btn-submit {
  width: 100%;
  height: 50px;
  background: #005cb9;
  border: none;
  border-radius: 2px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#booking .booking-form .btn-submit span {
  color: #fff;
}

#booking .booking-form .btn-submit:hover:not(:disabled) {
  background: #0075DE;
}

#booking .booking-form .btn-submit:disabled {
  background: #96a3b1;
  cursor: not-allowed;
}

#booking .booking-form .btn-submit .loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#booking .booking-footer {
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
}

#booking .booking-footer .operator-link {
  color: #005cb9;
  font-size: 0.9em;
  cursor: pointer;
  text-decoration: underline;
}

/* ===================== Operator View ===================== */
#booking .booking-operator {
  height: 100%;
  background: #F0F0F0;
}

#booking .booking-operator .top {
  top: 0px;
  left: 0px;
  right: 0px;
  background: #005cb9 no-repeat;
  background-size: cover;
  height: 80px;
  position: fixed;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  display: flex;
}

#booking .booking-operator .top ul {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

#booking .booking-operator .top ul li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0px 10px;
  position: relative;
  width: 65px;
  cursor: pointer;
}

#booking .booking-operator .top ul li span {
  text-align: center;
  color: #fff;
  font-weight: 200;
  font-size: 14px;
  margin-top: 50px;
}

#booking .booking-operator .top ul li.scan {
  background: url("../image/login/scanning.svg") no-repeat center 12px/38px;
}

#booking .booking-operator .top ul li.search-btn {
  background: url("../image/search.svg") no-repeat center 15px/30px;
}

#booking .booking-operator .top ul li.cancel {
  background: url("../image/photoView/topBar/delete.svg") no-repeat center 15px/30px;
}

#booking .booking-operator .top ul li.exit {
  background: url("../image/photoView/likai.svg") no-repeat center 14px/32px;
}

#booking .booking-operator .top ul li.inputCard {
  flex: 1;
  width: auto;
}

#booking .booking-operator .top ul li.inputCard button {
  position: absolute;
  width: 45px;
  height: 45px;
  background: url(../image/search.svg) no-repeat 4px 5px/34px;
  right: 17px;
  top: 17px;
}

#booking .booking-operator .top ul li input {
  border-radius: 7px;
  height: 64%;
  margin: 14px 0px;
  background: #fff;
  color: #333;
  font-weight: 200;
  position: absolute;
  width: calc(100% - 20px);
  padding: 0 15px;
  font-size: 1em;
}

#booking .booking-operator .content {
  width: 100%;
  overflow: auto;
  position: fixed;
  bottom: 80px;
  top: 80px;
  left: 0px;
  right: 0px;
  background: #F0F0F0;
  padding: 20px;
  box-sizing: border-box;
}

#booking .booking-operator .content .loading-container {
  text-align: center;
  padding: 100px 20px;
  color: #005cb9;
  font-size: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#booking .booking-operator .content .loading-spinner-large {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 92, 185, 0.2);
  border-top-color: #005cb9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#booking .booking-operator .content .no-results {
  text-align: center;
  padding: 100px 20px;
  color: #929292;
  font-size: 1.2em;
}

#booking .booking-operator .content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

#booking .booking-operator .content table thead tr.title th {
  background: #0075DE;
  color: #fff;
  padding: 15px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9em;
}

#booking .booking-operator .content table tbody tr.item {
  border-bottom: 1px solid #e0e0e0;
}

#booking .booking-operator .content table tbody tr.item:hover {
  background: #f5f5f5;
}

#booking .booking-operator .content table tbody tr.item td {
  padding: 15px 10px;
  text-align: center;
  font-size: 0.85em;
  color: #333;
}

#booking .booking-operator .content .status-badge {
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
}

#booking .booking-operator .content .status-pending {
  background: #fff3cd;
  color: #856404;
}

#booking .booking-operator .content .status-activated {
  background: #d4edda;
  color: #155724;
}

#booking .booking-operator .content .btn-assign,
#booking .booking-operator .content .btn-update {
  padding: 8px 15px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: bold;
}

#booking .booking-operator .content .btn-assign {
  background: #005cb9;
  color: #fff;
}

#booking .booking-operator .content .btn-update {
  background: #1990c7;
  color: #fff;
}

#booking .booking-operator .content .btn-assign:hover:not(:disabled),
#booking .booking-operator .content .btn-update:hover:not(:disabled) {
  opacity: 0.9;
}

#booking .booking-operator .content .btn-assign:disabled {
  background: #96a3b1;
  cursor: not-allowed;
}

#booking .booking-operator .buttom {
  position: fixed;
  bottom: 0px;
  height: 80px;
  left: 0;
  right: 0;
  background-color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 10px rgba(95, 95, 95, 0.79);
}

#booking .booking-operator .buttom .content2 {
  display: flex;
  align-items: center;
  gap: 20px;
}

#booking .booking-operator .buttom .content2 span {
  line-height: 80px;
  display: inline-block;
}

#booking .booking-operator .buttom .content2 span.pre,
#booking .booking-operator .buttom .content2 span.next {
  background: no-repeat center center;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#booking .booking-operator .buttom .content2 span.pre {
  background-image: url(../image/photoView/navigation/left.svg);
}

#booking .booking-operator .buttom .content2 span.next {
  background-image: url(../image/photoView/navigation/right.svg);
}

#booking .booking-operator .buttom .content2 span.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#booking .booking-operator .buttom .content2 span.count {
  font-size: 1em;
  color: #333;
}

/* ===================== PPID Modal ===================== */
#booking .ppid-modal {
  background: #fff;
  width: 450px;
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#booking .ppid-modal .modal-title {
  background: #005cb9;
  color: #fff;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  border-radius: 5px 5px 0 0;
}

#booking .ppid-modal .modal-content {
  padding: 25px;
}

#booking .ppid-modal .booking-info {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 3px;
  margin-bottom: 20px;
}

#booking .ppid-modal .booking-info p {
  margin: 8px 0;
  font-size: 0.9em;
  color: #333;
}

#booking .ppid-modal .form-group {
  margin-bottom: 15px;
}

#booking .ppid-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.9em;
}

#booking .ppid-modal .form-group.required label:after {
  content: " *";
  color: #e01583;
}

#booking .ppid-modal .form-group input {
  width: 100%;
  height: 45px;
  border: 1px solid #96a3b1;
  border-radius: 2px;
  padding: 0 15px;
  font-size: 1em;
  box-sizing: border-box;
}

#booking .ppid-modal .form-group input.error {
  border-color: #e01583;
}

#booking .ppid-modal .form-group .error-text {
  color: #e01583;
  font-size: 0.8em;
  margin-top: 5px;
  display: block;
}

#booking .ppid-modal .modal-actions {
  display: flex;
  gap: 15px;
  padding: 0 25px 25px;
}

#booking .ppid-modal .modal-actions button {
  flex: 1;
  height: 45px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
}

#booking .ppid-modal .modal-actions .btn-cancel {
  background: #e0e0e0;
  color: #333;
}

#booking .ppid-modal .modal-actions .btn-confirm {
  background: #005cb9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#booking .ppid-modal .modal-actions .btn-confirm span {
  color: #ffffff;
}

#booking .ppid-modal .modal-actions .btn-confirm:disabled {
  background: #96a3b1;
  cursor: not-allowed;
}

#booking .ppid-modal .modal-actions .btn-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#booking .ppid-modal .modal-actions .btn-confirm .loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===================== Success Modal ===================== */
#booking .success-modal {
  background: #fff;
  width: 400px;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#booking .success-modal .success-icon {
  width: 80px;
  height: 80px;
  background: url("../image/ok.svg") no-repeat center center;
  background-size: contain;
  margin: 0 auto 20px;
}

#booking .success-modal .success-message {
  font-size: 1.2em;
  color: #155724;
  margin-bottom: 20px;
  font-weight: bold;
}

#booking .success-modal .booking-reference {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 3px;
  margin-bottom: 25px;
  text-align: left;
}

#booking .success-modal .booking-reference p {
  margin: 8px 0;
  font-size: 0.9em;
  color: #333;
}

#booking .success-modal .btn-ok {
  width: 150px;
  height: 45px;
  background: #005cb9;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) and (max-height: 768px) {
  #booking .booking-container {
    width: 380px;
    padding: 30px;
  }

  #booking .booking-title {
    font-size: 1.3em;
  }

  #booking .booking-form .form-group input,
  #booking .booking-form .form-group select {
    height: 45px;
  }

  #booking .booking-operator .top ul li input {
    padding-left: 15px;
  }

  #booking .ppid-modal,
  #booking .success-modal {
    width: 350px;
  }
}
