/* Calculator All-in-One Page Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.calculator-all-in-one {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}

.calculator-container {
  width: 100%;
  max-width: 1400px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 20px);
  margin-bottom: 20px;
}

/* Header */
.calculator-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 30px;
  flex-shrink: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main {
  flex: 1;
  text-align: center;
}

.calculator-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.test-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.test-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-1px);
}

.solar-icon-header {
  font-size: 1.8rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.calculator-subtitle {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Main Content: Two Columns */
.calculator-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Left Column: Form */
.calculator-form-section {
  padding: 20px;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.form-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.form-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #333;
}

.solar-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  min-height: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.form-label {
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-icon {
  font-size: 1rem;
}

.form-input {
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #fafafa;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-help {
  color: #888;
  font-size: 0.75rem;
  margin-top: -3px;
}

/* Slider Styles */
.slider-group {
  margin-bottom: 10px;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-value-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.slider-value-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.slider-value-number {
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-block;
  min-width: 100px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.slider-value-unit {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.95;
  margin-left: 6px;
}

.slider-wrapper {
  position: relative;
  padding: 10px 0 25px 0;
}

.consumption-slider {
  width: 100%;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(to right, #e0e0e0 0%, #667eea 50%, #764ba2 50%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.consumption-slider:hover {
  height: 12px;
}

.consumption-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
  transition: all 0.2s ease;
  border: 3px solid white;
}

.consumption-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.7);
}

.consumption-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.consumption-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
  transition: all 0.2s ease;
  border: 3px solid white;
  -moz-appearance: none;
}

.consumption-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.7);
}

.consumption-slider::-moz-range-thumb:active {
  transform: scale(1.1);
}

.consumption-slider::-moz-range-track {
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(to right, #e0e0e0 0%, #667eea 50%, #764ba2 50%);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 5px;
}

.slider-label-min,
.slider-label-max {
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}


/* Right Column: Results */
.calculator-results-section {
  padding: 20px;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.results-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  min-height: 0;
}

.results-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
  flex-shrink: 0;
}

/* System Overview */
.system-overview {
  text-align: center;
  padding: 15px 12px;
  background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.system-icon-large {
  font-size: 2.5rem;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

.system-power {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.power-value {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.power-unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: #666;
}

.system-description {
  color: #666;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex-shrink: 0;
}

.metric-card {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.metric-card.highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.metric-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
  min-width: 0;
}

.metric-label {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 3px;
  font-weight: 500;
}

.metric-card.highlight .metric-label {
  opacity: 0.95;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-card.highlight .metric-value {
  color: white;
}

/* System Details */
.system-details {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.details-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
  flex-shrink: 0;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #666;
  font-size: 0.8rem;
}

.detail-value {
  font-weight: 700;
  color: #333;
  font-size: 0.85rem;
}

/* Investment Info */
.investment-info {
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 100%);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #667eea;
  flex-shrink: 0;
}

.investment-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.investment-icon {
  font-size: 1.2rem;
}

.investment-label {
  font-weight: 600;
  color: #333;
  font-size: 0.8rem;
}

.investment-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 6px;
}

.investment-note {
  font-size: 0.7rem;
  color: #888;
  font-style: italic;
}

/* Warning Message */
.calculator-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 12px;
  margin-top: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
}

.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-content {
  flex: 1;
  min-width: 0;
}

.warning-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #856404;
  margin-bottom: 6px;
}

.warning-text {
  font-size: 0.75rem;
  color: #856404;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calculator-main {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .calculator-form-section {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    max-height: none;
  }

  .calculator-results-section {
    max-height: none;
  }

  .calculator-container {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .calculator-all-in-one {
    padding: 10px;
  }

  .calculator-header {
    padding: 20px;
  }

  .calculator-title {
    font-size: 1.8rem;
  }

  .calculator-form-section,
  .calculator-results-section {
    padding: 25px 20px;
  }

  .form-card {
    padding: 25px 20px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .power-value {
    font-size: 2.5rem;
  }

  .investment-value {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .calculator-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 5px;
  }

  .solar-icon-header {
    font-size: 2rem;
  }

  .form-section-title,
  .results-section-title {
    font-size: 1.3rem;
  }

  .system-icon-large {
    font-size: 3rem;
  }

  .power-value {
    font-size: 2rem;
  }
}

/* Scrollbar Styling */
.calculator-form-section::-webkit-scrollbar,
.calculator-results-section::-webkit-scrollbar {
  width: 8px;
}

.calculator-form-section::-webkit-scrollbar-track,
.calculator-results-section::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.calculator-form-section::-webkit-scrollbar-thumb,
.calculator-results-section::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.calculator-form-section::-webkit-scrollbar-thumb:hover,
.calculator-results-section::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}

