/*
 * 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.
 */

#flash-container {
  position: fixed;
  top: 4.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: min(40rem, calc(100vw - 2rem));
  align-items: center;
  padding: 0 0.5rem;
}

.flash-message {
  max-width: min(40rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  color: white;
  background: #1f2937;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: auto;
}

.flash-message.flash-alert {
  background: #dc2626;
}

.flash-message.flash-notice {
  background: #2563eb;
}

.flash-message.flash-success {
  background: #047857;
}

.flash-message.flash-warning {
  background: #b45309;
}

.flash-message--hidden {
  opacity: 0;
  transform: translateY(-0.8rem);
}

.rsvp-summary {
  width: min(56rem, calc(100vw - 2rem));
  margin: 2rem auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1rem;
  background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid #dbe6f7;
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.1);
}

.rsvp-summary__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #36538a;
}

.rsvp-summary__title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: #0f172a;
}

.rsvp-summary__subtitle {
  margin: 0.8rem 0 0;
  font-size: 1rem;
  color: #4b5563;
}

.rsvp-summary__stat {
  margin-top: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.rsvp-summary__count {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  font-weight: 800;
  color: #1d4ed8;
}

.rsvp-summary__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

@media (max-width: 640px) {
  .rsvp-summary {
    margin: 1.2rem auto;
  }
}

@media (prefers-color-scheme: dark) {
  .rsvp-summary {
    background: linear-gradient(145deg, rgba(16, 23, 41, 0.95) 0%, rgba(22, 31, 52, 0.95) 100%);
    border-color: #243755;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  }

  .rsvp-summary__eyebrow {
    color: #93c5fd;
  }

  .rsvp-summary__title {
    color: #f8fafc;
  }

  .rsvp-summary__subtitle {
    color: #cbd5e1;
  }

  .rsvp-summary__stat {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(147, 197, 253, 0.35);
  }

  .rsvp-summary__count {
    color: #93c5fd;
  }

  .rsvp-summary__label {
    color: #e2e8f0;
  }
}

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.product-card__title {
  font-size: 1.05rem;
  color: #111827;
}

.product-card__price {
  font-size: 1rem;
  color: #4b5563;
}

.product-card__actions {
  margin-top: auto;
}

.product-thumbnail {
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  border-radius: 0.85rem;
}

.admin-product-form {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.75rem;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.admin-product-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-product-form label {
  font-weight: 700;
  color: #111827;
}

.admin-product-form input[type="text"],
.admin-product-form input[type="number"],
.admin-product-form .form-control-file {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.admin-product-form .btn {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .admin-product-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-form {
    padding: 1.25rem;
  }
}

