*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Inter",sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

img{
    max-width: 100%;
    display: block;
}

a{
    text-decoration: none;
    color: inherit;
}

ul{
    list-style: none;
}

button,
input,
select{
    font: inherit;
}

:root{

    /* Primary */

    --primary:#930000;

    --primary-dark:#7a0000;

    --accent:#c9a227;

    /* Neutral */

    --white:#ffffff;

    --background:#f7f8fa;

    --text:#1a1a1a;

    --text-light:#666666;

    --border:#dddddd;

    /* Layout */

    --container:1200px;

    --radius:12px;

    --shadow:
        0 6px 20px rgba(0,0,0,.08);

}

h1,h2,h3{
    font-family: "Playfair Display",serif;
    color: var(--text);
    margin-bottom: .5rem;

}

section{
    padding: 60px 0;
}

.container{
    width:100%;
    max-width: var(--container);
    margin: auto;
    padding: 0 20px;
}

button,
input,
a{
    transition: .25s ease;
}

button{
    cursor: pointer;
    border: none;
}

#site-header{
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar{
    background: #0a4d3c;
    color: var(--white);
    font-size: .85rem;
    z-index: 1001;
}

.top-bar .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
}

.top-bar-left{
    display: flex;
    align-items: center;
    gap: .5rem;
}

.top-bar-right{
    font-weight: 500;
}

.navbar{
    background: rgba(255,255,255,.85);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

}

.menu-toggle{
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}


.navbar .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo img{
    width: 60px;
    height: auto;
}

.nav-links{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a{
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
    transition: .3s;
    position: relative;
}

.nav-links a:hover{
    color: var(--primary);
}

.card{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;

    transition:
        transform .2s,
        box-shadow .2s;
}

.card:hover{
    transform: translateY(-2px);
    box-shadow: 
    0 10px 24px rgba(0,0,0,.12);
}

.card h3{
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

section h2{
    font-size: 2rem;
    margin-bottom: 30px;
}

.input-group{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

label{
    color: var(--text);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.radio-group{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.radio-group label{
    display: inline;
    margin: 0;
    font-weight: 500;
}

.radio-group input[type="radio"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
}

input[type="number"]{
    width: 90px;
}

input,
select{
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

input:focus,
select:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(147,0,0,.15);
}

input[type="checkbox"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
}
table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td{
    padding: 14px;
    border: 1px solid var(--border);
}

tbody tr:nth-child(even){
    background: var(--background);
}

.summary-item{
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

button{
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
}

button:hover{
    background: var(--primary-dark);
}

.hidden{
    display: none;
}
.show{
    display: block;
    animation: fadeIn .4s ease;
}

#totalHarta,
#hutang{
    width: 100%;
    max-width: 400px;
    font-size: 1.1rem;
}
@keyframes fadeIn {
    from{
        opacity:0;
        transform: translateY(20px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@media print{

    header,
    #info-waris,
    #setting
    #ahli-waris,
    #aksi,
    #printBtn,
    footer{
        display: none;
    }

    #hasil{
        display: block;
    }
}

@media (max-width:900px){
    .menu-toggle{
        display:block;
        
        transition:
            transform .25s;
    }

    .menu-toggle:active{
        transform:scale(.9);
    }
    
    .navbar .container{
        display:flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        min-height: 80px;
    }
    
    .nav-links{
        order: 3;    
        width:100%;

        display:flex;
        flex-direction:column;

        gap:0;

        max-height:0;

        overflow:hidden;

        opacity:0;

        transition:
            max-height .35s ease,
            opacity .35s ease;

    }

    .nav-links.active{
        max-height: 400px;
        opacity: 1;
    }
    .nav-links a{
        padding: 10px 15px;
        border-radius: 8px;
    }

    .nav-links a:hover{
        background: rgba(147,0,0,.15);
    }
}