body {
    background-color: #fdf6ec;
    font-family: 'Segoe UI', sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #d35400, #e67e22);
}

/* Sidebar */
.sidebar {
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid #eee;
    padding-top: 20px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    border-radius: 8px;
    margin: 5px 10px;
}

.sidebar a:hover {
    background-color: #fdebd0;
    color: #d35400;
}

.sidebar a.active {
    background-color: #e67e22;
    color: #fff;
}

/* Content */
.content {
    padding: 20px;
}

/* Card */
.card {
    border-radius: 14px;
    border: none;
}

/* Title */
.title {
    color: #d35400;
    font-weight: bold;
}

.sidebar a.active {
    background-color: #a65300;
    color: #fff !important;
    font-weight: bold;
    border-radius: 8px;
}

.sidebar a {
    display: block;
    padding: 10px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #c96a04;
    color: #fff;
}

/* ===== LOGIN STYLE (CENTER + KOTAK FIX) ===== */

body.login-page {
    background-color: #fdf6ec;
    position: relative;
    height: 100vh;
    margin: 0;
}

/* box login */
.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 100%;
    max-width: 380px; /* 🔥 ini bikin kotak */
}

/* card login */
.login-box .card {
    width: 100%;
    max-width: 100%;
    margin: auto;

    border-radius: 12px;
    padding: 25px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

    text-align: center;
}

/* input */
.login-box input {
    height: 45px;
    border-radius: 8px;
}

/* input group */
.login-box .input-group {
    width: 100%;
}

/* button */
.login-box button {
    height: 45px;
    border-radius: 8px;
    font-weight: 500;
}

/* title */
.login-box h3 {
    font-size: 22px;
}

/* subtitle */
.login-box p {
    font-size: 14px;
    color: #777;
}

/* garis atas */
.login-box .card::before {
    content: "";
    display: block;
    height: 4px;
    background: #27ae60;
    border-radius: 10px 10px 0 0;
    margin: -25px -25px 15px -25px;
}

/* animasi */
.login-box {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===== FORCE LOGIN JADI KOTAK (FIX TOTAL) ===== */

body.login-page {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
}

/* box */
.login-box {
    position: static !important;
    transform: none !important;

    width: 100% !important;
    max-width: 350px !important;
}

/* card */
.login-box .card {
    width: 100% !important;
    max-width: 350px !important;
    margin: auto !important;
}

/* input biar ga melebar aneh */
.login-box input,
.login-box .input-group {
    width: 100% !important;
}