.calculator-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

.calculator-layout {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.calculator-header {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.calculator-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.calculator-description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.calculator-interface {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
}

.input-section h3,
.results-section h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 0.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.unit-label {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-top: 0.25rem;
  display: block;
}

.calculate-btn {
  width: 100%;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.result-group {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
}

.result-group h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 500;
  color: #34495e;
}

.result-value {
  font-weight: 700;
  color: #2c3e50;
  font-family: 'Monaco', 'Consolas', monospace;
}

.diagram-container {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.diagram-container h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.formula-section,
.pulse-shapes-section,
.laser-types-section,
.applications-section {
  padding: 2rem 3rem;
  border-top: 1px solid #e9ecef;
}

.formula-section h3,
.pulse-shapes-section h3,
.laser-types-section h3,
.applications-section h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 0.5rem;
}

.formula-group {
  margin-bottom: 2rem;
}

.formula-group h4 {
  color: #34495e;
  margin-bottom: 1rem;
}

.formula {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.shapes-grid,
.types-grid,
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.shape-item,
.type-item,
.application-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #f39c12;
}

.shape-item h4,
.type-item h4,
.application-item h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.shape-description p,
.type-specs p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.shape-description strong,
.type-specs strong {
  color: #e74c3c;
}

.breadcrumb-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .current {
  color: white;
  font-weight: 500;
}

.separator {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .calculator-interface {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .calculator-title {
    font-size: 2rem;
  }
  
  .shapes-grid,
  .types-grid,
  .applications-grid {
    grid-template-columns: 1fr;
  }
  
  .formula-section,
  .pulse-shapes-section,
  .laser-types-section,
  .applications-section {
    padding: 1.5rem 2rem;
  }
}
