/* ==============================================================================
   MicroTec LLC - Screen & Viewport Diagnostics Modal Styles
   Extracted & optimized from Screen_Viewport_Diagnostics_Modal__styles.css
   ============================================================================== */

/* Diagnostics Modal Dialog Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.modal-card {
  background: #0d1527;
  border: 1px solid var(--laser-cyan, #00e5ff);
  border-radius: 18px;
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 229, 255, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: scale(0.9) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laser-cyan, #00e5ff);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #ff2a85;
}

/* Modal Body & Diagnostic Rows */
.diag-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.diag-label {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.diag-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--laser-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Modal Footer & Buttons */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.nav-return-btn {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--laser-cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.nav-return-btn:hover {
  background: var(--laser-cyan, #00e5ff);
  color: #000000;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

/* Footer Trigger Button */
.diag-trigger-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim, #475569);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: all 0.2s ease;
  opacity: 0.45;
  user-select: none;
}

.diag-trigger-btn:hover,
.diag-trigger-btn:focus {
  opacity: 1;
  color: var(--laser-cyan, #00e5ff);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
  outline: none;
}
