/* ================= RESET ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= BODY ================= */
body{
    background:#fff0f5;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}


/* ================= CONTAINER ================= */
.container,
.wrapper{
    max-width:1100px;
    margin:auto;
    padding:20px;
    width:100%;
}


/* ================= TITLE ================= */
h1{
    text-align:center;
    color:#d81b60;
    margin-bottom:20px;
}

h2{
    color:#c2185b;
    margin-bottom:15px;
    text-align:center;
}


/* ================= CARD ================= */
.card{
    background:white;
    border-radius:12px;
    padding:25px;
    margin-bottom:30px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}


/* ================= GRID FORM ================= */
.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}


/* ================= FORM ================= */
label{
    font-weight:bold;
    color:#880e4f;
    display:block;
    margin-bottom:5px;
}

input,
select{
    width:100%;
    padding:10px;
    border-radius:6px;
    border:1px solid #f48fb1;
    outline:none;
}

input:focus,
select:focus{
    border-color:#ec407a;
    box-shadow:0 0 3px #f06292;
}


/* ================= BUTTON ================= */
button{
    background:#ec407a;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
    margin-top:20px;
    font-size:14px;
    transition:0.3s;
}

button:hover{
    background:#d81b60;
}


/* ================= RESULT ================= */
.result,
.hasil{
    background:#fce4ec;
    padding:15px;
    border-radius:8px;
    margin-top:20px;
    border-left:5px solid #ec407a;
}


/* ================= TABLE ================= */
table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

th,
td{
    padding:10px;
    border:1px solid #f48fb1;
    text-align:center;
    font-size:14px;
}

th{
    background:#f06292;
    color:white;
}

tr:nth-child(even){
    background:#fde4ec;
}


/* ================= SEARCH ================= */
#searchInput{
    width:100%;
    padding:10px;
    border-radius:6px;
    border:1px solid #f48fb1;
    margin-bottom:15px;
}


/* ================= RESET BUTTON ================= */
.reset-btn{
    background:#e53935;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:6px;
    cursor:pointer;
}

.reset-btn:hover{
    background:#c62828;
}


/* ================= CANVAS ================= */
canvas{
    max-width:100%;
    margin-top:20px;
}


/* ================= FOOTER ================= */
.copyright{
    width:100%;
    text-align:center;
    color:#9e9e9e;
    font-size:13px;
    padding:20px 10px;
    background:#ffffff;
    border-top:1px solid #eee;
    line-height:1.6;

    margin-top:auto; /* KUNCI FOOTER DI BAWAH */
}


/* ================= MOBILE ================= */
@media (max-width:768px){

    .grid{
        grid-template-columns:1fr;
    }

    h1{
        font-size:22px;
    }

    h2{
        font-size:18px;
    }

    button{
        width:100%;
    }

    table{
        font-size:12px;
    }

}


/* ================= SMALL PHONE ================= */
@media (max-width:480px){

    body{
        font-size:13px;
    }

    .card{
        padding:15px;
    }

    input,
    select{
        padding:8px;
    }

    .copyright{
        font-size:12px;
        padding:15px 8px;
    }

}


/* ================= COPYRIGHT ================= */

.copyright{
    text-align:center;
    color:#9e9e9e;
    font-size:13px;
    padding:25px 10px;
    background:#ffffff;
    border-top:1px solid #eee;
    margin-top:40px;
    line-height:1.6;
}

/* Mobile */
@media(max-width:768px){
    .copyright{
        font-size:12px;
    }
}

/* ===== NAVBAR CENTER ===== */

.navbar{
    display: flex;
    justify-content: center;   /* Tengah horizontal */
    align-items: center;
    gap: 25px;                 /* Jarak antar menu */
    padding: 12px 0;
    background: #ffe6ef;       /* Sesuai tema pink */
    border-bottom: 2px solid #ff5c8d;
}

.navbar a{
    text-decoration: none;
    color: #ff5c8d;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

.navbar a:hover{
    color: #e94a78;
    text-decoration: underline;
}
