/* ============================================
   CALCULATOR SPECIFIC STYLES
   Modern, professional calculator design
   ============================================ */

/* Calculator Page Layout */
.calculator-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding-bottom: 3rem;
}

/* Hero Section */
.calc-hero {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0L93.3 25v50L50 100 6.7 75V25z" fill="rgba(255,255,255,0.05)"/></svg>')
    repeat;
  opacity: 0.3;
}

.calc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.calc-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.calc-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* Calculator Container */
.calc-container {
  max-width: 900px;
  margin: -2rem auto 3rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.calc-container:first-of-type {
  margin-top: -3rem;
}

/* Calculator Card */
.calc-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
}

.calc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Calculator Header */
.calc-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e8f5e9;
}

.calc-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #5f9f51 0%, #28a745 100%);
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(95, 159, 81, 0.3);
}

.calc-header h2 {
  color: #2c4a1f;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.calc-subtitle {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* Form Styles */
.calc-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  font-weight: 600;
  color: #2c4a1f;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.section-label {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Input Styles */
.form-group input[type="number"] {
  padding: 1rem 1.2rem;
  border: 2px solid #edf2f7;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--brand-green);
  background: white;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-group input[type="number"]::placeholder {
  color: #999;
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* Checkbox Card */
.checkbox-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 1rem;
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  color: #333;
  position: relative;
}

.consumption-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
}

.consumption-indicator.high {
  background: #dc3545;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.consumption-indicator.medium {
  background: #ffc107;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.consumption-indicator.low {
  background: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.checkbox-emoji {
  font-size: 2rem;
  transition: transform 0.3s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-card:hover .checkbox-content {
  background: #f0f8f0;
  border-color: #5f9f51;
  transform: translateY(-2px);
}

.checkbox-card:hover .checkbox-emoji {
  transform: scale(1.1);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  border-color: var(--brand-green-dark);
  color: white;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content .checkbox-emoji {
  transform: scale(1.15);
}

/* System Card with Savings Badge */
.system-card .checkbox-content {
  position: relative;
  padding-top: 1.5rem;
}

.savings-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ffd700;
  color: #2c4a1f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content .savings-badge {
  background: white;
  color: #28a745;
}

/* Device List */
.device-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-item {
  display: grid;
  grid-template-columns: 1fr 120px 100px auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.device-item:hover {
  background: #f0f8f0;
  border-color: #5f9f51;
}

.device-item select,
.device-item input {
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  background: white;
  transition: border-color 0.3s ease;
}

.device-item select:focus,
.device-item input:focus {
  outline: none;
  border-color: #5f9f51;
}

.device-item .btn-delete {
  background: #ff4444;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.device-item .btn-delete:hover {
  background: #cc0000;
  transform: scale(1.05);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-calc-primary,
.btn-calc-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-calc-primary {
  background: linear-gradient(135deg, #5f9f51 0%, #28a745 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(95, 159, 81, 0.3);
  flex: 1;
  min-width: 200px;
}

.btn-calc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(95, 159, 81, 0.4);
}

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

.btn-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-calc-primary:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-calc-secondary {
  background: white;
  color: #5f9f51;
  border: 2px solid #5f9f51;
}

.btn-calc-secondary:hover {
  background: #5f9f51;
  color: white;
  transform: translateY(-2px);
}

/* Results */
.calc-result {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f0f8f0 100%);
  border-radius: 15px;
  border-left: 5px solid #28a745;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-icon {
  font-size: 2.5rem;
}

.result-header h3 {
  color: #2c4a1f;
  font-size: 1.5rem;
  margin: 0;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Results */
.savings-progress {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
}

.savings-progress h4 {
  color: #2c4a1f;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.progress-bar-container {
  position: relative;
  height: 40px;
  background: #e8f5e9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5f9f51 0%, #28a745 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: white;
  font-weight: 700;
  transition: width 1s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.result-details {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.result-details h4 {
  color: #2c4a1f;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e8f5e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-list li:last-child {
  border-bottom: none;
}

.result-list .system-name {
  color: #333;
  font-weight: 500;
}

.result-list .system-saving {
  color: #28a745;
  font-weight: 700;
}

.result-list .system-saving.highlight {
  color: #5f9f51;
  font-size: 1.1rem;
  font-weight: 800;
}

.result-list li.high-impact {
  background: linear-gradient(90deg, rgba(95, 159, 81, 0.1) 0%, transparent 100%);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border-bottom: 2px solid #28a745;
  margin-bottom: 0.5rem;
}

.result-list li.medium-impact {
  background: linear-gradient(90deg, rgba(95, 159, 81, 0.05) 0%, transparent 100%);
  padding: 0.7rem 0.5rem;
  border-radius: 6px;
}

.result-list li.low-impact {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, transparent 100%);
  padding: 0.7rem 0.5rem;
  border-radius: 6px;
  opacity: 0.8;
}

.result-list li.low-impact .system-name {
  color: #856404;
}

.result-list li.low-impact .system-saving {
  color: #856404;
}

/* Comparison Table */
.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.comparison-card {
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

.comparison-card.before {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #ef5350;
}

.comparison-card.after {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #28a745;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.comparison-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.comparison-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.comparison-card.before .comparison-value {
  color: #d32f2f;
}

.comparison-card.after .comparison-value {
  color: #28a745;
}

.comparison-sublabel {
  font-size: 0.85rem;
  color: #666;
}

.highlight-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
  border: 2px solid #28a745;
  border-left: 5px solid #28a745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

.highlight-box h4 {
  color: #155724;
}

.warning-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-left: 5px solid #ffc107;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.15);
}

.warning-box h4 {
  color: #856404;
}

/* ROI Indicator */
.roi-indicator {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.roi-indicator strong {
  color: #856404;
  font-size: 1.1rem;
}

.result-cta {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  text-align: center;
}

.result-cta p {
  color: #666;
  margin-bottom: 1rem;
}

.result-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #28a745;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.result-cta a:hover {
  background: #218838;
  transform: translateY(-2px);
}

/* CTA Section */
.calc-cta {
  background: linear-gradient(135deg, #5f9f51 0%, #28a745 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem 0 0 0;
}

.calc-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.calc-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.calc-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-cta-large {
  display: inline-block;
  background: white;
  color: #28a745;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-cta-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .calc-hero h1 {
    font-size: 2rem;
  }

  .calc-hero p {
    font-size: 1.1rem;
  }

  .calc-card {
    padding: 1.5rem;
  }

  .calc-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .calc-header h2 {
    text-align: center;
  }

  .checkbox-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .device-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .button-group {
    flex-direction: column;
  }

  .btn-calc-primary,
  .btn-calc-secondary {
    width: 100%;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .calc-cta h2 {
    font-size: 1.8rem;
  }

  .calc-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .calc-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
}

