/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

#jv-point-table .point-used {
  color: red;
}

#jv-point-table .point-earned {
  color: rgb(1, 89, 166);
}

/* Points display styles */
.javo-total-points {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.javo-total-points-value {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.javo-total-points-input-value {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

#javo-points-input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#javo-points-input-container label {
  font-weight: 500;
  margin-bottom: 0;
  white-space: nowrap;
}

#javo-points-input {
  max-width: 120px;
}

#apply-points-btn {
  white-space: nowrap;
  min-width: 100px;
}

#apply-points-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#reset-points-btn {
  white-space: nowrap;
  min-width: 60px;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
  border-radius: 0.25rem;
  vertical-align: middle;
}

#reset-points-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toast styles - Bootstrap 5.3 기본 사용 */
#javo-toast-container {
  z-index: 1055;
}

/* Alert styles */
.alert {
  margin-bottom: 1rem;
  border-radius: 0.375rem;
}

.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #javo-points-input-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #javo-points-input {
    max-width: none;
  }

  #apply-points-btn {
    width: 100%;
  }
}

/* Responsive adjustments for toast */
@media (max-width: 768px) {
  #javo-toast-container {
    right: 0.5rem;
    left: 0.5rem;
  }
}
