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

/* Turbo loading progress bar — copper accent */
.turbo-progress-bar {
  background-color: #B45309; /* wt-copper */
  height: 3px;
}

/* Disabled button state for form submissions */
button[disabled],
input[type="submit"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Login page — fashion image slideshow crossfade */
@keyframes loginSlideshow {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

.login-slide {
  animation: loginSlideshow 35s infinite;
  opacity: 0;
}

.login-slide:nth-child(1) { animation-delay: 0s; }
.login-slide:nth-child(2) { animation-delay: 7s; }
.login-slide:nth-child(3) { animation-delay: 14s; }
.login-slide:nth-child(4) { animation-delay: 21s; }
.login-slide:nth-child(5) { animation-delay: 28s; }

/* Admin dropdown menu */
.admin-dropdown {
  position: relative;
  display: inline-block;
}

.admin-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 14rem;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  z-index: 50;
}

.admin-dropdown:hover .admin-dropdown-menu,
.admin-dropdown:focus-within .admin-dropdown-menu {
  display: block;
}

.admin-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.15s;
}

.admin-dropdown-menu a:hover {
  background-color: #f3f4f6;
  color: #111827;
}
