/**
 * Styles for Advanced Tools: 3D Orbitals, Isotopes, Compounds, & Calculators
 */

/* 3D WebGL Orbital Canvas Container */
.orbital-container {
  width: 100%;
  height: 240px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#OrbitalCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.orbital-controls {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
}

/* Isotopes List & Decay Badges */
.isotope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.isotope-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  font-size: 12px;
}

.decay-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.decay-stable { background: #dcfce7; color: #166534; }
.decay-beta-minus { background: #dbeafe; color: #1e40af; }
.decay-beta-plus { background: #fee2e2; color: #991b1b; }
.decay-alpha { background: #fef3c7; color: #92400e; }
.decay-neutron { background: #f3e8ff; color: #6b21a8; }
.decay-fission { background: #ffedd5; color: #9a3412; }

/* Compound Mixer Interface */
.compound-mixer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
}

.selected-element-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--active-tab-color);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.selected-element-badge button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.compound-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.compound-card {
  padding: 10px;
  border-radius: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compound-formula {
  font-size: 15px;
  font-weight: 800;
  color: var(--active-tab-color);
}

.compound-names {
  font-size: 12px;
  color: var(--text-muted);
}

/* Modals (Tools: Equation Balancer & Comparison) */
.ptable-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ptable-modal-overlay.active {
  display: flex;
}

.ptable-modal-box {
  background: var(--surface-card);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-top: 6px;
  background: var(--body-bg);
  color: var(--text-main);
}

.modal-btn-submit {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border: none;
  background: var(--active-tab-color);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.15s ease;
}

.modal-btn-submit:hover {
  opacity: 0.9;
}

/* Radar Chart Comparison Box */
.radar-chart-container {
  width: 100%;
  height: 320px;
  position: relative;
  margin-top: 15px;
}
