body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* BACKGROUND GAMBAR */
.bg {
    background: url('../img/background_perumda.png') no-repeat center;
    background-size: cover;
    background-size: cover;
    height: 100vh;
    position: relative;
}

/* OVERLAY CERAH */
.bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0, 80, 255, 0.35),
        rgba(0, 40, 150, 0.4)
    );

    backdrop-filter: blur(3px);
}

/* CENTER */
.login-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* CARD */
.login-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    width: 330px;
    text-align: center;
    color: #ffffff;

    box-shadow: 
        0 15px 40px rgba(0,0,0,0.2),
        0 0 25px rgba(255, 255, 255, 0.2);

    animation: fadeIn 0.8s ease;
}
.options label {
    color: white;
}
.login-card .options a {
    color: white !important;
}

.login-card .options a:hover {
    color: #cce0ff !important;
}
.login-card a {
    color: white !important;
}

/* LOGO */
.logo {
    width: 150px;
    transform: scale(1.15);
    margin-bottom: 0;
}


/* TITLE */
.login-card h2 {
    font-size: 30px;
    margin-top: 5px;
    margin-bottom: 2px;
    color: #ffff;
}

/* SUBTITLE */
.subtitle {
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #3a4a7a;
}

/* INPUT */
.field {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255,255,255,0.85); /* lebih bersih */
    border-radius: 12px;
    padding: 10px 12px;
    margin: 12px 0;

    border: 1px solid rgba(255,255,255,0.9);
}
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #000 !important;
}
/* INPUT TEXT */
.field input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: #333;
    font-size: 14px;
}

/* PLACEHOLDER */
.field input::placeholder {
    color: #666;
}

/* ICON */
.field i {
    color: #2d5cff;
    cursor: pointer;
}


/* OPTIONS */
.options {
    text-align: left;
    font-size: 12px;
    margin: 8px 0;
    color: #333;
}
.options a {
    color: white !important;
    text-decoration: none;
    font-size: 12px;
}

.options a:hover {
    color: #cce0ff !important;
    text-decoration: underline;
}


/* BUTTON */
button {
    width: 100%;
    padding: 11px;

    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 12px;

    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 12px;

    transition: 0.3s;
}

/* HOVER */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.4);
}

/* COPYRIGHT */
.copyright {
    margin-top: 15px;
    font-size: 12px;
    color: white;
    opacity: 0.85;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    
}
/* =======/* ================= RESET ================= */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* ================= HEADER ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px; /* ⬅️ biar tidak mepet kiri kanan */

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* WRAPPER KIRI */
.navbar .d-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LOGO */
.navbar img {
    display: block;
}

/* TEXT */
#logoText {
    font-size: 21px;
     color: white !important;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1; /* ⬅️ sejajarin vertikal */
}

/* ICON MENU */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-left: 14px; /* ⬅️ JARAK KE KANAN (INI KUNCI) */

    background: none;
    border: none;
    color: white;
    font-size: 18px;

    cursor: pointer;
    padding: 0;
}

.menu-toggle i {
    display: flex;
    align-items: center;
}

/* HOVER HALUS */
.menu-toggle:hover {
    opacity: 0.8;
}

/* ================= SIDEBAR ================= */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 230px;
    height: calc(100vh - 60px);

    background: #ffffff;
    border-right: 1px solid #e5e7eb;

    display: flex;
    flex-direction: column;

    transition: 0.3s;
}

/* COLLAPSE */
.sidebar.collapsed {
    width: 70px;
    
}
/* SEMBUNYIKAN SUBMENU SAAT COLLAPSE */
.sidebar.collapsed .collapse {
    display: none !important;
}
/* TEXT HILANG */
.sidebar.collapsed .menu-text {
    display: none;
}

/* ICON CENTER */
.sidebar.collapsed .nav-link {
    justify-content: center;
}

/* ================= CONTENT ================= */
.content {
    position: fixed;
    top: 60px;
    left: 230px;

    width: calc(100% - 230px);
    height: calc(100vh - 60px);

    overflow-y: auto;
    padding: 25px;

    background: #f4f6fb;
    transition: 0.3s;
}

/* SAAT COLLAPSE */
.sidebar.collapsed ~ .content {
    left: 70px;
    width: calc(100% - 70px);
}

/* ================= MENU ================= */
.sidebar .nav {
    margin-top: 10px;
}

/* MENU UTAMA */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 13px;
    font-weight: 500;

    padding: 10px 16px;
    border-radius: 8px;
    color: #374151;
}

/* ICON */
.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

/* HOVER */
.sidebar .nav-link:hover {
    background: #eef2ff;
    color: #2563eb;
}

/* ACTIVE */
.sidebar .nav-link.active {
    background: #2563eb;
    color: #fff;
}

/* ================= SUBMENU ================= */
.sidebar .collapse {
    margin-left: 28px;
}

.sidebar .collapse .nav-link {
    font-size: 12px;
    padding: 6px 0;
    color: #6b7280;
}

.sidebar .collapse .nav-link i {
    width: 16px;
    font-size: 12px;
}

/* ================= LOGOUT ================= */
.sidebar .mt-auto {
    margin-top: auto !important;
    padding: 10px;
}

.sidebar .btn-danger {
    font-size: 13px;
    border-radius: 8px;
    border: none !important;   /* ⬅️ hilangkan garis merah */
}

/* LOGOUT SAAT COLLAPSE */
.sidebar.collapsed .btn-danger {
    width: auto;
    padding: 8px;
    display: flex;
    justify-content: center;
}

/* SEMBUNYIKAN TEXT LOGOUT */
.sidebar.collapsed .btn-danger span {
    display: none;
}
.sidebar.collapsed .btn-danger i {
    margin: 0;
}
/* ================= SCROLL ================= */
.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.footer-text {
    margin-top: auto;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding: 15px 0;
}


.custom-btn {
    height: 33px;
    width: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border-radius: 6px;

    position: relative;
    top: -6px; /* naikkan lagi dikit */
}
.aksi-icon {
    font-size: 15px;
    color: #000 !important;
    cursor: pointer;
}

button:focus {
    outline: none !important;
    box-shadow: none !important;
}