/* ===== VIEW DISTANCE CALCULATOR ===== */
.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.input-panel {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.result-panel {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: sticky;
  top: 2rem;
  height: fit-content;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}
.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.slider-value {
  min-width: 80px;
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 8px;
  background: #363636;
  border-radius: 4px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.chunk-display {
  text-align: center;
  margin-bottom: 2rem;
}
.chunk-amount {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.chunk-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.breakdown-chart {
  margin: 1.5rem 0;
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--background);
  border-radius: 6px;
  border-left: 4px solid var(--primary);
  cursor: default;
}
.breakdown-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.breakdown-value {
  color: var(--primary);
  font-weight: 600;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  transition: width 0.3s ease;
}
.server-type-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}
.recommendations {
  margin-top: 1.5rem;
}
.recommendations h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}
.recommendations ul {
  list-style: none;
  padding: 0;
}
.recommendations li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.recommendations li:last-child {
  border-bottom: none;
}
.estimate-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem;
  background: var(--background);
  border-radius: 4px;
  border-left: 3px solid var(--text-secondary);
}
.performance-warning {
  background: var(--error);
  color: white;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  border-left: 4px solid #ff4444;
}
.performance-good {
  background: #15803d;
  color: white;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  border-left: 4px solid #166534;
}
.performance-warning h4,
.performance-good h4 {
  margin: 0 0 0.5rem 0;
  color: white;
}
/* ===== RESPONSIVE: VIEW DISTANCE CALCULATOR ===== */
@media (max-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calculator-container {
    padding: 1rem;
  }
  .input-panel,
  .result-panel {
    padding: 1rem;
  }
  .chunk-amount {
    font-size: 2rem;
  }
  .ram-amount {
    font-size: 2.2rem;
  }
} 