/* --- Global Base --- */
body {
    font-family: "Inter", sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    position: relative; /* Ini kuncinya! */
    margin: 0;
    padding-bottom: 60px; /* Kasih jarak buat footer supaya nggak numpuk */
    box-sizing: border-box;
}

/* --- Layout Utility --- */
.body-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    flex: 1;
}

/* --- UI Components --- */
.navbar-custom {
    background-color: #555aea;
    padding: 1rem 2rem;
    color: #fff;
}

.card-custom, .login-card, .setup-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2.5rem;
}

.login-card { max-width: 400px; width: 100%; box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.05); }
.setup-card { max-width: 450px; width: 100%; box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05); }

.brand-logo {
    width: 3rem; height: 3rem;
    background-color: #555aea; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.25rem;
    border-radius: 0.75rem; margin: 0 auto 1.5rem auto;
}

/* --- Forms --- */
.form-label { font-weight: 500; color: #334155; font-size: 0.875rem; margin-bottom: 0.4rem; }
.form-control {
    padding: 0.6rem 1rem; font-size: 0.875rem; border-radius: 0.5rem;
    border: 1px solid #cbd5e1; background-color: #fff;
    transition: all 0.15s ease-in-out; width: 100%;
}
.form-control:focus { border-color: #555aea; box-shadow: 0 0 0 4px rgb(85 90 234 / 0.15); outline: 0; }

/* --- Buttons --- */
.btn-primary-custom {
    background-color: #555aea; border: 1px solid #555aea; color: #fff;
    font-weight: 500; font-size: 0.875rem; padding: 0.7rem 1.5rem;
    border-radius: 0.5rem; transition: all 0.15s ease-in-out;
}
.btn-primary-custom:hover { background-color: #4348c8; border-color: #4348c8; color: #fff; }
.btn-primary-custom:focus { box-shadow: 0 0 0 4px rgb(85 90 234 / 0.3); }

/* --- Navigation & Utilities --- */
.nav-link-custom { color: rgb(255 255 255 / 0.7); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: 0.2s; }
.nav-link-custom:hover, .nav-link-custom.active { color: #fff; border-bottom: 2px solid #fff; }
.text-muted-custom { color: #64748b; font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.divider { border-top: 1px solid #e2e8f0; margin: 1.5rem 0; }

/* --- Modals & Footer --- */
.modal-backdrop { z-index: 1040 !important; }
.modal { z-index: 1050 !important; }
.footer-lock {
    position: absolute; /* Mengikuti container body yang punya relative */
    bottom: 0;
    width: 100%;
    height: 60px; /* Sama dengan padding-bottom body */
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-lock a {
    color: #555aea;
    text-decoration: none;
    font-weight: 600;
}
.footer-lock a:hover { text-decoration: underline; }