/* TCO Compact Elegant Redesign — Master Reference Style */
/* Inspired by lampiran 2 compact specification layout */

/* ============================================================================
   RINGKASAN PERBANDINGAN — Compact dark card, two-column value pairs
   ============================================================================ */

.tco-summary-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.tco-summary-card h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tco-summary-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0;
}

.tco-summary-card dt {
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
}

.tco-summary-card dd {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.tco-summary-save {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 20px;
  text-align: center;
}

.tco-summary-save span {
  display: block;
  font-size: 11px;
  color: #a1f716;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.tco-summary-save strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 4px;
}

.tco-summary-save em {
  display: block;
  font-size: 11px;
  color: #86efac;
  font-style: normal;
}

/* ============================================================================
   RESULT CARDS — Medium, compact sizing, not huge
   ============================================================================ */

.tco-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.tco-result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.tco-result-card.highlight {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.tco-result-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.tco-result-label span {
  font-size: 16px;
}

.tco-result-card b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.tco-result-value {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.2;
}

.tco-result-card.highlight .tco-result-value {
  color: #22c55e;
}

.tco-result-card small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 8px;
}

.tco-result-card em {
  display: block;
  font-size: 10px;
  color: #22c55e;
  font-style: normal;
  font-weight: 600;
}

/* ============================================================================
   CHARTS — Compact with proper sizing
   ============================================================================ */

.chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
}

.tco-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.tco-eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tco-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
}

.tco-chart-wrap {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  min-height: 200px;
}

.tco-y-axis {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  min-width: 50px;
  text-align: right;
  padding-right: 12px;
}

.tco-chart-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 6px;
  flex: 1;
  height: 180px;
}

.bar-chart i {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 20px;
  background: #3b82f6;
  border-radius: 4px 4px 0 0;
  position: relative;
}

.bar-chart i.ice {
  background: #f97316;
}

.bar-chart i small {
  position: absolute;
  bottom: -20px;
  font-size: 8px;
  color: #64748b;
  white-space: nowrap;
}

.tco-axis {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  font-size: 10px;
  color: #94a3b8;
}

.legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.legend span::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend span.ev::before {
  background: #3b82f6;
}

.legend span.ice::before {
  background: #f97316;
}

/* Donut card */
.donut-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 20px 0;
}

.donut {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.donut strong {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  color: #000000;
}

.donut strong br {
  display: none;
}

.donut-wrap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donut-wrap li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 12px;
}

.donut-wrap li span {
  color: #64748b;
  font-weight: 500;
}

.donut-wrap li b {
  color: #000000;
  font-weight: 700;
}

/* ============================================================================
   FEATURE CARDS — Numbered, compact, professional
   ============================================================================ */

.tco-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.tco-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  position: relative;
}

.tco-feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tco-feature-card:nth-child(1) .tco-feature-number { background: #3b82f6; }
.tco-feature-card:nth-child(2) .tco-feature-number { background: #f97316; }
.tco-feature-card:nth-child(3) .tco-feature-number { background: #22c55e; }
.tco-feature-card:nth-child(4) .tco-feature-number { background: #8b5cf6; }

.tco-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 10px;
  line-height: 1.3;
}

.tco-feature-description {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   FINAL CTA — Compact, professional
   ============================================================================ */

.tco-final-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 48px 0;
}

.tco-final-cta > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tco-final-cta h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.tco-final-cta p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
}

.tco-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #22c55e;
  color: #ffffff;
}

.btn-primary:hover {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #3b82f6;
  color: #3b82f6;
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #2563eb;
  color: #2563eb;
}

/* ============================================================================
   RESPONSIVE — Tablet & Mobile
   ============================================================================ */

@media (max-width: 768px) {
  .tco-summary-card dl {
    grid-template-columns: 1fr;
    gap: 12px 16px;
  }

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

  .tco-feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tco-final-cta {
    padding: 24px 16px;
  }

  .tco-final-cta h2 {
    font-size: 20px;
  }

  .tco-cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tco-summary-card {
    padding: 16px;
  }

  .tco-result-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tco-result-card {
    padding: 16px;
  }

  .tco-feature-cards {
    grid-template-columns: 1fr;
  }

  .tco-feature-card {
    padding: 16px;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .donut {
    width: 120px;
    height: 120px;
  }
}