/* Test Page Styles */
.test-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.test-container {
  background: white;
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
}

.test-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.test-container p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ===================== TECHNICAL CONTENT SECTION ===================== */
.technical-content-section {
  background: #f8f9fa;
  padding: 80px 20px;
  width: 100%;
}

.technical-content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.technical-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.technical-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.technical-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.technical-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.technical-description {
  font-size: 1.15rem;
  color: #666;
  line-height: 1.8;
}

.technical-article {
  max-width: 1200px;
  margin: 0 auto;
}

.technical-intro {
  margin-bottom: 60px;
}

.technical-intro-card {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
  border-left: 5px solid #ffb800;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.technical-intro-icon {
  width: 60px;
  height: 60px;
  background: #ffb800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
}

.technical-intro-card h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

.technical-intro-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.technical-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 60px;
}

.technical-item {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.technical-item:hover {
  border-color: #667eea;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.technical-item-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.technical-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.technical-item-header h3 {
  font-size: 1.6rem;
  color: #333;
  margin: 0;
}

.technical-item-content {
  color: #333;
}

.technical-item-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.technical-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.technical-list li {
  padding: 15px 0 15px 30px;
  position: relative;
  line-height: 1.8;
  font-size: 1.05rem;
}

.technical-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 1.2rem;
}

.technical-list li strong {
  color: #333;
}

.technical-example {
  background: #f8f9fa;
  border-left: 4px solid #00c853;
  padding: 25px;
  border-radius: 8px;
  margin-top: 25px;
}

.technical-example strong {
  color: #333;
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.technical-example p {
  margin: 0;
  line-height: 1.8;
}

.technical-example ul {
  margin: 15px 0 0 20px;
  padding: 0;
}

.technical-example ul li {
  margin: 8px 0;
  line-height: 1.7;
}

.technical-table-wrapper {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.technical-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 1rem;
}

.technical-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.technical-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.technical-table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.technical-table tbody tr:hover {
  background: #f8f9fa;
}

.technical-table tbody tr:last-child td {
  border-bottom: none;
}

.losses-breakdown {
  margin: 25px 0;
}

.losses-breakdown h4 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.payback-comparison {
  margin: 30px 0;
}

.payback-comparison h4 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.3rem;
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.comparison-card {
  padding: 30px;
  border-radius: 16px;
  border: 2px solid;
}

.comparison-card.correct {
  background: #e8f5e9;
  border-color: #00c853;
}

.comparison-card.incorrect {
  background: #ffebee;
  border-color: #f44336;
}

.comparison-card h5 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
}

.comparison-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 1rem;
}

.comparison-card ul li:last-child {
  border-bottom: none;
}

.comparison-card ul li strong {
  color: #333;
}

.comparison-note {
  text-align: center;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  padding: 20px;
  background: #fff3cd;
  border-radius: 8px;
  border-left: 4px solid #ffb800;
}

.technical-conclusion {
  margin-top: 60px;
}

.conclusion-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.conclusion-card h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: white;
}

.conclusion-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.conclusion-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.conclusion-list li {
  padding: 12px 0 12px 35px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.8;
}

.conclusion-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00c853;
  font-weight: bold;
  font-size: 1.3rem;
}

.conclusion-cta {
  background: rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
  border-left: 4px solid #ffb800;
}

.conclusion-cta strong {
  color: #ffb800;
}

/* Responsive Technical Content */
@media (max-width: 968px) {
  .technical-content-section {
    padding: 60px 15px;
  }

  .technical-item {
    padding: 30px 20px;
  }

  .technical-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .conclusion-card {
    padding: 30px 20px;
  }

  .technical-table-wrapper {
    overflow-x: scroll;
  }

  .technical-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .technical-intro-card {
    padding: 25px 20px;
  }

  .technical-item-header h3 {
    font-size: 1.3rem;
  }

  .conclusion-card h3 {
    font-size: 1.6rem;
  }

  .technical-title {
    font-size: 1.8rem;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
