/**
 * BV vs Eenmanszaak Calculator Styles
 */

.bvec-calculator-wrapper {
  max-width: 900px;
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
}

.bvec-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Input Section */
.bvec-input-section {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.bvec-input-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.25rem;
}

.bvec-form-row {
  margin-bottom: 1rem;
}

.bvec-form-group {
  margin-bottom: 1rem;
}

.bvec-form-group label {
  display: block;
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.bvec-form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.bvec-form-group input[type="number"]:focus {
  outline: none;
  border-color: #d43434;
}

.bvec-hint {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 400;
}

/* Toggle Buttons */
.bvec-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .bvec-toggles {
    grid-template-columns: 1fr;
  }
}

.bvec-toggle-group {
  display: flex;
  gap: 0.5rem;
}

.bvec-toggle-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.bvec-toggle-btn:hover {
  border-color: #d43434;
  color: #d43434;
}

.bvec-toggle-btn.active {
  background: #d43434;
  border-color: #d43434;
  color: #fff;
}

/* Tip Box */
.bvec-tip {
  background: #f7fafc;
  border-left: 3px solid #d43434;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #4a5568;
  margin-top: 1rem;
}

.bvec-tip strong {
  color: #d43434;
}

/* Results Section */
.bvec-results-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .bvec-results-section {
    grid-template-columns: 1fr;
  }
}

.bvec-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.bvec-result-card.bvec-winner {
  border-color: #22c55e;
  background: linear-gradient(to bottom, #fff, #f0fdf4);
}

.bvec-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.bvec-result-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.bvec-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bvec-badge-voordeliger {
  background: #dcfce7;
  color: #16a34a;
}

.bvec-result-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bvec-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.bvec-label {
  color: #4a5568;
}

.bvec-value {
  font-weight: 500;
  color: #1a1a1a;
  font-family: "SF Mono", Monaco, monospace;
}

.bvec-result-row.bvec-deduction .bvec-value {
  color: #22c55e;
}

.bvec-result-row.bvec-tax .bvec-value {
  color: #ef4444;
}

.bvec-result-row.bvec-credit .bvec-value {
  color: #16a34a;
}

.bvec-result-row.bvec-spacer {
  height: 0.5rem;
}

.bvec-result-row.bvec-subtotal {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  font-weight: 600;
}

.bvec-result-row.bvec-subtotal .bvec-value {
  font-weight: 700;
}

.bvec-result-row.bvec-total {
  border-top: 2px solid #e2e8f0;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.bvec-result-row.bvec-total .bvec-label {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.bvec-result-row.bvec-total .bvec-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d43434;
}

/* BV specific styling */
.bvec-bv .bvec-result-header h3 {
  color: #4a5568;
}
