/* Minimalist Design for Hydroponic ROI Calculator */

/* Base Styling */
body {
  background-color: var(--dark-blue);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* Main Calculator Container - Removed exterior container */
/* Commented out to remove container styling
.calculator-main-container {
  background-color: var(--dark-blue);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}
*/

.calculator-body {
  background-color: var(--dark-blue);
  padding: 2rem !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.fw-light {
  font-weight: 300 !important;
}

.fw-bold {
  font-weight: 600 !important;
}

/* Container Adjustments */
.container {
  max-width: 1000px;
  padding: 0 1.5rem;
}

/* Spacing */
.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Card Styling */
.card {
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.5rem;
}

/* Badge Styling */
.badge.bg-success {
  background-color: var(--green) !important;
}

.badge.bg-secondary {
  background-color: var(--gray-1) !important;
  color: var(--white);
}

/* Form Inputs */
.form-control,
select.custom-select,
select.form-select {
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  color: var(--dark-blue);
  transition: all 0.2s;
}

/* Override white text color for inputs in dark areas */
.calculator-body .form-control,
.calculator-body select.custom-select,
.calculator-body select.form-select,
.calculator-body .input-group-text,
.calculator-body label,
.calculator-body .form-label,
.calculator-body .form-check-label {
  color: var(--dark-blue) !important;
  background-color: white !important;
}

/* Fix produce selection text color */
.produce-item-card label {
  color: var(--dark-blue) !important;
}

/* Allocation sliders labels should be white */
.produce-allocation-sliders .slider-label {
  color: var(--white) !important;
  background: transparent !important;
}

.form-control:focus,
select.custom-select:focus,
select.form-select:focus {
  background-color: white;
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(0, 145, 0, 0.15);
}

/* Range Sliders Styling */
input[type=range] {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  outline: none !important;
  height: 4px;
}

input[type=range]::-webkit-slider-thumb {
  background-color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Budget amount text */
.budget-amount,
.slider-value,
.form-text,
#budget-value,
.budget-display,
#total-budget,
.text-center strong,
.badge span {
  color: white !important;
  background: transparent !important;
}

/* Form placeholder text */
::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
  opacity: 1;
}

/* Buttons */
.btn {
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-success {
  background-color: var(--green);
  border: none;
}

.btn-success:hover {
  background-color: var(--green);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Tabs Styling */
.tab-navigation {
  padding: 2rem 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-navigation form {
  margin: 0 0.5rem;
}

.tab-navigation .btn {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
}

.tab-navigation .btn-success {
  background-color: var(--green);
  box-shadow: 0 4px 10px rgba(0, 145, 0, 0.2);
}

.tab-navigation .btn-outline-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.tab-navigation .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Input Groups */
.input-group {
  margin-bottom: 1.5rem;
}

.input-group-text {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--dark-blue);
  border-right: none;
}

/* Results Section */
.result-option {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.option-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: var(--white);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.option-section {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Chart Container */
.chart-container {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.chart-container h4 {
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--white) !important;
  font-size: 1.25rem;
}

/* Details */
.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.detail-label {
  color: rgba(255, 255, 255, 0.7);
}

.detail-value {
  font-weight: 500;
  color: var(--white);
}

/* Sustainable Highlights */
.highlight-item .summary-value {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 600;
}

/* CO2 Breakdown */
.co2-item {
  border-left: 2px solid var(--green);
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Adjustments for Text Colors */
/* calculator-main-container removed */
.calculator-body,
.result-option,
.option-section {
  color: var(--white) !important;
}

/* Make all section headers white, except for the main title */
.calculator-body h4,
.calculator-body h4 i,
.calculator-body h4 span {
  color: white !important;
  background: transparent !important;
}

/* Force the "What produce do you want to grow?" text to be white  */
.calculator-body div h4.mb-3,
.calculator-body div h4.mb-3 i.fas.fa-leaf,
.calculator-body div h4.mb-3 * {
  color: white !important;
  background: transparent !important;
}

/* Force all icons in headers to be the same color as their text */
.calculator-body h4 i {
  color: inherit !important;
}

.calculator-body .mb-4.text-center {
  display: none !important;
}

/* Make text in dark sections white (but be more specific to avoid overriding inputs) */
.calculator-body h1, .calculator-body h2, .calculator-body h3,
.calculator-body h4, .calculator-body h5, .calculator-body h6,
.option-section h1, .option-section h2, .option-section h3,
.option-section h4, .option-section h5, .option-section h6,
.option-section p, .option-section span, .option-section div,
.option-section label:not(.form-check-label),
.result-option h1, .result-option h2, .result-option h3,
.result-option h4, .result-option h5, .result-option h6,
.result-option p, .result-option span, .result-option div,
.chart-container h1, .chart-container h2, .chart-container h3,
.chart-container h4, .chart-container h5, .chart-container h6,
.chart-container p, .chart-container span, .chart-container div {
  color: var(--white) !important;
}

/* Form Section Cards */
.form-section-card {
  background-color: var(--white) !important;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.form-section-card .section-header {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark-blue) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.form-section-card * {
  color: var(--dark-blue) !important;
}

/* Icons (except those in headers that we want white) */
.fas:not(.calculator-body h4 i), 
.far:not(.calculator-body h4 i), 
.fab:not(.calculator-body h4 i) {
  color: var(--green) !important;
}

/* Produce Item Styling */
.produce-item-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 0.25rem 0.5rem;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 0.8rem;
  height: 30px;
  display: flex;
  align-items: center;
  margin-bottom: 3px;
  line-height: 1;
  width: 100%;
  color: var(--dark-blue);
}

.produce-item-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.produce-item-card.selected {
  background-color: var(--green);
  border-color: var(--green);
  color: white;
}

.produce-icon {
  display: none;
}

.produce-checkbox {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  transform: scale(0.5);
}

.produce-item-card label,
.produce-item-card .produce-name {
  margin: 0;
  font-size: 0.8rem;
  padding-right: 10px; /* make room for the checkbox */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.produce-category-btn {
  border-radius: 6px 6px 0 0;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid var(--dark-blue);
  border-bottom: none;
  margin-bottom: 0;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
  position: relative;
}

.dropdown-section {
  margin-bottom: 0.5rem;
}

.produce-category-btn:after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.produce-category-btn.active:after {
  transform: translateY(-50%) rotate(180deg);
}

.produce-category-btn.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--dark-blue);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.produce-category-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--dark-blue);
}

.produce-items-container {
  background-color: transparent;
  border-radius: 0;
  border: none !important;
  padding: 0 !important;
}

.produce-category-content {
  background-color: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
}

.produce-category-content.active {
  max-height: 500px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 1;
  background-color: var(--dark-blue);
  border: 1px solid var(--dark-blue);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Category header removed */

.produce-items {
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  margin: -1px -2px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .card {
    padding: 1rem;
  }

  .detail-row {
    flex-direction: column;
  }

  .detail-value {
    margin-top: 0.25rem;
  }
}

/* Added to make "Your Settings" title black */
.result-option h5 {
  color: black !important;
}