/* Main Container */
.bloghash-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 980px;
  margin: 30px auto;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Section */
.calculator-header {
  background: linear-gradient(135deg, #0a7d3b 0%, #0d9947 100%);
  color: white;
  padding: 35px 30px;
  text-align: center;
  position: relative;
}

.header-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  backdrop-filter: blur(10px);
}

.header-icon svg {
  color: white;
}

.calculator-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
  font-weight: 400;
}

/* Body - Desktop Two Column Layout */
.calculator-body {
  padding: 35px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Input Section */
.input-section {
  padding-right: 20px;
  border-right: 2px solid #e2e8f0;
}

.field {
  margin-bottom: 32px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.field label {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  display: block;
}

.field-value {
  font-size: 16px;
  font-weight: 700;
  color: #0a7d3b;
  background: #e8f5e9;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Range Input Styling */
input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a7d3b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 125, 59, 0.3);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #0d9947;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(10, 125, 59, 0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a7d3b;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(10, 125, 59, 0.3);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #0d9947;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(10, 125, 59, 0.4);
}

.field-range {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.field-range span {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
}

/* Results Section */
.results-section {
  background: #f8fafb;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 20px;
}

/* EMI Highlight */
.emi-highlight {
  text-align: center;
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #0a7d3b 0%, #0d9947 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 8px 20px rgba(10, 125, 59, 0.25);
}

.emi-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.emi-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Breakdown Container */
.breakdown-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.breakdown-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 280px;
  max-height: 280px;
  margin: 0 auto;
}

.breakdown-chart canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Detail Items */
.breakdown-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.detail-icon.principal {
  background: #0a7d3b;
  box-shadow: 0 2px 8px rgba(10, 125, 59, 0.3);
}

.detail-icon.interest {
  background: #ff9f1c;
  box-shadow: 0 2px 8px rgba(255, 159, 28, 0.3);
}

.detail-item.total {
  border: 2px solid #0a7d3b;
  background: #e8f5e9;
}

.detail-icon.total-icon {
  background: #0a7d3b;
  box-shadow: 0 2px 8px rgba(10, 125, 59, 0.3);
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.detail-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.detail-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.detail-item.total .detail-value {
  color: #0a7d3b;
}

/* Responsive Design - Tablet and Mobile */
@media (max-width: 968px) {
  .calculator-body {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .input-section {
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 30px;
  }
  
  .results-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .bloghash-card {
    margin: 20px 10px;
  }
  
  .calculator-header {
    padding: 25px 20px;
  }
  
  .calculator-header h2 {
    font-size: 24px;
  }
  
  .calculator-body {
    padding: 25px 20px;
  }
  
  .results-section {
    padding: 20px;
  }
  
  .breakdown-chart {
    max-width: 220px;
    max-height: 220px;
  }
  
  .emi-amount {
    font-size: 36px;
  }
  
  .detail-item {
    padding: 14px;
  }
  
  .detail-value {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .calculator-header h2 {
    font-size: 20px;
  }
  
  .subtitle {
    font-size: 13px;
  }
  
  .emi-amount {
    font-size: 32px;
  }
  
  .field-value {
    font-size: 14px;
    padding: 4px 12px;
  }
  
  .breakdown-chart {
    max-width: 200px;
    max-height: 200px;
  }
}
.emi-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
}

.emi-table th,
.emi-table td {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
}

.emi-table th {
  background: #f4f6f8;
  text-align: left;
  font-weight: 600;
}

.emi-table td:last-child {
  font-weight: 700;
  color: #0a7d3b;
}
