/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Image Size Constraints */
.auction-image {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
}



.auction-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Image Delete Button Styles */
.image-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-delete-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.image-delete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* PayPal Button Styles - Compliant with PayPal's terms of use */
.paypal-button-container {
  display: inline-block;
}

.paypal-button {
  background: #ffffff;
  border: 1px solid #0070ba;
  border-radius: 4px;
  color: #0070ba;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  padding: 0 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 200px;
}

.paypal-button:hover {
  background: #f8f9fa;
  border-color: #005ea6;
  color: #005ea6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paypal-button:active {
  background: #e9ecef;
  border-color: #004a8c;
  color: #004a8c;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.paypal-button:disabled {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.paypal-button-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paypal-logo {
  height: 20px;
  width: auto;
}

.paypal-amount {
  font-weight: 600;
  margin-left: 4px;
  color: inherit;
}

/* Terms & Conditions Hover Tooltip */
[data-controller="tooltip"] {
  position: relative;
  display: inline-block;
}

.terms-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  width: 384px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 16px;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

/* Toastify Close Button Styling */
.toast-close {
  background: transparent !important;
  border: 0 !important;
  color: white !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 1.2em !important;
  opacity: 0.8 !important;
  padding: 0 8px !important;
  margin-left: 10px !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.2s ease !important;
}

.toast-close:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Notification Stacking Improvements */
.toastify {
  margin-bottom: 8px !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Ensure notifications don't get cut off */
#notifications-container {
  max-height: calc(100vh - 2rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Add smooth transitions for notification stacking */
.toastify {
  transition: all 0.3s ease !important;
  transform: translateX(0) !important;
}

.toastify.removing {
  transform: translateX(100%) !important;
  opacity: 0 !important;
}
