/* Reset Dasar */
.waris-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container Utama */
.waris-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}


/* Style untuk input yang sedang aktif */
.money-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    background-color: #fff;
}

/* Style untuk placeholder */
.money-input::placeholder {
    color: #999;
    opacity: 1;
}

/* Animasi saat input berubah */
.money-input {
    transition: all 0.3s ease;
}

.waris-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
}

.waris-title i {
    margin-right: 10px;
    color: #8e44ad;
}

/* Form Styles */
.waris-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 20px;
}

.form-section h2 i {
    margin-right: 10px;
    color: #3498db;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.money-input {
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Tombol Hitung */
.btn-calculate {
    background: #27ae60;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
    transition: background 0.3s, transform 0.2s;
}

.btn-calculate:hover {
    background: #219653;
    transform: translateY(-2px);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-calculate i {
    margin-right: 8px;
}

/* Hasil Tampilan */
.waris-results {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: none;
}

.waris-results h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 20px;
}

.waris-results h2 i {
    margin-right: 10px;
    color: #e67e22;
}

.result-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.result-summary p {
    margin-bottom: 8px;
    font-size: 15px;
}

.result-summary p:last-child {
    margin-bottom: 0;
}

.result-summary strong {
    color: #2c3e50;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.result-table th, 
.result-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.result-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.result-table tr:hover {
    background-color: #f8f9fa;
}

.result-table td:nth-child(3) {
    font-family: 'Courier New', monospace;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .waris-container {
        padding: 15px;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .waris-form, 
    .waris-results {
        padding: 15px;
    }
}