* { 
    box-sizing: border-box; 
    font-family: 'Segoe UI', sans-serif; 
}
body { 
    background: #1a2b3c; 
    margin: 0; 
    padding: 20px; 
    display: flex; 
    justify-content: center; 
}
.container { 
    max-width: 1600px; 
    width: 100%; 
    background: #f0f4fa; 
    border-radius: 30px; 
    padding: 25px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); 
    position: relative; 
}
h1 { 
    color: #0a1f2e; 
    border-left: 8px solid #3b8cbf; 
    padding-left: 20px; 
    margin-top: 0; 
}
.toolbar { 
    background: #d9e2ef; 
    border-radius: 20px; 
    padding: 20px; 
    margin: 20px 0; 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    align-items: center; 
    position: relative; 
    z-index: 20; 
}
.btn { 
    background: #2c5f8a; 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 40px; 
    cursor: pointer; 
    font-weight: 600; 
}
.btn:hover { 
    background: #1e4668; 
}
.file-label { 
    background: #4a6f8e; 
    color: white; 
    padding: 12px 24px; 
    border-radius: 40px; 
    cursor: pointer; 
}
#fileInput { 
    display: none; 
}
.threshold-panel { 
    background: white; 
    border-radius: 20px; 
    padding: 15px 20px; 
    display: flex; 
    gap: 20px; 
    align-items: center; 
    flex-wrap: wrap; 
    position: relative; 
    z-index: 20; 
}
.threshold-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.threshold-item input { 
    width: 70px; 
    padding: 8px; 
    border: 2px solid #ccc; 
    border-radius: 12px; 
}
.plot-container { 
    background: white; 
    border-radius: 20px; 
    padding: 20px; 
    margin: 20px 0; 
    clear: both; 
    overflow: hidden; 
    position: relative; 
    z-index: 10; 
    min-height: 500px; 
}
#heatmap { 
    width: 100%; 
    height: 500px; 
}
.charts-row { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 20px; 
    margin: 20px 0; 
    clear: both; 
    overflow: hidden; 
}
.chart-card { 
    background: white; 
    border-radius: 20px; 
    padding: 15px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    position: relative; 
    z-index: 10; 
}
.chart-card h3 { 
    margin: 0 0 10px 0; 
    color: #1e3a5f; 
    font-size: 1.2rem; 
}
.chart-card div { 
    width: 100%; 
    height: 300px; 
}
.ai-panel { 
    background: #e2eaf3; 
    border-radius: 20px; 
    padding: 20px; 
    margin: 20px 0; 
    clear: both; 
    overflow: hidden; 
    position: relative; 
    z-index: 30; 
}
.ai-panel h3 { 
    margin-top: 0; 
    color: #0f3b5e; 
}
.ai-buttons { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    margin-bottom: 20px; 
}
.ai-results { 
    background: white; 
    border-radius: 16px; 
    padding: 15px; 
    max-height: 300px; 
    overflow-y: auto; 
    font-size: 0.9rem; 
    border: 1px solid #a0b8cc; 
}
.summary { 
    background: #cbddec; 
    border-radius: 16px; 
    padding: 20px; 
    margin: 20px 0; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); 
    gap: 15px; 
    clear: both; 
    overflow: hidden; 
}
.summary-card { 
    background: white; 
    padding: 15px; 
    border-radius: 16px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.summary-card .label { 
    font-size: 0.9rem; 
    color: #2c3e50; 
}
.summary-card .value { 
    font-size: 2rem; 
    font-weight: 700; 
}
.prospek { 
    color: #27ae60; 
}
.non-prospek { 
    color: #e74c3c; 
}
.transisi { 
    color: #f39c12; 
}
.table-container { 
    max-height: 400px; 
    overflow-y: auto; 
    border: 1px solid #a0b8cc; 
    border-radius: 16px; 
    background: white; 
    margin-top: 20px; 
    clear: both; 
}
table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.9rem; 
}
th { 
    background: #1e3a5f; 
    color: white; 
    position: sticky; 
    top: 0; 
    padding: 12px; 
}
td { 
    padding: 8px; 
    border-bottom: 1px solid #ccc; 
    text-align: center; 
}
.cell-prospek { 
    background-color: rgba(39, 174, 96, 0.25); 
    font-weight: 600; 
}
.cell-transisi { 
    background-color: rgba(243, 156, 18, 0.25); 
}
.cell-non-prospek { 
    background-color: rgba(231, 76, 60, 0.25); 
}
.legend { 
    display: flex; 
    gap: 25px; 
    margin: 15px 0; 
    flex-wrap: wrap; 
}
.legend-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.legend-color { 
    width: 20px; 
    height: 20px; 
    border-radius: 4px; 
}
.export-btn { 
    background: #27ae60; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 40px; 
    cursor: pointer; 
}
.cluster-item, .anomaly-item, .target-item { 
    padding: 8px; 
    border-bottom: 1px solid #ccc; 
}
.cluster-item:last-child, .anomaly-item:last-child, .target-item:last-child { 
    border-bottom: none; 
}
.no-data-message { 
    text-align: center; 
    padding: 100px; 
    color: #888; 
}
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    font-size: 0.9rem;
    color: #2c3e50;
    border-top: 1px solid #a0b8cc;
}