/* ==========================================================================
   DAWN OF TITANS DATABASE - MODAL & ALERT DIALOG STYLES
   ========================================================================== */

#MODAL_CONTAINER {
  background-color: rgba(4, 7, 12, 0.85);
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInModal 0.2s ease-out forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

#ALERT_BOX {
  background: linear-gradient(180deg, #121824 0%, #0d121c 100%);
  border: 1px solid rgba(229, 184, 105, 0.4);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(229, 184, 105, 0.15);
  position: relative !important;
  top: auto !important;
  left: auto !important;
  max-width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  animation: popInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popInModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#ALERT_BOX h1 {
  background: linear-gradient(90deg, rgba(229, 184, 105, 0.15) 0%, rgba(22, 31, 48, 0.6) 100%);
  border-bottom: 1px solid rgba(229, 184, 105, 0.25);
  border-radius: 12px 12px 0 0;
  color: #e5b869;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
}

#ALERT_BOX p {
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  max-height: calc(85vh - 70px);
  overflow-y: auto;
  margin: 0;
  padding: 16px 20px 20px;
  word-wrap: break-word;
}

#CLOSE_BUTTON {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 12px;
  height: 28px;
  width: 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  z-index: 10;
}

#CLOSE_BUTTON:hover {
  color: #f8fafc;
  background: rgba(244, 63, 94, 0.8);
  border-color: rgba(244, 63, 94, 1);
  transform: scale(1.05);
}

.link,
.link:visited {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.link:hover {
  color: #7dd3fc;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Modal Form Controls */
#ALERT_BOX input[type="checkbox"] {
  accent-color: #e5b869;
  cursor: pointer;
  margin-right: 6px;
  vertical-align: middle;
}

#ALERT_BOX select {
  background: #151e30;
  color: #f8fafc;
  border: 1px solid #2a3b59;
  border-radius: 6px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  margin: 4px 0;
}

#ALERT_BOX select:focus {
  border-color: #e5b869;
}

#ALERT_BOX label {
  display: block;
  margin: 6px 0;
  cursor: pointer;
  color: #cbd5e1;
}

#ALERT_BOX label:hover {
  color: #f8fafc;
}
