
/* modals.css - Xahau Testnet Portal Modal Theme (Themed to match main site) */

/* Overlay */
.modal-overlay, #manualEntryModal, #fundAccountModal, #trustLineModal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 42, 0.92); /* match evernode-blue-dark, more opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.hidden {
  display: none !important;
}

/* Modal Box */
.modal-box {
  background: var(--evernode-blue);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px #0a142f88;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--xahau-yellow);
  font-family: 'Share Tech Mono', monospace, 'Courier New', Courier;
  border: 2px solid var(--xahau-yellow);
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--xahau-yellow);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #0a254f44;
}
.modal-close {
  background: none;
  border: none;
  color: var(--xahau-yellow);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}
.modal-close:hover {
  color: #fff;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.modal-btn {
  flex: 1;
  padding: 0.75rem 0;
  border-radius: 0.7em;
  border: 2px solid var(--xahau-yellow);
  font-weight: bold;
  font-size: 1.08rem;
  font-family: 'Share Tech Mono', monospace;
  background: var(--evernode-blue);
  color: var(--xahau-yellow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 0 8px #0a142f44;
}
.modal-btn-primary {
  background: var(--xahau-yellow);
  color: var(--evernode-blue);
  border-color: var(--xahau-yellow);
}
.modal-btn-primary:hover {
  background: #fffde4;
  color: var(--evernode-blue);
  box-shadow: 0 0 12px #fefe5d88;
}
.modal-btn-accent {
  background: var(--evernode-blue);
  color: var(--xahau-yellow);
  border-color: var(--xahau-yellow);
}
.modal-btn-accent:hover {
  background: var(--xahau-yellow);
  color: var(--evernode-blue);
  box-shadow: 0 0 12px #fefe5d88;
}

/* Inputs */
.modal-box input,
.modal-box select {
  width: 100%;
  background: var(--evernode-blue-dark);
  border: 1.5px solid var(--xahau-yellow);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--xahau-yellow);
  margin-bottom: 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.05rem;
}

.modal-box label {
  color: var(--xahau-yellow);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  font-family: 'Share Tech Mono', monospace;
}

/* Preview/Info Boxes */
.modal-preview, .modal-info {
  background: var(--evernode-blue-dark);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--xahau-yellow);
  color: var(--xahau-yellow);
  font-family: 'Share Tech Mono', monospace;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-box {
    max-width: 80%;
    padding: 1rem 0.5rem;
  }
}
