/**
 * Production Panels - CSS Styles
 *
 * Styles for production-focused node panels:
 * - SchedulePanel (calendar view)
 * - BreakdownPanel (category accordion)
 * - Cast panel (cast list)
 * - Locations panel (location list)
 */

/* =========================================================================
 * PRODUCTION PANEL ACCENT COLORS
 * ========================================================================= */
:root {
  --node-schedule-accent: #FF5722;
  --node-breakdown-accent: #795548;
  --node-cast-accent: #E91E63;
  --node-locations-accent: #009688;
}

/* =========================================================================
 * SHARED PRODUCTION PANEL STYLES
 * ========================================================================= */

/* Stats summary row - shared by all production panels */
.production-panel-summary {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.production-panel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.production-panel-stat__value {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}

.production-panel-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.production-panel-stat--success .production-panel-stat__value {
  color: #4CAF50;
}

.production-panel-stat--warning .production-panel-stat__value {
  color: #FF9800;
}

.production-panel-stat--info .production-panel-stat__value {
  color: #2196F3;
}

/* Progress bar - for cast assignment */
.production-panel-progress {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.production-panel-progress__bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.production-panel-progress__fill {
  height: 100%;
  background: #4CAF50;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.production-panel-progress__text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* Status pills container */
.status-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-pill {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(var(--pill-color), 0.15);
  color: var(--pill-color);
  text-transform: capitalize;
}

/* =========================================================================
 * SCHEDULE PANEL
 * ========================================================================= */

.schedule-panel__content {
  display: flex;
  flex-direction: column;
}

.schedule-panel__stats {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.schedule-stat__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.schedule-stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.schedule-stat--confirmed .schedule-stat__value {
  color: #4CAF50;
}

.schedule-stat--completed .schedule-stat__value {
  color: #607D8B;
}

/* Calendar navigation */
.schedule-panel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-panel__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s ease;
}

.schedule-panel__nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.schedule-panel__month-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Calendar grid */
.schedule-panel__calendar {
  padding: 8px;
}

.schedule-panel__days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.schedule-panel__day-header {
  font-size: 0.65rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 0;
}

.schedule-panel__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.schedule-panel__cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.schedule-panel__cell:hover {
  background: rgba(255, 255, 255, 0.08);
}

.schedule-panel__cell--empty {
  cursor: default;
  background: transparent;
}

.schedule-panel__cell--empty:hover {
  background: transparent;
}

.schedule-panel__day-num {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.schedule-panel__cell--today {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.schedule-panel__cell--today .schedule-panel__day-num {
  font-weight: 600;
}

.schedule-panel__cell--selected {
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid rgba(0, 217, 255, 0.4);
}

.schedule-panel__cell--shoot {
  background: rgba(var(--shoot-color), 0.15);
  border: 1px solid var(--shoot-color);
}

.schedule-panel__cell--shoot .schedule-panel__day-num {
  color: var(--shoot-color);
  font-weight: 600;
}

.schedule-panel__day-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.5rem;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shoot-color);
  color: white;
  border-radius: 50%;
  font-weight: 600;
}

/* Day summary */
.schedule-panel__summary {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 80px;
}

.schedule-panel__hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-align: center;
  margin: 0;
}

.schedule-panel__summary-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.schedule-panel__summary-date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.schedule-panel__summary-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.schedule-panel__summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.schedule-panel__summary-day {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.schedule-panel__status {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.schedule-panel__status--planned {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

.schedule-panel__status--confirmed {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.schedule-panel__status--active {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.schedule-panel__status--completed {
  background: rgba(96, 125, 139, 0.2);
  color: #607D8B;
}

.schedule-panel__summary-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.schedule-panel__summary-times {
  display: flex;
  gap: 16px;
}

.schedule-panel__time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.schedule-panel__time svg {
  opacity: 0.5;
}

/* =========================================================================
 * BREAKDOWN PANEL
 * ========================================================================= */

.breakdown-panel__content {
  display: flex;
  flex-direction: column;
}

.breakdown-panel__stats {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breakdown-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.breakdown-stat__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.breakdown-stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.breakdown-panel__empty {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin: 0;
}

/* Category accordion */
.breakdown-panel__accordion {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.breakdown-category {
  margin-bottom: 2px;
}

.breakdown-category__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.breakdown-category__header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.breakdown-category__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease;
}

.breakdown-category--expanded .breakdown-category__toggle {
  transform: rotate(180deg);
}

.breakdown-category__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.breakdown-category__name {
  flex: 1;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.breakdown-category__count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.breakdown-category__cost {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}

/* Category content (elements list) */
.breakdown-category__content {
  display: none;
  padding: 4px 4px 4px 28px;
}

.breakdown-category--expanded .breakdown-category__content {
  display: block;
}

.breakdown-category__hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  margin: 4px 0;
  padding-left: 4px;
}

/* Breakdown element row */
.breakdown-element {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.breakdown-element:hover {
  background: rgba(255, 255, 255, 0.05);
}

.breakdown-element__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.breakdown-element__name {
  flex: 1;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-element__status {
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 6px;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.breakdown-element__status--pending {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.breakdown-element__status--hired,
.breakdown-element__status--confirmed {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.breakdown-element__status--rented {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

.breakdown-element__status--purchased {
  background: rgba(156, 39, 176, 0.2);
  color: #9C27B0;
}

.breakdown-element__status--wrapped {
  background: rgba(96, 125, 139, 0.2);
  color: #607D8B;
}

/* View toggle */
.breakdown-panel__view-toggle {
  display: flex;
  padding: 8px;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breakdown-view-btn {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
}

.breakdown-view-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.breakdown-view-btn--active {
  background: rgba(121, 85, 72, 0.3);
  border-color: rgba(121, 85, 72, 0.5);
  color: #A1887F;
}

/* Loading state */
.breakdown-panel__loading {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

/* Scenes container */
.breakdown-panel__scenes {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

/* Scene item */
.breakdown-scene {
  margin-bottom: 2px;
}

.breakdown-scene__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.breakdown-scene__header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.breakdown-scene__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease;
}

.breakdown-scene--expanded .breakdown-scene__toggle {
  transform: rotate(180deg);
}

.breakdown-scene__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.breakdown-scene__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  min-width: 24px;
}

.breakdown-scene__heading {
  flex: 1;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-scene__count {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
}

/* Scene content (expanded) */
.breakdown-scene__content {
  display: none;
  padding: 8px 8px 8px 28px;
}

.breakdown-scene--expanded .breakdown-scene__content {
  display: block;
}

.breakdown-scene__loading,
.breakdown-scene__error,
.breakdown-scene__empty {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin: 4px 0;
}

.breakdown-scene__error {
  color: rgba(244, 67, 54, 0.8);
}

/* Scene category group */
.breakdown-scene__category {
  margin-bottom: 8px;
}

.breakdown-scene__category-header {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

/* Scene element row */
.breakdown-scene__element {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.breakdown-scene__element:hover {
  background: rgba(255, 255, 255, 0.05);
}

.breakdown-scene__element-name {
  flex: 1;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-scene__element-qty {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.breakdown-scene__element-usage {
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 4px;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.breakdown-scene__element-usage--hero {
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
}

.breakdown-scene__element-usage--featured {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

.breakdown-scene__element-usage--background {
  background: rgba(156, 39, 176, 0.2);
  color: #9C27B0;
}

.breakdown-scene__element-usage--mentioned {
  background: rgba(96, 125, 139, 0.2);
  color: #607D8B;
}

/* Add element button */
.breakdown-scene__add-btn {
  display: block;
  width: 100%;
  padding: 6px 12px;
  margin-top: 8px;
  font-size: 0.7rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
}

.breakdown-scene__add-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================================================
 * ELEMENT PICKER MODAL
 * ========================================================================= */

.element-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.element-picker-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.element-picker {
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  background: #1E1E1E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.element-picker-overlay--visible .element-picker {
  transform: translateY(0);
}

.element-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.element-picker__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.element-picker__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
}

.element-picker__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Search and filter */
.element-picker__search {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.element-picker__search-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.element-picker__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.element-picker__search-input:focus {
  border-color: rgba(121, 85, 72, 0.5);
}

.element-picker__category-filter {
  padding: 8px 12px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  outline: none;
  cursor: pointer;
}

/* Element list */
.element-picker__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 200px;
  max-height: 300px;
}

.element-picker__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.element-picker__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.element-picker__item--selected {
  background: rgba(121, 85, 72, 0.2);
  border: 1px solid rgba(121, 85, 72, 0.4);
}

.element-picker__item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.element-picker__item-info {
  flex: 1;
  min-width: 0;
}

.element-picker__item-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.element-picker__item-category {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
}

.element-picker__empty {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* Link options */
.element-picker__options {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.element-picker__option-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.element-picker__option-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  min-width: 60px;
}

.element-picker__option-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.element-picker__option-input:focus {
  border-color: rgba(121, 85, 72, 0.5);
}

.element-picker__option-select {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.9);
  outline: none;
  cursor: pointer;
}

/* Actions */
.element-picker__actions {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.element-picker__btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.element-picker__btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.element-picker__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.element-picker__btn--primary {
  background: #795548;
  border: 1px solid #795548;
  color: white;
  flex: 1;
}

.element-picker__btn--primary:hover {
  background: #8D6E63;
  border-color: #8D6E63;
}

.element-picker__btn--primary:disabled {
  background: rgba(121, 85, 72, 0.3);
  border-color: rgba(121, 85, 72, 0.3);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

/* =========================================================================
 * CAST PANEL
 * ========================================================================= */

.cast-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.cast-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
  margin-bottom: 2px;
}

.cast-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cast-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cast-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cast-item__role {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-item__actor {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-item--assigned .cast-item__actor {
  color: rgba(76, 175, 80, 0.9);
}

.cast-item__status {
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 6px;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.cast-item__status--pending {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.cast-item__status--confirmed {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.cast-item__status--wrapped {
  background: rgba(96, 125, 139, 0.2);
  color: #607D8B;
}

/* =========================================================================
 * LOCATIONS PANEL
 * ========================================================================= */

.locations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
  margin-bottom: 2px;
}

.location-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.location-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.location-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-item__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-item__meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.location-item__status {
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 6px;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}
