:root {
    --primary-color: #007BFF;
    --secondary-color: #f8f9fa;
    --text-color: #343a40;
    --bg-color: #e9ecef;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.container {
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    width: 100%;
}

header h1 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

header p {
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
}

.input-section {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.input-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    font-size: 1.3rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: scale(0.99);
}

.results-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--secondary-color);
}

.results-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item span {
    color: #495057;
}

.result-item strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.result-item.payback strong {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.result-item.profit strong {
    color: var(--success-color);
    font-size: 1.3rem;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

.disclaimer {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 1.5rem;
    text-align: center;
}

.hidden {
    display: none;
}

/* ... (kode CSS lainnya tetap sama) ... */

/* Style untuk Kontainer AI Insight */
#ai-insight-container {
    margin-top: 1.5rem;
    border-top: 3px solid var(--success-color);
}

#ai-insight-container h2 {
    color: var(--success-color);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    gap: 1rem;
    color: #6c757d;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#ai-insight-result p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
    white-space: pre-wrap; /* Agar format paragraf dari AI terjaga */
}

/* Hapus atau ganti style #ai-check-mark yang lama dengan ini */
#ai-check-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Jarak antara ikon dan teks */
}

.check-icon {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--success-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}