/* NVIDIA Style View Modal */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(4, 6, 6, 0.76), rgba(3, 5, 5, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(16px) saturate(120%);
}

.modal {
  background:
    linear-gradient(180deg, rgba(18, 23, 23, 0.92), rgba(10, 14, 14, 0.96)),
    rgba(10, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.modalStandalone {
  width: 100%;
  max-width: 1120px;
  max-height: none;
  min-height: 0;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.closeButton {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1;
}

.closeButton:hover {
  background: rgba(118, 185, 0, 0.12);
  border-color: rgba(118, 185, 0, 0.35);
  color: #ffffff;
}

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.contentStandalone {
  overflow: visible;
}

.section {
  margin-bottom: 1.15rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-md) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

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

.sectionTitle {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.65rem;
}

/* Fields Grid */
.fieldsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field.fullWidth {
  grid-column: 1 / -1;
}

.fieldLabel {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fieldValue {
  font-size: 0.9375rem;
  color: #ffffff;
  padding: 0.95rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  min-height: 3rem;
  display: block;
  line-height: 1.6;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Footer */
.footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.01);
}

.closeFooterButton,
.editFooterButton {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.primaryFooterButton {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(118, 185, 0, 0.48);
  background: linear-gradient(180deg, rgba(118, 185, 0, 0.88), rgba(118, 185, 0, 0.72));
  color: #021502;
  box-shadow: 0 10px 24px rgba(118, 185, 0, 0.22);
}

.primaryFooterButton:hover {
  background: linear-gradient(180deg, rgba(141, 211, 19, 0.94), rgba(118, 185, 0, 0.78));
  box-shadow: 0 12px 28px rgba(118, 185, 0, 0.26);
}

.primaryFooterButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.closeFooterButton {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.86);
}

.closeFooterButton:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.editFooterButton {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.editFooterButton:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(118, 185, 0, 0.34);
}

/* Responsive */
@media (max-width: 768px) {
  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .fieldsGrid {
    grid-template-columns: 1fr;
  }

  .field.fullWidth {
    grid-column: 1;
  }

  .header {
    padding: 1rem;
  }

  .content {
    padding: 1rem;
  }

  .footer {
    padding: 1rem;
  }
}
