/* css/simulator.css */
/**
 * Simulator & Efficiency Comparison Stylesheet - Premium & High-Precision Redesign
 * Dirancang agar tata letak, ukuran font, jarak, padding, dan gap sama persis dengan mockup.
 */

.sim-page {
    background-color: #f7f8fa;
    height: 100%;
    width: 100%;
    position: absolute;
    padding: 110px 40px 0 40px;
    color: var(--text-primary);
    overflow: hidden;
    box-sizing: border-box;
}

.sim-container {
    display: flex;
    width: 100%;
    height: calc(100% - 130px);
    margin: 0;
    justify-content: space-between;
    align-items: stretch;
    box-sizing: border-box;
    padding-bottom: 20px;
}

/* Kolom Kiri: Rekomendasi & Kapasitas */
.sim-left-col {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.sim-section-badge {
    font-size: 12px;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sim-product-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--ariston-red);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.sim-product-card {
    background-color: #ffffff;
    border-radius: 10px; /* Kotak tegas */
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.sim-product-img-wrapper {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border-radius: 8px; /* Kotak tegas sudut kecil */
    padding: 10px;
    box-sizing: border-box;
}

.sim-product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sim-spec-pill-group {
    background-color: #fff1f2;
    border-radius: 8px; /* Kotak tegas */
    width: 100%;
    display: flex;
    padding: 16px 20px;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 24px;
}

.sim-spec-pill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.sim-spec-pill-item:not(:last-child) {
    border-right: 1px solid rgba(200, 16, 46, 0.1);
}

.sim-spec-pill-item .pill-label {
    font-size: 10px;
    font-weight: 800;
    color: #a0aec0;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.sim-spec-pill-item .pill-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--ariston-red);
}

/* Pemilih Kapasitas */
.sim-capacity-selector-box {
    background-color: #ffffff;
    border-radius: 10px; /* Kotak tegas */
    padding: 24px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.sim-capacity-title {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
}

.sim-capacity-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.capacity-btn {
    background-color: #ffffff;
    border: 1.5px solid #edf2f7;
    border-radius: 6px; /* Kotak tegas kecil */
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-premium);
}

.capacity-btn:hover, .capacity-btn.focused {
    border-color: var(--ariston-red-light);
    color: var(--ariston-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.08);
}

.capacity-btn.active {
    background-color: #fff1f2;
    border-color: var(--ariston-red);
    color: var(--ariston-red);
    font-weight: 800;
}

.sim-capacity-ideal-text {
    font-size: 13px;
    font-weight: 700;
    color: #718096;
    margin: 0;
}

/* Kolom Kanan: Perbandingan Biaya (Head to Head) */
.sim-right-col {
    width: 56%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.sim-head-title {
    font-size: 34px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 10px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.sim-comparison-card {
    background-color: #ffffff;
    border-radius: 10px; /* Kotak tegas */
    padding: 40px 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #edf2f7;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
    box-sizing: border-box;
}

.sim-comp-header {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1.5px solid #edf2f7;
    padding-bottom: 25px;
    gap: 10%;
}

.sim-comp-col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 45%;
}

.comp-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-icon-circle.electric {
    background-color: #e6f9f0;
    color: #00c853;
}

.comp-icon-circle.gas {
    background-color: #f3f4f6;
    color: #718096;
}

.comp-icon-circle svg {
    width: 26px;
    height: 26px;
}

.comp-header-label {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
}

.sim-comp-rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sim-comp-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    gap: 10%;
}

.comp-row-val {
    width: 45%;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.comp-row-val.electric {
    color: var(--ariston-red);
}

.comp-row-val.gas {
    color: #4a5568;
}

.comp-row-period {
    position: absolute;
    right: 0;
    font-size: 14px;
    font-weight: 700;
    color: #a0aec0;
}

.sim-action-buttons {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.sim-action-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sim-action-buttons .btn-secondary {
    flex: 1.2;
    justify-content: center;
    height: 65px;
    border-radius: 8px; /* Kotak tegas */
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.sim-action-buttons .btn-primary {
    flex: 2.8;
    justify-content: center;
    height: 65px;
    border-radius: 8px; /* Kotak tegas */
    background-color: var(--ariston-red);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(200, 16, 46, 0.22);
    transition: var(--transition-smooth);
}

/* Modal Pop-up Rincian */
.sim-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 16, 21, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.sim-detail-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sim-detail-modal-content {
    background-color: #ffffff;
    border-radius: 10px; /* Kotak tegas sudut kecil */
    padding: 45px 50px;
    max-width: 1200px;
    width: 92%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
    transition: var(--transition-smooth);
    position: relative;
    box-sizing: border-box;
}

.sim-detail-modal-overlay.active .sim-detail-modal-content {
    transform: scale(1);
}

.sim-detail-modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background-color: var(--ariston-red);
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
    transition: var(--transition-smooth);
}

.sim-detail-modal-close:hover, .sim-detail-modal-close.focused {
    background-color: #990011;
    transform: scale(1.1);
}

.sim-detail-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 35px 0;
}

.sim-modal-body-grid {
    display: flex;
    gap: 45px;
}

.sim-modal-left {
    width: 36%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.sim-modal-prod-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--ariston-red);
    margin: 0 0 5px 0;
}

.sim-modal-product-card {
    background-color: #f8fafc;
    border-radius: 8px; /* Kotak tegas */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    border: 1.5px solid #edf2f7;
}

.sim-modal-product-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.sim-modal-spec-pill-group {
    background-color: #fff1f2;
    border-radius: 8px; /* Kotak tegas */
    display: flex;
    padding: 16px 10px;
    justify-content: space-around;
    box-sizing: border-box;
    margin-top: 10px;
}

.sim-modal-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.sim-modal-tariff-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.tariff-box {
    width: 48%;
    background-color: #f8fafc;
    border: 1.5px solid #edf2f7;
    border-radius: 6px; /* Kotak tegas kecil */
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.tariff-label {
    font-size: 13px;
    color: #718096;
    font-weight: 700;
}

.tariff-val {
    font-size: 15px;
    font-weight: 800;
    color: #2d3748;
}

/* Tabel Detail */
.sim-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 5px;
}

.sim-modal-table th, .sim-modal-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1.5px solid #f3f4f6;
}

.sim-modal-table th {
    font-size: 13px;
    font-weight: 800;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-modal-table th.electric-header {
    color: var(--ariston-red);
}

.sim-modal-table th.gas-header {
    color: #4a5568;
}

.sim-modal-table td.electric-cell {
    background-color: #fff5f5;
    color: #2d3748;
}

.sim-modal-table td {
    font-weight: 700;
    color: #2d3748;
}

.sim-modal-table td:first-child {
    font-weight: 800;
    color: #4a5568;
}

.sim-modal-table .value-cell {
    color: #a0aec0;
    font-weight: 600;
}

/* Container Daftar Produk Kiri */
.sim-product-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar untuk Daftar Produk Kiri */
.sim-product-list::-webkit-scrollbar {
    width: 6px;
}
.sim-product-list::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 4px;
}
.sim-product-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Kartu Daftar Produk */
.sim-list-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 2px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.sim-list-card:hover, .sim-list-card.focused {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.sim-list-card.active {
    border-color: var(--ariston-red);
    background-color: #fff1f2;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.08);
}

.sim-list-card-img-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sim-list-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sim-list-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sim-list-card-name {
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
    line-height: 1.2;
    transition: color 0.2s;
}

.sim-list-card.active .sim-list-card-name {
    color: var(--ariston-red);
}

.sim-list-card-badges {
    display: flex;
    gap: 8px;
}

.sim-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.sim-badge.capacity {
    background-color: #e2e8f0;
    color: #4a5568;
}

.sim-badge.power {
    background-color: #fed7d7;
    color: #c53030;
}

.sim-list-card.active .sim-badge.capacity {
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--ariston-red);
}

/* Card Tips Edukasi di Kiri Bawah */
.sim-tips-card {
    background: #ffffff;
    border: 1.5px solid #edf2f7;
    border-radius: 10px;
    padding: 24px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-top: 15px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sim-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ariston-red);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-tips-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sim-tips-list li {
    font-size: 13px;
    line-height: 1.45;
    color: #4a5568;
}

.sim-tips-list li strong {
    color: #2d3748;
}

/* Box Edukasi Infografis Kanan */
.sim-edu-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 22px;
    display: flex;
    gap: 20px;
    margin-top: 5px;
    box-sizing: border-box;
}

.edu-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edu-item:first-child {
    border-right: 1.5px dashed #cbd5e1;
    padding-right: 10px;
}

.edu-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--ariston-red);
    letter-spacing: -0.5px;
}

.edu-item:first-child .edu-num {
    color: #00c853; /* Hijau untuk efisiensi tinggi */
}

.edu-text {
    font-size: 12.5px;
    line-height: 1.4;
    color: #4a5568;
}

.edu-text strong {
    color: #2d3748;
}
