/* static/css/components/investment-calculator.css */
/* Investment Calculator Component */
.investment-calculator {
  padding: clamp(2rem, 8vw, 4rem) 0;
  padding-bottom: 0%;
  background: var(--bg-primary);
}

.investment-calculator__title {
  color: #FFF;
  text-align: center;
  font-family: var(--font-family);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.investment-calculator__container {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 8vw, 5rem);
  align-self: stretch;
}

/* Form Section */
.investment-calculator__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
  min-width: 320px;
}

/* Input Components */
.calculator-input {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.calculator-input__label {
  color: #F0FEFF;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.calculator-input__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calculator-input__field {
  display: flex;
  padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 4vw, 1.5rem);
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  border-radius: 42.328px;
  border: 0.847px solid #040548;
  background: radial-gradient(50.91% 97.54% at 50% 2.46%, #FFF 0%, #FFF 100%);
  box-shadow: 0px 17.778px 33.27px rgba(132, 0, 255, 0.33);
  
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 500;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

.calculator-input__field:focus {
  border-color: #EB1260;
  box-shadow: 0px 17.778px 33.27px rgba(235, 18, 96, 0.4);
}

.calculator-input__field::placeholder {
  color: #fff;
  font-weight: 400;
}

/* Dropdown Specific */
.calculator-input__field--dropdown {
  appearance: none;
  cursor: pointer;
  padding-right: 3rem;
}

.calculator-input__dropdown-icon {
  position: absolute;
  right: 1.5rem;
  color: #666;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.calculator-input__field--dropdown:focus + .calculator-input__dropdown-icon {
  transform: rotate(180deg);
}

/* Currency Selector */
.calculator-input__currency {
  position: absolute;
  right: 1rem;
  display: flex;
  align-items: center;
}

.calculator-input__currency-select {
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #EB1260;
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 1rem;
}

/* Period Selector */
.calculator-input__period {
  position: absolute;
  right: 1rem;
  display: flex;
  align-items: center;
}

.calculator-input__period-select {
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  outline: none;
  appearance: none;
}

/* Calculate Button */
.calculator-btn {
  display: flex;
  padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 4vw, 1.5rem);
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 42.328px;
  border: 0.847px solid #EB1260;
  background: radial-gradient(50.91% 97.54% at 50% 2.46%, #7B1B3D 0%, #EB1260 100%);
  
  color: #E3E1EB;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
  
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.calculator-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 20px 40px rgba(235, 18, 96, 0.4);
}

.calculator-btn:active {
  transform: translateY(0);
}

/* Exchange Rate Display */
.calculator-exchange {
  padding: 0.5rem 1rem;
  background: rgba(240, 254, 255, 0.1);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.calculator-exchange__text {
  color: #F0FEFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Chart Section */
.investment-calculator__chart {
  flex: 2;
  min-width: 0;
}

.calculator-chart {
  width: 100%;
  max-width: 800px;
  height: clamp(400px, 50vw, 528px);
  border-radius: 25.397px;
  border: 0.847px solid #EB1260;
  background: rgba(235, 18, 96, 0.15);
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calculator-chart__header {
  text-align: center;
}

.calculator-chart__profit-label {
  color: #FFF;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 500;
  margin: 0 0 0.5rem 0;
}

.calculator-chart__profit-amount {
  color: #FFF;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: normal;
  transition: all 0.3s ease;
}

.calculator-chart__container {
  flex: 1;
  position: relative;
  min-height: 300px;
}

#investment-chart {
  width: 100% !important;
  height: 100% !important;
}

/* Chart Legend */
.calculator-chart__legend {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.calculator-legend {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.calculator-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calculator-legend__indicator {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid;
}

.calculator-legend__indicator--investment {
  background: rgba(235, 18, 96, 0.15);
  border-color: rgba(235, 18, 96, 0.15);
}

.calculator-legend__indicator--return {
  background: #EB1260;
  border-color: #EB1260;
}

.calculator-legend__label {
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 700;
  line-height: normal;
}

/* Updated CSS for ellipsis and responsiveness */
.calculator-input__field--dropdown {
  appearance: none;
  cursor: pointer;
  padding-right: 3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Enhanced dropdown styling for better text handling */
.calculator-input__field--dropdown option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.5rem;
  color: #fff;
  background: #EB1260;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
  .calculator-input__field--dropdown {
      font-size: 0.875rem;
      padding-right: 2.5rem;
  }
  
  .calculator-input__dropdown-icon {
      right: 1rem;
  }
}

/* Currency and period selectors with ellipsis */
.calculator-input__currency-select,
.calculator-input__period-select {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
  margin-right: 16px;
}

/* Ensure proper text handling in all input fields */
.calculator-input__field {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calculator-input__field:focus {
  text-overflow: clip; /* Show full text when focused */
}

/* Updated CSS for 1/4 form, 3/4 chart layout */

/* Main container updates */
.investment-calculator__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.investment-calculator__top {
    display: grid;
    grid-template-columns: 2fr 3fr; /* 1/4 form, 3/4 chart */
    gap: 2rem;
    align-items: start;
}

.investment-calculator__bottom {
    width: 100%;
}

/* Form section adjustments for narrower width */
.investment-calculator__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 280px; /* Ensure minimum usable width */
}

/* Make form inputs more compact */
.calculator-input {
    margin-bottom: 1rem;
}

.calculator-input__label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.calculator-input__field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Compact details section */
.calculator-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

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

.calculator-details__item:last-child {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.calculator-details__label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.calculator-details__value {
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Monaco', monospace;
}

/* Chart section gets more space */
.investment-calculator__chart {
    flex: 1;
    min-height: 400px;
}

.calculator-chart {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.calculator-chart__container {
    flex: 1;
    min-height: 300px;
    position: relative;
}

/* Larger chart canvas for better visibility */
.calculator-chart__header {
    text-align: center;
    margin-bottom: 1rem;
}

.calculator-chart__profit-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calculator-chart__profit-amount {
    color: #FFD700;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Monaco', monospace;
}

/* Enhanced chart legend for larger space */
.calculator-chart__legend {
    margin-top: 1rem;
}

.calculator-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.calculator-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculator-legend__indicator {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.calculator-legend__indicator--low {
    background: linear-gradient(90deg, #87CEEB, #4682B4);
}

.calculator-legend__indicator--medium {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.calculator-legend__indicator--high {
    background: linear-gradient(90deg, #FF1270, #EB1260);
}

.calculator-legend__label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Summary section styles */
.calculator-summary {
    background: linear-gradient(135deg, rgba(255, 18, 112, 0.1), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 18, 112, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.calculator-summary__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calculator-summary__header h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.calculator-summary__badge {
    background: linear-gradient(45deg, #FF1270, #EB1260);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculator-summary__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.calculator-summary__item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-summary__label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.calculator-summary__value {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Monaco', monospace;
}

/* Yearly section styles */
.calculator-yearly {
    width: 100%;
}

.calculator-yearly__title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.calculator-yearly__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-yearly__grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 18, 112, 0.5) rgba(255, 255, 255, 0.1);
}

.calculator-yearly__grid::-webkit-scrollbar {
    height: 8px;
}

.calculator-yearly__grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.calculator-yearly__grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #FF1270, #FFD700);
    border-radius: 4px;
}

.calculator-yearly__grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #EB1260, #FFA500);
}

.calculator-yearly__scroll-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-align: center;
    font-style: italic;
    display: none;
}

/* Responsive design */
@media (max-width: 1200px) {
    .investment-calculator__top {
        grid-template-columns: 300px 1fr; /* Fixed width form on medium screens */
    }
}

@media (max-width: 1024px) {
    .investment-calculator__top {
        grid-template-columns: 1fr; /* Stack on tablets */
        gap: 2rem;
    }
    
    .calculator-chart__profit-amount {
        font-size: 2rem;
    }
    
    .calculator-summary__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .investment-calculator__form {
        min-width: unset;
    }
    
    .calculator-summary {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .calculator-summary__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculator-yearly__scroll-hint {
        display: block;
    }
    
    .calculator-legend {
        gap: 1rem;
    }
    
    .calculator-legend__label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .investment-calculator__container {
        gap: 2rem;
    }
    
    .calculator-summary__header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .calculator-chart__profit-amount {
        font-size: 1.8rem;
    }
}

/* Enhanced input styling for narrower form */
.calculator-input__wrapper {
    position: relative;
}

.calculator-input__currency {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.calculator-input__currency-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.calculator-input__dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.calculator-input__info {
    margin-top: 0.5rem;
}

.calculator-input__range {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Exchange display */
.calculator-exchange {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.calculator-exchange__text {
    color: #FFD700;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .investment-calculator__container {
      gap: 3rem;
      flex-direction: column;
  }
  
  
  .investment-calculator__form {
      min-width: 90%;
      width: 100% ;
  }
}

@media (min-width:1024px) {
  .calculator-btn {
    width: max-content;
  }
}

@media (max-width: 1024px) {
  .investment-calculator__container {
      flex-direction: column;
      gap: 2rem;
  }
  
  .investment-calculator__form {
      min-width: 90%;
      overflow: hidden;
      width: 100%;
  }
  
  .calculator-chart {
      height: 400px;
  }


}

/* Add to static/css/components/investment-calculator.css */

.calculator-details {
  margin: 1rem 0;
  padding: 1rem;
  background: radial-gradient(50.91% 97.54% at 50% 2.46%, #11127C 0%, #040548 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-details__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.calculator-details__item:last-child {
  margin-bottom: 0;
}

.calculator-details__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.calculator-details__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #EB1260;
}

.calculator-input__info {
  margin-top: 0.25rem;
}

.calculator-input__range {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Chart Styling to Match Design */
.calculator-chart {
  width: 100%;
  max-width: 800px;
  height: clamp(400px, 50vw, 528px);
  border-radius: 25px;
  border: 1px solid #EB1260;
  background: linear-gradient(135deg, rgba(123, 27, 61, 0.4) 0%, rgba(75, 16, 38, 0.6) 100%);
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.calculator-chart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(235, 18, 96, 0.08);
  border-radius: 25px;
  pointer-events: none;
}

.calculator-chart__profit-amount {
  color: #FFF;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: normal;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dotted underline for profit amount */
.calculator-chart__profit-amount::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: repeating-linear-gradient(
      to right,
      #fff 0,
      #fff 4px,
      transparent 4px,
      transparent 8px
  );
  opacity: 0.6;
}

.calculator-chart__container {
  flex: 1;
  position: relative;
  min-height: 300px;
  z-index: 2;
}

/* Legend styling to match design */
.calculator-legend__indicator--investment {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(123, 27, 61, 0.8);
  border: none;
}

.calculator-legend__indicator--return {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #EB1260;
  border: none;
}

.calculator-legend {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.calculator-legend__label {
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  line-height: normal;
}

/* Theme Variants */
[data-theme="light"] .investment-calculator {
  background: var(--light-bg-primary);
}

[data-theme="light"] .investment-calculator__title {
  color: var(--light-text-primary);
}

[data-theme="light"] .calculator-input__label {
  color: var(--light-text-primary);
}

[data-theme="light"] .calculator-exchange__text {
  color: var(--light-text-secondary);
}

[data-theme="light"] .calculator-chart__profit-label,
[data-theme="light"] .calculator-chart__profit-amount,
[data-theme="light"] .calculator-legend__label {
  color: var(--light-text-primary);
}

/* Monthly Returns Section */
.calculator-monthly {
  
  padding: 1.25rem;
  background: radial-gradient(50.91% 97.54% at 50% 2.46%, #11127C 0%, #040548 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-monthly__title {
  color: #F0FEFF;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
}

.calculator-monthly__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.calculator-monthly__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.calculator-monthly__item:hover {
  background: rgba(235, 18, 96, 0.1);
  border-color: rgba(235, 18, 96, 0.3);
}

.calculator-monthly__month {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.calculator-monthly__amount {
  font-size: 0.875rem;
  font-weight: 700;
  color: #EB1260;
  line-height: 1.2;
}

.calculator-monthly__year {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Enhanced Investment Details for Central Service */
.calculator-details__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-details__item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.calculator-details__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.calculator-details__value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #EB1260;
  text-align: right;
}

/* Loading state */
.calculator-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.calculator-loading__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #EB1260;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Better disabled field styling */
.calculator-input__field[readonly],
.calculator-input__field[disabled] {
  background: rgba(255, 255, 255, 0.8);
  color: var(--light-text-primary);
  cursor: not-allowed;
}

.calculator-input__period-select[disabled] {
  color: #999;
  cursor: not-allowed;
}

/* Enhanced chart header */
.calculator-chart__profit-label {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .calculator-details {
    margin: 1.5rem 0;
    padding: 1.25rem;
  }
  
  .calculator-details__item {
    margin-bottom: 1rem;
  }
  
  .calculator-details__label,
  .calculator-details__value {
    font-size: 0.8rem;
  }
  
  .calculator-chart__profit-amount {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }
  
  .calculator-monthly {
    padding: 1rem;
  }
  
  .calculator-monthly__title {
    font-size: 0.9rem;
  }
  
  .calculator-monthly__grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    max-height: 180px;
  }
  
  .calculator-monthly__item {
    padding: 0.5rem;
  }
  
  .calculator-monthly__month {
    font-size: 0.7rem;
  }
  
  .calculator-monthly__amount {
    font-size: 0.8rem;
  }
}

/* NEW: Storage Compute indicator styles */
.source-storage-compute {
    background: linear-gradient(135deg, #7C3AED, #5B21B6) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3) !important;
}

.calculator-summary__badge {
    transition: all 0.3s ease;
}

/* NEW: Unit Input Controls */
.unit-input-wrapper {
    display: flex;
    align-items: center;
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #FFF 0%, #FFF 100%);
    border: 0.847px solid #040548;
    border-radius: 42.328px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0px 17.778px 33.27px rgba(132, 0, 255, 0.33);
    width: 100%;
}

.unit-input-wrapper:focus-within {
    border-color: #EB1260;
    box-shadow: 0px 17.778px 33.27px rgba(235, 18, 96, 0.4);
}

.unit-btn {
    background: rgba(235, 18, 96, 0.1);
    border: none;
    color: #666;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.unit-btn:hover {
    background: rgba(235, 18, 96, 0.2);
    color: #EB1260;
    transform: scale(1.05);
}

.unit-btn:active {
    transform: scale(0.95);
}

.unit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.unit-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: center;
    outline: none;
    width: 100%;
}

.unit-input-wrapper input::placeholder {
    color: #999;
    font-weight: 500;
}

.unit-multiplier {
    color: #9CA3AF;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.total-investment {
    color: #EB1260;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.calculator-input__description {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Fix calculator input wrapper to not override unit input */
.calculator-input__wrapper:has(.unit-input-wrapper) {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

#investment-units {
  color: #fff !important;
}