/* ==========================================================================
   STEELHEAD509.COM — Shared Component Styles
   Reusable components for both public site and admin panel
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading, 'Fjalla One', 'Arial Black', sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 300ms ease,
    color 300ms ease,
    border-color 300ms ease,
    transform 300ms ease,
    box-shadow 300ms ease;
  white-space: nowrap;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary, #FF7B00);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0) !important;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Primary — orange CTA */
.btn-primary {
  background-color: var(--color-primary, #FF7B00);
  color: #ffffff;
  border-color: var(--color-primary, #FF7B00);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark, #E66A00);
  border-color: var(--color-primary-dark, #E66A00);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 123, 0, 0.3);
}

/* Secondary — dark */
.btn-secondary {
  background-color: var(--color-text-dark, #1B1B1B);
  color: #ffffff;
  border-color: var(--color-text-dark, #1B1B1B);
}

.btn-secondary:hover {
  background-color: #333333;
  border-color: #333333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Outline — bordered */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary, #FF7B00);
  border-color: var(--color-primary, #FF7B00);
}

.btn-outline:hover {
  background-color: var(--color-primary, #FF7B00);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 123, 0, 0.3);
}

/* Outline white (for dark backgrounds / heroes) */
.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-text-dark, #1B1B1B);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

/* Ghost — no border, just text */
.btn-ghost {
  background-color: transparent;
  color: var(--color-primary, #FF7B00);
  border-color: transparent;
  padding-left: 16px;
  padding-right: 16px;
}

.btn-ghost:hover {
  background-color: rgba(255, 123, 0, 0.08);
  color: var(--color-primary-dark, #E66A00);
}

/* White solid (for orange / dark backgrounds) */
.btn-white {
  background-color: #ffffff;
  color: var(--color-primary, #FF7B00);
  border-color: #ffffff;
}

.btn-white:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  color: var(--color-primary-dark, #E66A00);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

/* Danger */
.btn-danger {
  background-color: var(--color-danger, #ef4444);
  color: #ffffff;
  border-color: var(--color-danger, #ef4444);
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Success */
.btn-success {
  background-color: var(--color-success, #22c55e);
  color: #ffffff;
  border-color: var(--color-success, #22c55e);
}

.btn-success:hover {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

/* Admin accent (amber) */
.btn-accent {
  background-color: var(--admin-accent, #f59e0b);
  color: #000000;
  border-color: var(--admin-accent, #f59e0b);
}

.btn-accent:hover {
  background-color: var(--admin-accent-hover, #d97706);
  border-color: var(--admin-accent-hover, #d97706);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* Admin steel (for dark theme actions) */
.btn-steel {
  background-color: var(--admin-steel, #4a90a4);
  color: #ffffff;
  border-color: var(--admin-steel, #4a90a4);
}

.btn-steel:hover {
  background-color: #3d7a8c;
  border-color: #3d7a8c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 144, 164, 0.3);
}

/* Admin outline (dark theme) */
.btn-outline-dark {
  background-color: transparent;
  color: var(--admin-text, #e0e0e0);
  border-color: var(--admin-input-border, #2e2e50);
}

.btn-outline-dark:hover {
  background-color: var(--admin-sidebar-hover, #222240);
  border-color: var(--admin-text-dim, #5c5c78);
  color: var(--admin-text-bright, #ffffff);
}

/* Admin ghost (dark theme) */
.btn-ghost-dark {
  background-color: transparent;
  color: var(--admin-text-muted, #8888a0);
  border-color: transparent;
  padding-left: 16px;
  padding-right: 16px;
}

.btn-ghost-dark:hover {
  background-color: var(--admin-sidebar-hover, #222240);
  color: var(--admin-text, #e0e0e0);
}

/* Button sizes */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.75rem;
  border-radius: 6px;
  gap: 6px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 10px;
  gap: 10px;
}

.btn-lg svg {
  width: 20px;
  height: 20px;
}

.btn-xl {
  padding: 18px 44px;
  font-size: 1.125rem;
  border-radius: 12px;
}

/* Block button (full width) */
.btn-block {
  display: flex;
  width: 100%;
}

/* Icon-only button */
.btn-icon {
  padding: 10px;
  gap: 0;
}

.btn-icon.btn-sm {
  padding: 6px;
}

.btn-icon.btn-lg {
  padding: 14px;
}

/* Rounded pill button */
.btn-pill {
  border-radius: 9999px;
}

/* Loading state */
.btn.is-loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-color: #ffffff transparent #ffffff transparent;
  border-radius: 50%;
  animation: btn-spinner 0.8s linear infinite;
}

.btn-outline.is-loading::after,
.btn-ghost.is-loading::after {
  border-color: var(--color-primary, #FF7B00) transparent var(--color-primary, #FF7B00) transparent;
}

@keyframes btn-spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Button group */
.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: 8px 0 0 8px;
}

.btn-group .btn:last-child {
  border-radius: 0 8px 8px 0;
}

.btn-group .btn + .btn {
  margin-left: -2px;
}


/* --------------------------------------------------------------------------
   2. FORM ELEMENTS
   -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  margin-bottom: 6px;
  line-height: 1.4;
}

.form-label .required {
  color: var(--color-danger, #ef4444);
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted, #5E5E5E);
  margin-top: 4px;
  line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: inherit;
  background-color: transparent;
  border: 2px solid var(--color-gray-light, #E8E8E8);
  border-radius: 8px;
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    background-color 300ms ease;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary, #FF7B00);
  box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-mid, #CCCCCC);
}

/* Error state */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--color-danger, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Success state */
.form-input.is-success,
.form-select.is-success,
.form-textarea.is-success {
  border-color: var(--color-success, #22c55e);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* Disabled state */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(128, 128, 128, 0.05);
}

/* Readonly state */
.form-input[readonly] {
  background-color: rgba(128, 128, 128, 0.05);
  cursor: default;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-danger, #ef4444);
  margin-top: 4px;
}

.form-success-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-success, #22c55e);
  margin-top: 4px;
}

/* Select */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%235E5E5E'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Textarea */
.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-textarea--tall {
  min-height: 200px;
}

/* Checkbox and Radio */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"],
.form-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--color-primary, #FF7B00);
  cursor: pointer;
}

.form-checkbox__text,
.form-radio__text {
  flex: 1;
}

/* Form row for side-by-side fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row--2col {
    grid-template-columns: 1fr 1fr;
  }

  .form-row--3col {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .form-row--auto {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Input with icon */
.form-input-group {
  position: relative;
}

.form-input-group .form-input {
  padding-left: 40px;
}

.form-input-group__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-gray-dark, #888888);
  pointer-events: none;
}

.form-input-group__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Input with suffix */
.form-input-group--suffix .form-input {
  padding-left: 14px;
  padding-right: 40px;
}

.form-input-group--suffix .form-input-group__icon {
  left: auto;
  right: 12px;
}

/* Input with addon button */
.form-input-addon {
  display: flex;
}

.form-input-addon .form-input {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.form-input-addon .btn {
  border-radius: 0 8px 8px 0;
  flex-shrink: 0;
}

/* Form divider */
.form-divider {
  border: none;
  border-top: 1px solid var(--color-gray-light, #E8E8E8);
  margin: 24px 0;
}

/* Form section heading */
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gray-light, #E8E8E8);
}

/* Character count */
.form-char-count {
  text-align: right;
  font-size: 0.6875rem;
  color: var(--color-gray-dark, #888888);
  margin-top: 4px;
}

.form-char-count.is-warning {
  color: var(--color-warning, #eab308);
}

.form-char-count.is-over {
  color: var(--color-danger, #ef4444);
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   3. ALERTS
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid transparent;
  margin-bottom: 16px;
}

.alert:last-child {
  margin-bottom: 0;
}

.alert__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.alert__body {
  flex: 1;
  min-width: 0;
}

.alert__title {
  font-weight: 700;
  margin-bottom: 2px;
}

.alert__text {
  line-height: 1.5;
}

.alert__text a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alert__close {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert__close:hover {
  opacity: 1;
}

.alert__close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Success */
.alert-success {
  background-color: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #166534;
}

.alert-success .alert__icon {
  color: var(--color-success, #22c55e);
}

.alert-success .alert__text a {
  color: #15803d;
}

/* Warning */
.alert-warning {
  background-color: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.2);
  color: #854d0e;
}

.alert-warning .alert__icon {
  color: var(--color-warning, #eab308);
}

.alert-warning .alert__text a {
  color: #a16207;
}

/* Error / Danger */
.alert-error {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

.alert-error .alert__icon {
  color: var(--color-danger, #ef4444);
}

.alert-error .alert__text a {
  color: #b91c1c;
}

/* Info */
.alert-info {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1e40af;
}

.alert-info .alert__icon {
  color: var(--color-info, #3b82f6);
}

.alert-info .alert__text a {
  color: #1d4ed8;
}

/* Dark theme alert variants (admin) */
.alert--dark.alert-success {
  background-color: var(--admin-success-light, rgba(34, 197, 94, 0.15));
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--admin-success, #22c55e);
}

.alert--dark.alert-warning {
  background-color: var(--admin-warning-light, rgba(234, 179, 8, 0.15));
  border-color: rgba(234, 179, 8, 0.25);
  color: var(--admin-warning, #eab308);
}

.alert--dark.alert-error {
  background-color: var(--admin-danger-light, rgba(239, 68, 68, 0.15));
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--admin-danger, #ef4444);
}

.alert--dark.alert-info {
  background-color: var(--admin-info-light, rgba(59, 130, 246, 0.15));
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--admin-info, #3b82f6);
}


/* --------------------------------------------------------------------------
   4. MODALS
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--color-white, #ffffff);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transform: scale(0.95) translateY(20px);
  transition: transform 300ms ease;
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal--sm {
  max-width: 400px;
}

.modal--lg {
  max-width: 800px;
}

.modal--xl {
  max-width: 1100px;
}

.modal--fullscreen {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  border-radius: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gray-light, #E8E8E8);
  flex-shrink: 0;
}

.modal-header__title {
  font-family: var(--font-heading, 'Fjalla One', sans-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-dark, #1B1B1B);
  margin-bottom: 0;
}

.modal-header__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--color-text-muted, #5E5E5E);
  transition: background-color 200ms ease, color 200ms ease;
}

.modal-header__close:hover {
  background-color: var(--color-gray-bg, #F6F6F6);
  color: var(--color-text-dark, #1B1B1B);
}

.modal-header__close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-gray-light, #E8E8E8);
  flex-shrink: 0;
}

.modal-footer--between {
  justify-content: space-between;
}

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


/* --------------------------------------------------------------------------
   5. TOOLTIPS
   -------------------------------------------------------------------------- */

.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tooltip {
  position: absolute;
  z-index: 500;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  background-color: var(--color-text-dark, #1B1B1B);
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Top (default) */
.tooltip--top {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}

.tooltip--top::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-dark, #1B1B1B);
}

/* Bottom */
.tooltip--bottom {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip--bottom::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--color-text-dark, #1B1B1B);
}

/* Left */
.tooltip--left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
}

.tooltip--left::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid var(--color-text-dark, #1B1B1B);
}

/* Right */
.tooltip--right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}

.tooltip--right::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid var(--color-text-dark, #1B1B1B);
}

/* Show on hover */
.tooltip-wrapper:hover .tooltip--top {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-wrapper:hover .tooltip--bottom {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-wrapper:hover .tooltip--left {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.tooltip-wrapper:hover .tooltip--right {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Dark theme tooltip */
.tooltip--dark {
  background-color: var(--admin-card, #1e1e36);
  border: 1px solid var(--admin-card-border, #2a2a48);
  color: var(--admin-text, #e0e0e0);
}

.tooltip--dark.tooltip--top::after {
  border-top-color: var(--admin-card, #1e1e36);
}

.tooltip--dark.tooltip--bottom::after {
  border-bottom-color: var(--admin-card, #1e1e36);
}

.tooltip--dark.tooltip--left::after {
  border-left-color: var(--admin-card, #1e1e36);
}

.tooltip--dark.tooltip--right::after {
  border-right-color: var(--admin-card, #1e1e36);
}


/* --------------------------------------------------------------------------
   6. DROPDOWN MENUS
   -------------------------------------------------------------------------- */

.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown__trigger {
  cursor: pointer;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background-color: var(--color-white, #ffffff);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-gray-light, #E8E8E8);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
}

.dropdown__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__menu--left {
  right: auto;
  left: 0;
}

.dropdown__menu--center {
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

.dropdown__menu--center.is-open {
  transform: translateX(-50%) translateY(0);
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--color-text-dark, #1B1B1B);
  border-radius: 6px;
  transition: background-color 150ms ease, color 150ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown__item:hover {
  background-color: var(--color-gray-bg, #F6F6F6);
  color: var(--color-primary, #FF7B00);
}

.dropdown__item.is-active {
  background-color: rgba(255, 123, 0, 0.08);
  color: var(--color-primary, #FF7B00);
  font-weight: 600;
}

.dropdown__item.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.dropdown__item--danger {
  color: var(--color-danger, #ef4444);
}

.dropdown__item--danger:hover {
  background-color: rgba(239, 68, 68, 0.06);
  color: var(--color-danger, #ef4444);
}

.dropdown__item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.dropdown__divider {
  height: 1px;
  background-color: var(--color-gray-light, #E8E8E8);
  margin: 4px 0;
}

.dropdown__header {
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #5E5E5E);
}

/* Dark theme dropdown */
.dropdown__menu--dark {
  background-color: var(--admin-card, #1e1e36);
  border-color: var(--admin-card-border, #2a2a48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dropdown__menu--dark .dropdown__item {
  color: var(--admin-text, #e0e0e0);
}

.dropdown__menu--dark .dropdown__item:hover {
  background-color: var(--admin-sidebar-hover, #222240);
  color: var(--admin-text-bright, #ffffff);
}

.dropdown__menu--dark .dropdown__divider {
  background-color: var(--admin-border, #2a2a48);
}

.dropdown__menu--dark .dropdown__header {
  color: var(--admin-text-dim, #5c5c78);
}


/* --------------------------------------------------------------------------
   7. PAGINATION
   -------------------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: inherit;
  transition: background-color 200ms ease, color 200ms ease;
  cursor: pointer;
}

.pagination__item:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

.pagination__item.is-active {
  background-color: var(--color-primary, #FF7B00);
  color: #ffffff;
}

.pagination__item.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination__item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #5E5E5E);
}

/* Pagination info text */
.pagination__info {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #5E5E5E);
}

/* Pagination with info layout */
.pagination-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

@media (min-width: 640px) {
  .pagination-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* --------------------------------------------------------------------------
   8. TAGS / CHIPS
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.tag--default {
  background-color: var(--color-gray-bg, #F6F6F6);
  color: var(--color-text-muted, #5E5E5E);
}

.tag--primary {
  background-color: rgba(255, 123, 0, 0.1);
  color: var(--color-primary, #FF7B00);
}

.tag--blue {
  background-color: rgba(0, 51, 102, 0.08);
  color: var(--color-blue, #003366);
}

.tag--success {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--color-success, #22c55e);
}

.tag--warning {
  background-color: rgba(234, 179, 8, 0.1);
  color: var(--color-warning, #eab308);
}

.tag--danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger, #ef4444);
}

.tag--info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-info, #3b82f6);
}

/* Pill variant (more rounded) */
.tag--pill {
  border-radius: 20px;
}

/* Removable */
.tag__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 200ms ease, background-color 200ms ease;
}

.tag__remove:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

.tag__remove svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* Tag group */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Larger chip (often with avatar) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 20px;
  background-color: var(--color-gray-bg, #F6F6F6);
  color: var(--color-text-dark, #1B1B1B);
  transition: background-color 200ms ease;
}

.chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.chip__avatar--placeholder {
  background-color: var(--color-primary, #FF7B00);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

.chip__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 200ms ease, background-color 200ms ease;
  margin-left: 2px;
}

.chip__remove:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

.chip__remove svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}


/* --------------------------------------------------------------------------
   9. AVATAR CIRCLES
   -------------------------------------------------------------------------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-primary, #FF7B00);
  color: #ffffff;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sizes */
.avatar--xs {
  width: 24px;
  height: 24px;
  font-size: 0.625rem;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar--md {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1.125rem;
}

.avatar--xl {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
}

.avatar--2xl {
  width: 96px;
  height: 96px;
  font-size: 2rem;
}

/* Status indicator */
.avatar-wrapper {
  position: relative;
  display: inline-flex;
}

.avatar-wrapper__status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white, #ffffff);
}

.avatar-wrapper__status--online {
  background-color: var(--color-success, #22c55e);
}

.avatar-wrapper__status--offline {
  background-color: var(--color-gray-mid, #CCCCCC);
}

.avatar-wrapper__status--busy {
  background-color: var(--color-danger, #ef4444);
}

.avatar-wrapper__status--away {
  background-color: var(--color-warning, #eab308);
}

/* Avatar group (overlapping) */
.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--color-white, #ffffff);
  margin-left: -8px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.avatar-group__overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-gray-bg, #F6F6F6);
  color: var(--color-text-muted, #5E5E5E);
  font-size: 0.6875rem;
  font-weight: 700;
  border: 2px solid var(--color-white, #ffffff);
  margin-left: -8px;
}

/* Square avatar (for project/team icons) */
.avatar--square {
  border-radius: 10px;
}


/* --------------------------------------------------------------------------
   10. LOADING SPINNERS
   -------------------------------------------------------------------------- */

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(128, 128, 128, 0.2);
  border-top-color: var(--color-primary, #FF7B00);
  border-radius: 50%;
  animation: spinner-rotate 0.7s linear infinite;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

.spinner--sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner--lg {
  width: 36px;
  height: 36px;
  border-width: 4px;
}

.spinner--xl {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.spinner--white {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
}

.spinner--accent {
  border-top-color: var(--admin-accent, #f59e0b);
}

.spinner--steel {
  border-top-color: var(--admin-steel, #4a90a4);
}

/* Full page loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.loading-overlay--dark {
  background-color: rgba(15, 15, 26, 0.85);
}

.loading-overlay__text {
  font-size: 0.875rem;
  color: var(--color-text-muted, #5E5E5E);
  font-weight: 500;
}

.loading-overlay--dark .loading-overlay__text {
  color: var(--admin-text-muted, #8888a0);
}

/* Dots loading animation */
.loading-dots {
  display: inline-flex;
  gap: 6px;
}

.loading-dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary, #FF7B00);
  animation: loading-dots-bounce 1.2s ease-in-out infinite;
}

.loading-dots__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loading-dots-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Skeleton loading bar */
.loading-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(128, 128, 128, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar__fill {
  height: 100%;
  background-color: var(--color-primary, #FF7B00);
  border-radius: 2px;
  animation: loading-bar-indeterminate 1.5s ease-in-out infinite;
}

@keyframes loading-bar-indeterminate {
  0% {
    width: 0;
    margin-left: 0;
  }
  50% {
    width: 60%;
    margin-left: 20%;
  }
  100% {
    width: 0;
    margin-left: 100%;
  }
}


/* --------------------------------------------------------------------------
   11. EMPTY STATES
   -------------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--color-gray-mid, #CCCCCC);
  opacity: 0.5;
}

.empty-state__icon svg {
  width: 80px;
  height: 80px;
  fill: currentColor;
}

.empty-state__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state__text {
  font-size: 0.875rem;
  color: var(--color-text-muted, #5E5E5E);
  line-height: 1.6;
  margin-bottom: 24px;
}

.empty-state__text:last-child {
  margin-bottom: 0;
}

.empty-state__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 480px) {
  .empty-state__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Dark theme empty state */
.empty-state--dark .empty-state__icon {
  color: var(--admin-text-dim, #5c5c78);
}

.empty-state--dark .empty-state__title {
  color: var(--admin-text, #e0e0e0);
}

.empty-state--dark .empty-state__text {
  color: var(--admin-text-muted, #8888a0);
}


/* --------------------------------------------------------------------------
   12. DIVIDERS
   -------------------------------------------------------------------------- */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-gray-light, #E8E8E8);
}

.divider:empty::after {
  display: none;
}

.divider:empty {
  gap: 0;
}

.divider__text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #5E5E5E);
  white-space: nowrap;
}

/* Dark theme divider */
.divider--dark::before,
.divider--dark::after {
  background-color: var(--admin-border, #2a2a48);
}

.divider--dark .divider__text {
  color: var(--admin-text-dim, #5c5c78);
}


/* --------------------------------------------------------------------------
   13. CARD (generic reusable card)
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--color-white, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--color-gray-light, #E8E8E8);
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-gray-mid, #CCCCCC);
}

.card--no-hover:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card__image {
  position: relative;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 500ms ease;
}

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__body {
  padding: 20px;
}

.card__body--sm {
  padding: 14px;
}

.card__body--lg {
  padding: 28px;
}

.card__title {
  font-family: var(--font-heading, 'Fjalla One', sans-serif);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted, #5E5E5E);
  line-height: 1.6;
}

.card__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--color-gray-light, #E8E8E8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}


/* --------------------------------------------------------------------------
   14. ACCORDION / COLLAPSIBLE
   -------------------------------------------------------------------------- */

.accordion {
  border: 1px solid var(--color-gray-light, #E8E8E8);
  border-radius: 10px;
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-gray-light, #E8E8E8);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: inherit;
  text-align: left;
  background: none;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.accordion__trigger:hover {
  background-color: rgba(128, 128, 128, 0.04);
}

.accordion__trigger-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 300ms ease;
  color: var(--color-text-muted, #5E5E5E);
}

.accordion__trigger-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.accordion__item.is-open .accordion__trigger-icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.accordion__item.is-open .accordion__content {
  max-height: 1000px;
}

.accordion__body {
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted, #5E5E5E);
  line-height: 1.6;
}

/* Dark theme accordion */
.accordion--dark {
  border-color: var(--admin-border, #2a2a48);
  background-color: var(--admin-card, #1e1e36);
}

.accordion--dark .accordion__item {
  border-bottom-color: var(--admin-border, #2a2a48);
}

.accordion--dark .accordion__trigger {
  color: var(--admin-text, #e0e0e0);
}

.accordion--dark .accordion__trigger:hover {
  background-color: var(--admin-sidebar-hover, #222240);
}

.accordion--dark .accordion__body {
  color: var(--admin-text-muted, #8888a0);
}


/* --------------------------------------------------------------------------
   15. BREADCRUMB (component variant)
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb__item::before {
  content: '/';
  color: var(--color-gray-mid, #CCCCCC);
  margin: 0 2px;
}

.breadcrumb__item:first-child::before {
  display: none;
}

.breadcrumb__link {
  color: var(--color-brown, #BA5A00);
  font-weight: 500;
  transition: color 200ms ease;
}

.breadcrumb__link:hover {
  color: var(--color-primary, #FF7B00);
}

.breadcrumb__current {
  color: var(--color-text-muted, #5E5E5E);
}


/* --------------------------------------------------------------------------
   16. PROGRESS STEPS
   -------------------------------------------------------------------------- */

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  counter-reset: step;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 2px;
  background-color: var(--color-gray-light, #E8E8E8);
}

.step:first-child::before {
  display: none;
}

.step.is-complete::before {
  background-color: var(--color-primary, #FF7B00);
}

.step.is-active::before {
  background-color: var(--color-primary, #FF7B00);
}

.step__indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--color-gray-light, #E8E8E8);
  background-color: var(--color-white, #ffffff);
  color: var(--color-text-muted, #5E5E5E);
  position: relative;
  z-index: 1;
  counter-increment: step;
  margin-bottom: 8px;
  transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.step__indicator::after {
  content: counter(step);
}

.step.is-complete .step__indicator {
  background-color: var(--color-primary, #FF7B00);
  border-color: var(--color-primary, #FF7B00);
  color: #ffffff;
}

.step.is-complete .step__indicator::after {
  content: '\2713';
}

.step.is-active .step__indicator {
  border-color: var(--color-primary, #FF7B00);
  color: var(--color-primary, #FF7B00);
}

.step__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted, #5E5E5E);
}

.step.is-active .step__label {
  color: var(--color-text-dark, #1B1B1B);
}

.step.is-complete .step__label {
  color: var(--color-primary, #FF7B00);
}


/* --------------------------------------------------------------------------
   17. NOTIFICATION DOT / INDICATOR
   -------------------------------------------------------------------------- */

.notification-dot {
  position: relative;
}

.notification-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: var(--color-danger, #ef4444);
  border-radius: 50%;
  border: 2px solid var(--color-white, #ffffff);
}

.notification-dot--count::after {
  content: attr(data-count);
  width: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -6px;
  right: -6px;
}


/* --------------------------------------------------------------------------
   18. VISUALLY HIDDEN (ACCESSIBILITY)
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus ring utility */
.focus-ring:focus-visible {
  outline: 3px solid var(--color-primary, #FF7B00);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to content link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background-color: var(--color-primary, #FF7B00);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 8px 8px;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 0;
}


/* --------------------------------------------------------------------------
   19. RESPONSIVE TABLE WRAPPER
   -------------------------------------------------------------------------- */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(128, 128, 128, 0.05);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.2);
  border-radius: 3px;
}


/* --------------------------------------------------------------------------
   20. IMAGE COMPARISON
   -------------------------------------------------------------------------- */

.img-compare {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  user-select: none;
}

.img-compare__layer {
  display: block;
  width: 100%;
}

.img-compare__overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}

.img-compare__overlay img {
  display: block;
  height: 100%;
  max-width: none;
}

.img-compare__slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ffffff;
  cursor: ew-resize;
  z-index: 10;
}

.img-compare__slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.img-compare__label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  pointer-events: none;
}

.img-compare__label--before {
  left: 12px;
}

.img-compare__label--after {
  right: 12px;
}
