/* /public_html/assets/css/dashboard-costumes.css */

.costumes-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.costumes-filters,
.costume-style-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.costume-style-picker .chip.is-active,
.costumes-filters-panel .chip.is-active{
  box-shadow:
    inset 0 0 0 1px var(--chip-accent, rgba(255,255,255,0.3)),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.costume-style-picker .chip.is-active i,
.costumes-filters-panel .chip.is-active i,
.costume-style-picker .chip.is-active .course-style-chip-txt,
.costumes-filters-panel .chip.is-active .course-style-chip-txt{
  color: var(--chip-accent, currentColor);
}

.costumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
  gap: 16px;
}

.costume-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  cursor: pointer;
}

.costume-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.costume-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.costume-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .costume-card__placeholder {
  color: rgba(0, 0, 0, 0.18);
}

.costume-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.costume-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.costume-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.costume-card__meta {
  margin: 4px 0 0;
  font-size: 0.92rem;
  opacity: 0.82;
}

.costume-card__qty {
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .costume-card__qty {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.costume-card__styles,
.costume-card__stock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.costume-pill,
.costume-stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .costume-pill,
[data-theme="light"] .costume-stock-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.costume-pill--muted,
.costume-stock-pill--muted {
  opacity: 0.72;
}

.costume-pill--icon {
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  justify-content: center;
}

.costume-pill--icon i,
.costume-pill--icon .course-style-chip-txt {
  color: var(--chip-accent, currentColor);
}

.costume-card__actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.costume-selection {
  display: flex;
  gap: 14px;
  align-items: center;
}

.costume-selection--empty {
  opacity: 0.92;
}

.costume-selection__media {
  width: 96px;
  min-width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .costume-selection__media {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.costume-selection__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.costume-selection__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .costume-selection__placeholder {
  color: rgba(0, 0, 0, 0.18);
}

.costume-selection__content {
  min-width: 0;
}

.costume-selection__title {
  font-weight: 800;
  line-height: 1.2;
}

.costume-selection__meta {
  margin: 6px 0 0;
  opacity: 0.82;
}

.costume-inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.costume-inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.costume-inventory-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 0.6fr) auto;
  gap: 10px;
  align-items: center;
}

.costume-inventory-empty {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  opacity: 0.74;
}

[data-theme="light"] .costume-inventory-empty {
  border-color: rgba(0, 0, 0, 0.12);
}

@media (max-width: 700px) {
  .costume-selection {
    align-items: flex-start;
  }

  .costume-inventory-row {
    grid-template-columns: 1fr;
  }

  .costumes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .costume-card__media {
    aspect-ratio: 1 / 1;
  }

  .costume-card__body {
    padding: 10px;
    gap: 8px;
  }

  .costume-card__title {
    font-size: 0.95rem;
  }

  .costume-card__qty {
    min-width: 38px;
    height: 38px;
    font-size: 0.94rem;
  }

  .costume-card__styles,
  .costume-card__stock,
  .costume-card__usage {
    display: none;
  }
}

.costumes-header-filters{
  width: 100%;
  min-width: 0;
}

.costumes-header-top{
  width: 100%;
}

.costume-search-field{
  flex: 1 1 auto;
  min-width: 0;
}

.costumes-filters-panel{
  width: 100%;
}

.costumes-summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.costumes-summary__text{
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.92;
}

.costumes-summary__meta{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.costumes-summary__pill{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.costume-empty-state{
  padding: 18px;
}

.costume-empty-state__title{
  font-weight: 800;
  margin-bottom: 6px;
}

.costume-card--compatible{
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 16px 30px rgba(8, 47, 73, 0.16);
}

.costume-card__title-wrap{
  min-width: 0;
}

.costume-card__badges{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.costume-status-pill{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1;
  font-weight: 800;
  border: 1px solid transparent;
}

.costume-status-pill--ok{
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.costume-status-pill--low{
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.costume-status-pill--empty{
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

[data-theme="light"] .costume-status-pill--ok{
  color: #15803d;
}

[data-theme="light"] .costume-status-pill--low{
  color: #b45309;
}

[data-theme="light"] .costume-status-pill--empty{
  color: #b91c1c;
}

.costume-pill--compatible{
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.26);
}

.costume-card__usage{
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.78;
}

@media (max-width: 700px) {
  .costumes-summary{
    flex-direction: column;
    align-items: flex-start;
  }

  .costumes-summary__meta{
    justify-content: flex-start;
  }
}
