/* Atomenergieniveaus Calculator Styles */

.atomenergieniveaus-container {
  padding: 20px;
}

.energy-schema-panel,
.transitions-panel,
.spectra-panel {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.canvas-container {
  text-align: center;
  margin: 20px 0;
  overflow-x: auto;
}

.canvas-container canvas {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.controls .control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls label {
  font-weight: bold;
  white-space: nowrap;
}

.result-panel {
  background: #f8f9fa;
  border: 1px solid #e3f2fd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease-in;
}

.transition-details {
  margin: 15px 0;
}

.detail-row {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-row .label {
  font-weight: 600;
  color: #495057;
  min-width: 180px;
}

.detail-row .value {
  font-weight: bold;
  color: #0984e3;
}

.spectrum-color {
  margin-top: 20px;
  text-align: center;
}

.color-preview {
  width: 100px;
  height: 40px;
  margin: 10px auto;
  border-radius: 4px;
  border: 2px solid #ddd;
}

.energy-display {
  margin-top: 15px;
}

.energy-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0f8ff;
  border: 1px solid #d0e6f7;
  border-radius: 6px;
  padding: 8px 16px;
  margin: 5px;
}

.energy-value .n-level {
  font-weight: bold;
  color: #0984e3;
}

.energy-value .energy {
  color: #00b894;
}

.formula-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 10px 0;
  font-family: 'Times New Roman', serif;
}

.spectrum-selector {
  margin-bottom: 20px;
}

.spectrum-selector select {
  max-width: 300px;
}

.spectrum-info {
  background: #f0f8ff;
  border-left: 4px solid #0984e3;
  padding: 15px;
  margin: 15px 0;
}

.spectrum-wavelengths {
  margin-top: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid #dee2e6;
  padding: 10px;
  text-align: center;
}

.table th {
  background: #f8f9fa;
  font-weight: bold;
}

/* Info Cards */
.info-card {
  background: white;
  border-left: 4px solid #0984e3;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card h3 {
  color: #0984e3;
  margin-bottom: 15px;
}

.info-card h4 {
  color: #2c3e50;
  margin: 10px 0;
}

.info-card ul {
  padding-left: 20px;
  margin: 10px 0;
}

.info-card li {
  margin: 5px 0;
}

.emission-absorption h4 {
  color: #0984e3;
  margin-top: 15px;
}

/* Educational Content */
.educational-content {
  margin-top: 30px;
}

.educational-content p {
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .energy-schema-panel,
  .transitions-panel,
  .spectra-panel {
    padding: 15px;
  }
  
  .controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .detail-row .label {
    min-width: auto;
  }
  
  .energy-value {
    display: block;
    text-align: center;
  }
}