/* ===== CSS VARIABLES (SIMA UNUSA EXACT SYSTEM) ===== */
:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-left: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-color: rgba(15, 23, 42, 0.08);
    --warning-bg: #fef9e7;
    --warning-border: #fdebd0;
    --warning-text: #9a6b00;
    --toggle-bg: #cbd5e1;
    --toggle-dot: #ffffff;
    --btn-login-bg: #32946A;
    --btn-login-hover: #287d59;
    --btn-login-shadow: rgba(50, 148, 106, 0.25);
}

/* ===== DARK MODE ===== */
body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-left: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.35);
    --warning-bg: #2d2006;
    --warning-border: #4d3609;
    --warning-text: #fbbf24;
    --toggle-bg: #334155;
    --toggle-dot: #f1f5f9;
    --btn-login-bg: #32946A;
    --btn-login-hover: #3ba87a;
    --btn-login-shadow: rgba(50, 148, 106, 0.35);
}

/*html,
body {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: url('../images/bg-unusa.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    transition: background-color 0.3s ease;
    margin: 0;
    padding: 0;
}*/
html,
body {
    min-height: 100vh;
    height: auto !important; /* Mengubah height: 100vh menjadi auto */
    overflow-x: hidden !important; /* Cegah scroll samping */
    overflow-y: auto !important;   /* Aktifkan scroll atas-bawah */
    background: url('../images/bg-unusa.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    transition: background-color 0.3s ease;
    margin: 0;
    padding: 0;
}

/*.container-landing {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}*/

.container-landing {
    min-height: 100vh;
    height: auto !important; /* Hapus height: 100vh fixed */
    max-height: none !important; /* Hapus batas max-height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px; /* Berikan ruang di atas & bawah */
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

/* ===== CARD UTAMA ===== */
.landing-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 16px 45px var(--shadow-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* ===== HEADER TOP ===== */
.header-top {
    width: 100%;
    padding: 16px 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-top .brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-top .brand .satuan {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.header-top .brand .sim {
    color: #32946A;
}

/* ===== TOGGLE DARK MODE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.theme-toggle .toggle-track {
    width: 46px;
    height: 24px;
    background: var(--toggle-bg);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s ease;
    cursor: pointer;
}

.theme-toggle .toggle-track .toggle-dot {
    width: 18px;
    height: 18px;
    background: var(--toggle-dot);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

body.dark-mode .theme-toggle .toggle-track .toggle-dot {
    left: 25px;
}

.theme-toggle .toggle-icon {
    font-size: 17px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.theme-toggle .toggle-icon.active {
    color: #32946A;
}

/* ===== MAIN CONTENT SPLIT COLUMNS ===== */
.landing-content {
    display: flex;
    width: 100%;
}

/* ===== SISI KIRI: INFORMASI APLIKASI ===== */
.landing-left {
    flex: 0 0 58%;
    max-width: 58%;
    padding: 1.2rem 2.5rem;
    background: var(--bg-left);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transition: background 0.3s ease;
}

.landing-left .badge-version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(50, 148, 106, 0.12);
    color: #32946A;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    width: fit-content;
}

.landing-left h1 {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.landing-left h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.landing-left .subtitle {
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.65;
    margin-bottom: 10px;
    max-width: 95%;
    transition: color 0.3s ease;
}

/* ===== TOMBOL LOGIN KE PORTAL ===== */
.btn-login-wrapper {
    margin-bottom: 16px;
}

.btn-login-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--btn-login-bg);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px var(--btn-login-shadow);
    cursor: pointer;
    letter-spacing: 0.3px;
    width: fit-content;
}

.btn-login-green:hover {
    background: var(--btn-login-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(50, 148, 106, 0.38);
    color: #ffffff !important;
    text-decoration: none;
}

.landing-left .info-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    transition: border-color 0.3s ease;
}

.landing-left .info-footer span {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.landing-left .info-footer .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 8px #22c55e;
}

/* ===== SISI KANAN: LOGO & VECTOR ===== */
.landing-right {
    flex: 0 0 42%;
    max-width: 42%;
    padding: 2.25rem 2.5rem;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    transition: background 0.3s ease;
    border-left: 1px solid var(--border-color);
}

.landing-right .logo-image {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== WARNING BOX ===== */
.warning-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 14px;
    text-align: left;
    width: 100%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.warning-box h5 {
    color: var(--warning-text);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.warning-box p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 991.98px) {

    html,
    body,
    .container-landing {
        overflow-y: auto !important;
        height: auto !important;
    }

    .container-landing {
        padding: 15px 10px;
    }

    .landing-content {
        flex-direction: column;
    }

    .landing-left,
    .landing-right {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 1.5rem;
    }

    .landing-right {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .btn-login-green {
        width: 100%;
    }
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
    border-radius: 0.5rem !important;
    border-color: #dee2e6;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}
.select2-container--open {
    z-index: 999999 !important;
}
.select2-dropdown {
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #e9ecef;
}
.select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd !important;
}
/* Avatar Initial Circle */
.avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

:root {
    --app-primary:     #32946a;
    --app-primary-rgb: 50, 148, 106;
    --app-sidebar:     #ffffff;
    --app-navbar:      #ffffff;
}
/* Sidebar */
.app-sidebar {
    background: var(--app-sidebar) !important;
}
/* Navbar */
.app-header  {
    background-color: var(--app-navbar) !important;
}
/* App Wrapper Texture Background */
.app-wrapper {
    background: url('https://akbar.unusa.ac.id/ci4-starter/assets/images/bgtexture-unusa.png') repeat center top fixed !important;
    background-size: cover !important;
}
/* Primary elements */
.btn-primary                      {
    background-color: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
}
.btn-outline-primary              {
    color: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
}
.btn-outline-primary:hover        {
    background-color: var(--app-primary) !important;
    color: #fff !important;
}
.bg-primary                       {
    background-color: var(--app-primary) !important;
}
.text-primary                     {
    color: var(--app-primary) !important;
}
.border-primary                   {
    border-color: var(--app-primary) !important;
}
.badge.bg-primary                 {
    background-color: var(--app-primary) !important;
}
.bg-primary-subtle                {
    background-color: rgba(var(--app-primary-rgb), 0.15) !important;
}
/* Active sidebar menu item */
.side-menu__item.active           {
    color: var(--app-primary) !important;
}
.side-menu__item.active .side-menu__label {
    color: var(--app-primary) !important;
}
.side-menu__item.active .side_menu_icon i {
    color: var(--app-primary) !important;
}
/* Nav pills */
.nav-pills .nav-link.active       {
    background-color: var(--app-primary) !important;
}
/* Page header breadcrumb active */
.breadcrumb-item.active           {
    color: var(--app-primary) !important;
}
/* Form focus */
.form-control:focus, .form-select:focus {
    border-color: var(--app-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--app-primary-rgb), 0.2) !important;
}
/* Compact & Sleek DataTables Pagination & Info Global Styling */
.dataTables_paginate,
div.dataTables_paginate,
.dt-paging,
.pagination {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
}

.pagination .page-item .page-link,
.dataTables_paginate .pagination .page-link,
.dt-paging .pagination .page-link {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    min-width: 28px !important;
    height: 28px !important;
    line-height: 1.25 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.375rem !important;
    margin: 0 2px !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(var(--app-primary-rgb), 0.3) !important;
}

.pagination .page-link {
    color: #495057;
    border-color: #e9ecef;
}

.pagination .page-link:hover {
    color: var(--app-primary);
    background-color: rgba(var(--app-primary-rgb), 0.08);
    border-color: rgba(var(--app-primary-rgb), 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd !important;
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    opacity: 0.7;
}

.dataTables_info,
div.dataTables_info,
.dt-info {
    font-size: 0.8125rem !important;
    color: #6c757d !important;
    padding-top: 0.35rem !important;
}

.dataTables_length,
div.dataTables_length,
.dt-length {
    font-size: 0.8125rem !important;
    color: #6c757d !important;
}

/* DataTables Length Menu Select Box Fix */
.dataTables_length select,
div.dataTables_length select,
.dt-length select {
    min-width: 68px !important;
    height: 30px !important;
    font-size: 0.8125rem !important;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    padding-right: 1.6rem !important;
    padding-left: 0.5rem !important;
    display: inline-block !important;
}
/* Dropdown active */
.dropdown-item.active, .dropdown-item:active {
    background-color: var(--app-primary) !important;
}
/* Checkbox & radio */
.form-check-input:checked         {
    background-color: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
}
/* Select2 option hover & selected white font color */
.select2-results__option--highlighted,
.select2-results__option--highlighted[aria-selected],
.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--app-primary) !important;
    color: #ffffff !important;
}
.select2-results__option--highlighted *,
.select2-results__option--highlighted[aria-selected] *,
.select2-container--bootstrap-5 .select2-results__option--highlighted * {
    color: #ffffff !important;
}
/* Select2 Single Selection Middle Align */
.select2-container .select2-selection--single,
.select2-container--bootstrap-5 .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    min-height: 38px !important;
}
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

html, body, .account-pages {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    background: url('../images/bg-unusa.png') no-repeat center center fixed !important;
    background-size: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*.account-pages {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}*/

.account-pages {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.auth-bg {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
}

.login-card-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    max-height: calc(100vh - 30px);
}

.login-left-col {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    height: 100%;
}

.login-right-col {
    padding: 2.25rem 2.25rem;
    background: #ffffff;
}

.login-vector-img {
    max-height: 250px;
    width: auto;
}

@media (min-height: 800px) {
    .login-vector-img {
        max-height: 280px;
    }
    .login-left-col {
        padding: 2.5rem;
    }
    .login-right-col {
        padding: 2.75rem 2.5rem;
    }
}

@media (max-width: 991.98px) {
    html, body, .account-pages {
        overflow-y: auto !important;
        height: auto !important;
    }
    .login-right-col {
        padding: 2rem 1.5rem;
    }
    .login-left-col {
        padding: 1.5rem;
    }
}

.login-input-group {
    position: relative;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.login-input-group:focus-within {
    border-bottom-color: #32946a !important;
}

.login-input-group .input-icon-left {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 19px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.login-input-group:focus-within .input-icon-left {
    color: #32946a !important;
}

.login-input-group .form-control {
    border: none !important;
    border-radius: 0 !important;
    padding-left: 36px !important;
    padding-right: 40px !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 48px;
    font-size: 14.5px;
    color: #1e293b;
    font-weight: 450;
}

.login-input-group .form-control::placeholder {
    color: #94a3b8;
}

.login-input-group .toggle-password {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.login-input-group .toggle-password:hover {
    color: #32946a !important;
}

/* Pill Buttons */
.btn-signin-pill {
    background: #32946a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    height: 48px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 20px rgba(50, 148, 106, 0.25) !important;
    transition: all 0.3s ease !important;
}

.btn-signin-pill:hover,
.btn-signin-pill:focus {
    background: #32946a !important;
    filter: brightness(0.9);
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(50, 148, 106, 0.35) !important;
    transform: translateY(-1px) !important;
}

.btn-sso-pill {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.btn-sso-pill:hover,
.btn-sso-pill:focus {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.divider-or {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider-or span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 13px;
}