/**
 * Cost of Ownership Calculator Styles
 */

.calculator-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  color: #f4f4f4;
}

.calculator-header {
  text-align: center;
  margin-bottom: 40px;
}

.calculator-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator-header .subtitle {
  color: #888;
  font-size: 1.1rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 40px;
}

.input-section,
.results-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
}

.input-section h2,
.results-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 500;
}

.input-field {
  width: 100%;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
}

.input-field:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field:hover {
  border-color: #555;
}

.calculate-btn,
.reset-btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.calculate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 10px;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.reset-btn {
  background: #333;
  color: #fff;
}

.reset-btn:hover {
  background: #444;
  transform: translateY(-2px);
}

/* Results */
.results-container {
  min-height: 200px;
}

.results-placeholder {
  text-align: center;
  color: #888;
  padding: 40px;
}

.comparison-card {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.comparison-card.tesla {
  border-left: 4px solid #e31937;
}

.comparison-card.ice {
  border-left: 4px solid #888;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comparison-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.comparison-title.tesla {
  color: #e31937;
}

.total-cost {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #1a1a1a;
  border-radius: 6px;
}

.cost-label {
  color: #aaa;
  font-size: 0.9rem;
}

.cost-value {
  color: #fff;
  font-weight: bold;
}

.savings-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: bold;
}

.savings-badge.negative {
  background: linear-gradient(135deg, #e31937 0%, #8b0000 100%);
}

.chart-container {
  margin-top: 30px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
}

.summary-container {
  margin-top: 30px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
}

.summary-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

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

.summary-label {
  color: #aaa;
}

.summary-value {
  color: #fff;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .cost-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .calculator-header h1 {
    font-size: 2rem;
  }

  .input-section,
  .results-section {
    padding: 20px;
  }
}

