/* VDT Loyalty Points - Frontend Styles */

.vdt-lookup-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 15px;
}

.vdt-lookup-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.vdt-lookup-header {
  padding: 15px;
  position: relative;
}

.vdt-lookup-title {
  position: relative;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  z-index: 1;
}

.vdt-lookup-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
  position: relative;
  z-index: 1;
}

.vdt-lookup-form-section {
  padding: 15px;
}

.vdt-form-group {
  margin-bottom: 16px;
}

.vdt-form-label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 16px;
  font-size: 16px;
}

.vdt-form-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-sizing: border-box;
}

.vdt-form-input:focus {
  outline: none;
  border-color: #007bff;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
  transform: translateY(-1px);
}

.vdt-form-help {
  font-size: 14px;
  color: #6c757d;
  margin-top: 10px;
  line-height: 1.4;
}

.vdt-lookup-btn {
  width: 100%;
  padding: 12px 15px;
  background: #e75524;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.vdt-lookup-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #f483215e;
}

.vdt-lookup-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.vdt-btn-secondary {
  background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

.vdt-btn-secondary:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3) !important;
}

.vdt-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: vdt-spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes vdt-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.vdt-lookup-footer {
  background: #f8f9fa;
  padding: 15px;
  border-top: 1px solid #e9ecef;
}

.vdt-footer-info {
  text-align: center;
}

.vdt-footer-text {
  color: #6c757d;
  margin: 0 0 10px 0;
  font-size: 14px;
}

.vdt-footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.vdt-contact-item {
  color: #444;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vdt-contact-item a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
}

/* Modal Styles */
.vdt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vdt-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
}

.vdt-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.vdt-modal-header {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  color: white;
  border-radius: 8px 8px 0 0;
}

.vdt-modal-title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vdt-modal-close {
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 1px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.vdt-modal-body {
  padding: 15px;
}

.vdt-modal-footer {
  background: #f8f9fa;
  padding: 15px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.vdt-modal-footer .vdt-lookup-btn {
  width: auto;
  min-width: 120px;
  padding: 10px 20px;
}

/* Customer Details Styles */
.vdt-customer-details {
  text-align: center;
}

.vdt-customer-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  text-align: left;
}

.vdt-customer-avatar {
  width: 60px;
  height: 60px;
  background: #f2f2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f1f1f;
  font-size: 32px;
  margin-right: 10px;
  flex-shrink: 0;
}

.vdt-customer-info {
  flex: 1;
}

.vdt-customer-name {
  margin: 0 0 0px 0 !important;
  font-size: 18px !important;
  font-weight: 600;
  color: #212529;
}

.vdt-customer-code {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.vdt-points-display {
  margin: 20px 0;
}

.vdt-points-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.vdt-points-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.vdt-points-label {
  font-size: 16px;
  opacity: 0.9;
}

.vdt-customer-meta {
  text-align: left;
}

.vdt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f4;
}

.vdt-meta-row:last-child {
  border-bottom: none;
}

.vdt-meta-label {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vdt-meta-label i {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.vdt-meta-value {
  text-align: right;
  font-weight: 500;
}

.vdt-points-info {
  margin: 20px 0;
}

.vdt-info-card {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  color: #664d03;
  border-radius: 8px;
  padding: 10px 15px;
  text-align: left;
}

.vdt-info-card h5 {
  color: currentColor;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.vdt-info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Alert Styles */
.vdt-alert {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: vdt-slide-in 0.3s ease-out;
}

.vdt-alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.vdt-alert-content {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vdt-alert-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vdt-alert-close:hover {
  opacity: 1;
}

@keyframes vdt-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .vdt-lookup-container {
    margin: 1rem auto;
    padding: 0.5rem;
  }

  .vdt-lookup-header {
    padding: 2rem 1.5rem;
  }

  .vdt-lookup-title {
    font-size: 1.5rem;
  }

  .vdt-lookup-form-section {
    padding: 2rem 1.5rem;
  }

  .vdt-footer-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .vdt-modal-content {
    margin: 1rem;
    max-width: none;
  }

  .vdt-modal-header,
  .vdt-modal-body,
  .vdt-modal-footer {
    padding: 1.5rem;
  }

  .vdt-customer-header {
    flex-direction: column;
    text-align: center;
  }

  .vdt-customer-avatar {
    margin: 0 0 1rem 0;
  }

  .vdt-modal-footer {
    flex-direction: column;
  }

  .vdt-modal-footer .vdt-lookup-btn {
    width: 100%;
  }

  .vdt-alert {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .vdt-lookup-header {
    padding: 1.5rem 1rem;
  }

  .vdt-lookup-form-section {
    padding: 1.5rem 1rem;
  }

  .vdt-lookup-footer {
    padding: 1.5rem 1rem;
  }

  .vdt-points-circle {
    width: 100px;
    height: 100px;
  }

  .vdt-points-number {
    font-size: 1.5rem;
  }
}

/* Utility Classes */
.me-1 {
  margin-right: 0.25rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}