/* kalkulator.css - Final Fixed Version */

/* --- VARIABLES --- */
:root {
    --primary-color: #3f8686;
    --secondary-color: #63c9c9;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --text-muted: #95a5a6;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- SECTION STYLES --- */
.kalkulator-section {
    padding: 60px 0;
    background-color: #f8fbfb;
    min-height: 80vh;
}

.kalkulator-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.intro-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(63, 134, 134, 0.3);
}

.intro-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* --- MAIN CONTENT LAYOUT --- */
.kalkulator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- CARD STYLES --- */
.form-card, .hasil-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.form-card:hover, .hasil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.form-header, .hasil-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #eee;
}

.form-header i, .hasil-header i {
    font-size: 28px;
    color: var(--primary-color);
    background: rgba(63, 134, 134, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.form-header h3, .hasil-header h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

/* --- FORM STYLES --- */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 18px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s;
    background-color: #fcfcfc;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(63, 134, 134, 0.1);
    outline: none;
}

/* --- BUTTON STYLES --- */
.btn-hitung {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(63, 134, 134, 0.2);
}

.btn-hitung:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(63, 134, 134, 0.3);
}

.btn-hitung:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- HASIL STYLES --- */
.hasil-wrapper {
    position: sticky;
    top: 100px; /* Agar tetap terlihat saat discroll */
}

.hasil-placeholder {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.hasil-placeholder i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #eee;
    display: block;
}

.hasil-placeholder p {
    font-size: 16px;
}

/* --- TOMBOL AKSI (Simpan, Reset, dll) --- */
.action-btn-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-simpan { background-color: var(--primary-color); }
.btn-cetak { background-color: var(--accent-color); }
.btn-share { background-color: var(--secondary-color); }
.btn-reset { background-color: var(--text-muted); }

.action-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .kalkulator-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hasil-wrapper {
        position: static; /* Matikan sticky di layar kecil */
    }
}

.main-nav a {
  color: #ffffff;
  font-weight: 500;
  position: relative;
  transition: all 0.25s ease;
}

.main-nav a:hover {
  color: #7fdad1; /* toska hover */
}

.main-nav a.active {
  color: #7fdad1; /* toska AQUARA */
    font-weight: 700;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #2fb8ac,
        #7fdad1
    );
    border-radius: 2px;
}
