/* static/css/components/investment-detail-calculator.css */
/* Investment Detail Calculator Component */
.investment-detail-calculator {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 16px;
  border: 1px solid #EB1260;
  background: #44094F;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -2px rgba(0, 0, 0, 0.10);
  max-width: 100%;
}

.investment-detail-calculator__header {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.investment-detail-calculator__title {
  color: #FFF;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* Pledged Section */
.investment-detail-calculator__pledged {
  display: flex;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  border-radius: 16px;
  border: 1px solid #F3F4F6;
  background: #F9FAFB;
  margin-bottom: 1rem;
}

.investment-detail-calculator__amount {
  color: #2E0013;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.investment-detail-calculator__label {
  color: #6B7280;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
}

/* Stats Grid */
.investment-detail-calculator__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 2vw, 0.75rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.investment-detail-calculator__stat {
  display: inline-flex;
  padding: clamp(8px, 2vw, 13px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  border-radius: 16px;
  border: 1px solid #F3F4F6;
  background: #F9FAFB;
}

.investment-detail-calculator__stat-value {
  color: #2E0013;
  font-family: Poppins, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.investment-detail-calculator__stat-label {
  color: #6B7280;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.625rem, 1.5vw, 0.875rem);
  font-weight: 500;
  line-height: 1.5;
}

/* Progress Section */
.investment-detail-calculator__progress-section {
  margin-bottom: 1rem;
}

.investment-detail-calculator__progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.investment-detail-calculator__progress-label {
  color: #EB1260;
  font-family: Inter, sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 500;
  line-height: 1.4;
}

.investment-detail-calculator__progress-percentage {
  color: #E3E1EB;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
}

.investment-detail-calculator__progress-bar {
  height: 12px;
  border-radius: 9999px;
  background: #E5E7EB;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.investment-detail-calculator__progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: #E90076;
  transition: width 1s ease-in-out;
}

/* End Date */
.investment-detail-calculator__end-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #E3E1EB;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Minimum Investment */
.investment-detail-calculator__minimum {
  display: inline-flex;
  padding: 10px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid #F3F4F6;
  background: #F9FAFB;
  margin-bottom: 1rem;
  color: #2E0013;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
  width: 100%;
}

.investment-detail-calculator__minimum-amount {
  color: #E90076;
  font-weight: 600;
}

/* Actions */
.investment-detail-calculator__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Calculator Form */
.investment-detail-calculator__form {
  margin: 1rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 12px;
  border: 1px solid #E90076;
  background: rgba(233, 0, 118, 0.05);
}

.investment-detail-calculator__form-group {
  margin-bottom: 1rem;
}

.investment-detail-calculator__form-label {
  display: block;
  color: #E3E1EB;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.investment-detail-calculator__form-input,
.investment-detail-calculator__form-select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #2E0013;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.875rem, 2vw, 1rem);
  transition: border-color var(--transition-base);
}

.investment-detail-calculator__form-input:focus,
.investment-detail-calculator__form-select:focus {
  outline: none;
  border-color: #E90076;
}

/* Results */
.investment-detail-calculator__results {
  margin-top: 1rem;
}

.investment-detail-calculator__result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.investment-detail-calculator__result-item--highlight {
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #E90076;
}

.investment-detail-calculator__result-label {
  color: #E3E1EB;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 400;
}

.investment-detail-calculator__result-value {
  color: #E90076;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
}

.investment-detail-calculator__result-item--highlight .investment-detail-calculator__result-value {
  color: #00D4AA;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* Security */
.investment-detail-calculator__security {
  color: #E3E1EB;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Provider */
.investment-detail-calculator__provider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.investment-detail-calculator__avatar {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 9999px;
  background: #E5E7EB;
  color: #2E0013;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.investment-detail-calculator__provider-info {
  flex: 1;
}

.investment-detail-calculator__provider-name {
  color: #EB1260;
  font-family: Inter, sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  line-height: 1.4;
}

.investment-detail-calculator__provider-type {
  color: #E3E1EB;
  font-family: Inter, sans-serif;
  font-size: clamp(0.625rem, 1.5vw, 0.75rem);
  font-weight: 400;
  line-height: 1.3;
}

/* Add these styles to your existing CSS file */

/* Button active state */
.btn--active {
  background-color: #E90076 !important;
  color: white !important;
  border-color: #E90076 !important;
}

/* Form animation styles */
.investment-detail-calculator__form {
  margin: 1rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 12px;
  border: 1px solid #E90076;
  background: rgba(233, 0, 118, 0.05);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Smooth transitions for form elements */
.investment-detail-calculator__form-input:focus,
.investment-detail-calculator__form-select:focus {
  outline: none;
  border-color: #E90076;
  box-shadow: 0 0 0 3px rgba(233, 0, 118, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Result highlighting */
.investment-detail-calculator__result-value {
  transition: color 0.3s ease;
}

/* Loading state (optional) */
.investment-detail-calculator__form--loading {
  opacity: 0.7;
  pointer-events: none;
}