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

html[data-theme="light"] {
  color-scheme: light;
  filter: invert(1) hue-rotate(180deg);
}

html[data-theme="light"] img,
html[data-theme="light"] video,
html[data-theme="light"] canvas,
html[data-theme="light"] svg {
  filter: invert(1) hue-rotate(180deg);
}

.pdf-mapper-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 280px minmax(0, 1fr);
}

.pdf-mapper-panel {
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.45);
  max-height: 34rem;
  overflow: auto;
}

.pdf-mapper-lobbie-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pdf-mapper-lobbie-item {
  border: 1px solid rgba(100, 116, 139, 0.6);
  border-radius: 0.6rem;
  padding: 0.45rem 0.55rem;
  background: rgba(15, 23, 42, 0.8);
  cursor: grab;
}

.pdf-mapper-preview-wrap {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.pdf-mapper-canvas-wrap {
  position: relative;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.35);
  overflow: auto;
  min-height: 24rem;
  padding: 0.5rem;
}

.pdf-mapper-overlay {
  position: absolute;
  pointer-events: auto;
  z-index: 10;
}

.pdf-map-drop-zone {
  position: absolute;
  border: 1px solid rgba(45, 212, 191, 0.75);
  background: rgba(45, 212, 191, 0.1);
  border-radius: 0.3rem;
}

.pdf-map-drop-zone.dragover {
  border-color: rgba(16, 185, 129, 1);
  background: rgba(16, 185, 129, 0.28);
}

.pdf-map-drop-zone.mapped {
  border-color: rgba(168, 85, 247, 1);
  background: rgba(168, 85, 247, 0.24);
}

.pdf-mapper-fields {
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.45);
  padding: 0.75rem;
  max-height: 34rem;
  overflow: auto;
}

@media (max-width: 1024px) {
  .pdf-mapper-grid {
    grid-template-columns: 1fr;
  }

  .pdf-mapper-preview-wrap {
    grid-template-columns: 1fr;
  }
}
