/* Styles khusus untuk halaman contoh perhitungan */

.contoh-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.data-gedung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.data-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.data-item label {
    display: block;
    color: #64748b;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 5px;
}

.data-item span {
    display: block;
    color: var(--primary);
    font-size: 1.1em;
    font-weight: 700;
}

.ruangan-table-container {
    margin-top: 20px;
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 25px 0;
    border-left: 6px solid var(--primary);
}

.step-header {
    background: var(--gradient-1);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    background: rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    flex-shrink: 0;
}

.step-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.step-body {
    padding: 30px;
}

.step-body p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--dark);
}

/* Calculation Box */
.calculation-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.calculation-box p {
    margin-bottom: 10px;
}

.calculation-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.calculation-box ul li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Formula Display */
.formula-display {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    border-left: 4px solid var(--primary);
    word-break: break-all;
}

.formula-display .result-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2em;
}

/* Result Highlight */
.result-highlight {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
}

.result-highlight h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.result-highlight p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Conversion Box */
.conversion-box {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid var(--info);
}

.conversion-box p {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.conversion-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.conversion-box ul li {
    margin-bottom: 8px;
}

/* Pressure Component */
.pressure-component {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.pressure-component h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.pressure-component p {
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

/* Summary Table */
.summary-table-container {
    margin: 25px 0;
}

/* Recommendation Grid */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.recommendation-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recommendation-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3em;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.recommendation-card ul {
    margin-left: 20px;
}

.recommendation-card ul li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--dark);
}

.recommendation-card ul li strong {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contoh-content {
        padding: 20px;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.8em;
    }
    
    .data-gedung-grid {
        grid-template-columns: 1fr;
    }
    
    .formula-display {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .calculation-box {
        padding: 20px;
    }
}

/* Mode Indicator */
.mode-indicator {
    margin: 20px 40px;
}

/* Input Guide */
.input-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.input-step {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--info);
    transition: transform 0.3s ease;
}

.input-step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.input-step h4 {
    color: var(--info);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.input-step p {
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
}

.input-step p strong {
    color: var(--primary);
    font-size: 1.1em;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.comparison-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-width: 8px;
}

.comparison-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4em;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.comparison-card p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.comparison-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.comparison-card ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.btn-mode-link {
    display: inline-block;
    padding: 12px 25px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-mode-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .step-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .calculation-box {
        border: 1px solid #ccc;
    }
    
    .result-highlight {
        background: #f0f0f0 !important;
        color: black !important;
        border: 2px solid #333;
    }
    
    .mode-indicator,
    .comparison-grid {
        display: none;
    }
}
