/* Path: style/css/new-project-modal.css */
.np-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250000;
  padding: 18px;
}

.np-overlay.visible {
  display: flex;
}

.np-modal {
  width: min(720px, 94vw);
  background: #1e1f24;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  font-family: "Poppins", sans-serif;
}

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

.np-title {
  font-weight: 700;
  font-size: 15px;
  opacity: 0.95;
}

.np-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.np-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.np-warning {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.np-mode {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.np-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  opacity: 0.92;
}

.np-radio input {
  accent-color: #36d3ff;
}

.np-section {
  margin-bottom: 14px;
}

.np-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.np-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.np-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-field-wide {
  margin-top: 10px;
}

.np-field label {
  font-size: 12px;
  opacity: 0.8;
}

.np-field input[type=number],
.np-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 12px;
  outline: none;
}

.np-field input[type=number]:focus,
.np-field select:focus {
  border-color: rgba(54, 211, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(54, 211, 255, 0.14);
}

.np-muted {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 6px;
}

.np-small {
  font-size: 11px;
  opacity: 0.65;
}

.np-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.np-maps {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.np-map {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  cursor: pointer;
  width: 100px;
  transition: transform 0.08s ease, border-color 0.08s ease;
}

.np-map:hover {
  transform: translateY(-1px);
  border-color: rgba(54, 211, 255, 0.35);
}

.np-map.selected {
  border-color: rgba(54, 211, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(54, 211, 255, 0.12);
}

.np-map canvas {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  image-rendering: pixelated;
  /* critical */
}

.np-map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.75;
}

.np-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.np-btn {
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}

.np-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.np-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.np-btn-primary {
  background: #36d3ff;
  color: #000;
}

.np-btn-primary:hover {
  filter: brightness(1.05);
}