/* =========================================================
   IMS NETWORK
   Main Stylesheet
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    color: #263238;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.ims-wrapper {
    display: flex;
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #082e60;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}


/* LOGO */

.sidebar-logo {
    height: 76px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-right: 11px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 15px;
    letter-spacing: 0.4px;
}

.logo-text span {
    font-size: 10px;
    color: #9ca9b5;
    margin-top: 3px;
}


/* MENU */

.sidebar-menu {
    padding: 20px 12px;
    flex: 1;
}

.menu-title {
    font-size: 10px;
    font-weight: 600;
    color: #71808d;
    letter-spacing: 1px;
    padding: 12px 12px 7px;
}

.menu-item {
    height: 44px;
    padding: 0 12px;
    margin-bottom: 4px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    color: #b7c1ca;
    font-size: 13px;
    transition: all 0.15s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.menu-item.active {
    background: #2563eb;
    color: #ffffff;
}

.menu-item.active .menu-icon {
    color: #ffffff;
}

.menu-icon {
    width: 30px;
    font-size: 16px;
    text-align: center;
    margin-right: 5px;
}

/* SIDEBAR FOOTER */

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #788793;
    font-size: 11px;
}

.sidebar-footer small {
    color: #596875;
}


/* =========================================================
   MAIN AREA
   ========================================================= */

.main-area {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.top-header {
    height: 76px;
    background: #ffffff;
    border-bottom: 1px solid #e3e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.header-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    color: #596773;
    margin-right: 12px;
}

.sidebar-toggle:hover {
    background: #f1f3f5;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #263238;
}


/* USER */

.header-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 13px;
    font-weight: 600;
}

.user-info span {
    font-size: 11px;
    color: #7b8791;
    margin-top: 2px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content {
    padding: 28px;
    flex: 1;
}


/* =========================================================
   DASHBOARD HEADER
   ========================================================= */

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dashboard-heading h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #202a33;
}

.dashboard-heading p {
    margin: 6px 0 0;
    color: #7a8791;
    font-size: 13px;
}

.dashboard-date {
    font-size: 12px;
    color: #7a8791;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    padding: 9px 13px;
    border-radius: 6px;
}


/* =========================================================
   SUMMARY CARDS
   ========================================================= */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #e4e8ec;
    border-radius: 9px;
    min-height: 108px;
    padding: 18px;
    display: flex;
    align-items: center;
}

.summary-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #eaf1ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-right: 14px;
}

.summary-icon.online {
    background: #e9f8ef;
    color: #159447;
}

.summary-icon.offline {
    background: #fff0f0;
    color: #dc3545;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-info span {
    font-size: 12px;
    color: #7c8993;
    margin-bottom: 5px;
}

.summary-info strong {
    font-size: 25px;
    font-weight: 600;
    color: #263238;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
}


/* =========================================================
   PANEL
   ========================================================= */

.panel {
    background: #ffffff;
    border: 1px solid #e4e8ec;
    border-radius: 9px;
    overflow: hidden;
}

.panel-header {
    min-height: 70px;
    padding: 16px 20px;
    border-bottom: 1px solid #edf0f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #263238;
}

.panel-header span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #89949d;
}

.panel-link {
    font-size: 11px;
    color: #2563eb;
}

.panel-link:hover {
    text-decoration: underline;
}


/* =========================================================
   BRANCH LIST
   ========================================================= */

.branch-list {
    padding: 4px 20px;
}

.branch-item {
    min-height: 49px;
    border-bottom: 1px solid #f0f2f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branch-item:last-child {
    border-bottom: 0;
}

.branch-name {
    display: flex;
    align-items: center;
}

.branch-name strong {
    font-size: 12px;
    font-weight: 500;
    color: #37434d;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-dot.online {
    background: #20a55a;
}

.status-dot.offline {
    background: #dc3545;
}

.status-label {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 10px;
}

.status-label.online {
    background: #eaf8ef;
    color: #16894a;
}

.status-label.offline {
    background: #fff0f0;
    color: #d32f2f;
}


/* =========================================================
   NETWORK PANEL
   ========================================================= */

.network-summary {
    padding: 8px 20px;
}

.network-row {
    min-height: 49px;
    border-bottom: 1px solid #f0f2f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.network-row:last-child {
    border-bottom: 0;
}

.network-row span {
    font-size: 12px;
    color: #7b8790;
}

.network-row strong {
    font-size: 12px;
    font-weight: 500;
}

.text-online {
    color: #159447;
}


/* =========================================================
   FOOTER
   ========================================================= */

.main-footer {
    min-height: 48px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #89949d;
    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .sidebar {
        width: 220px;
    }

    .main-area {
        margin-left: 220px;
        width: calc(100% - 220px);
    }

    .content {
        padding: 18px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        display: none;
    }
}

/* =========================================================
   PAGE LOADING
   ========================================================= */

.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.page-loading.show {
    opacity: 1;
    visibility: visible;
}

.loading-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: imsLoadingSpin 0.7s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: #374151;
}

@keyframes imsLoadingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   NETWORK SUBMENU
   ========================================================= */

.menu-group #submenuNetwork {
    padding: 4px 0 8px;
}

.menu-group #submenuNetwork .submenu-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px 9px 47px;
    margin: 2px 0;

    color: #b7c1ca;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;

    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-group #submenuNetwork .submenu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.menu-group #submenuNetwork .submenu-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================
   TAB RINGKASAN - COMPACT
========================================== */
.tabel-ringkasan {
    font-size: 12.5px;
}

.tabel-ringkasan th {
    width: 190px;
    min-width: 150px;
    padding: 7px 12px;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #495057;
    vertical-align: middle;
}

.tabel-ringkasan td {
    padding: 7px 12px;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.tabel-ringkasan .status-label {
    font-size: 11px;
}

@media (max-width: 576px) {
    .tabel-ringkasan th {
        width: 135px;
        min-width: 110px;
    }
}

/* ==========================================
   TAB AKUN VPN - COMPACT
========================================== */
.tabel-akun-vpn {
    font-size: 12.5px;
    white-space: nowrap;
}

.tabel-akun-vpn th {
    padding: 8px 10px;
    font-weight: 600;
    vertical-align: middle;
}

.tabel-akun-vpn td {
    padding: 6px 10px;
    vertical-align: middle;
}

.tabel-akun-vpn .status-label {
    font-size: 11px;
}

.tabel-akun-vpn .btn-group .btn {
    padding: 4px 8px;
    font-size: 12px;
}

/* Kolom nomor lebih kecil */
.tabel-akun-vpn th:first-child,
.tabel-akun-vpn td:first-child {
    width: 45px;
    text-align: center;
}

/* Kolom Action tetap rata kanan */
.tabel-akun-vpn th:last-child,
.tabel-akun-vpn td:last-child {
    text-align: right;
}

/* ==========================================
   TABEL DAFTAR IP PUBLIC STATIC - COMPACT
========================================== */
.tabel-ip-public {
    font-size: 12.5px;
}

.tabel-ip-public th {
    padding: 8px 10px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

.tabel-ip-public td {
    padding: 7px 10px;
    vertical-align: middle;
}

.tabel-ip-public .status-label {
    font-size: 11px;
}

.tabel-ip-public .btn {
    font-size: 12px;
    padding: 4px 10px;
}

.tabel-ip-public .kolom-expire {
    white-space: nowrap;
}

.tabel-ip-public .kolom-expire span {
    font-size: 11px;
}

.tabel-ip-public th:first-child,
.tabel-ip-public td:first-child {
    width: 45px;
    text-align: center;
}

.tabel-ip-public th:last-child,
.tabel-ip-public td:last-child {
    width: 100px;
    text-align: center;
}

.tabel-ip-public td:nth-child(7) {
    min-width: 150px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ==========================================
   DASHBOARD PELANGGAN - COMPACT
========================================== */

/* Tabel layanan */
.tabel-dashboard-layanan {
    font-size: 12.5px;
}

.tabel-dashboard-layanan th {
    padding: 8px 10px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

.tabel-dashboard-layanan td {
    padding: 7px 10px;
    vertical-align: middle;
}

.tabel-dashboard-layanan th:first-child,
.tabel-dashboard-layanan td:first-child {
    width: 45px;
    text-align: center;
}

.tabel-dashboard-layanan .status-label {
    font-size: 11px;
}

.tabel-dashboard-layanan .kolom-expire {
    white-space: nowrap;
}

.tabel-dashboard-layanan .kolom-expire span {
    font-size: 11px;
}

/* Profil pelanggan */
.dashboard-profil-compact {
    font-size: 13px;
}

.dashboard-profil-compact .text-muted {
    font-size: 12px;
}

.dashboard-profil-compact strong {
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Kartu ringkasan */
.dashboard-heading h1 {
    font-size: 22px;
}

.summary-info span {
    font-size: 12px;
}

.summary-info strong {
    font-size: 21px;
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.panel-header span {
    font-size: 12px;
}

/* ==========================================
   IMS NETWORK - RESPONSIVE SIDEBAR
========================================== */

.sidebar,
.main-area {
    transition: width .25s ease,
                margin-left .25s ease,
                transform .25s ease;
}

.sidebar {
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-overlay {
    display: none;
}

.sidebar-close-btn {
    display: none;
}

/* DESKTOP - SIDEBAR DIPERKECIL */
@media (min-width: 769px) {

    body.sidebar-collapsed .sidebar {
        width: 72px;
    }

    body.sidebar-collapsed .main-area {
        margin-left: 72px;
        width: calc(100% - 72px);
    }

    body.sidebar-collapsed .sidebar-logo {
        justify-content: center;
        padding: 0 8px;
    }

    body.sidebar-collapsed .logo-icon {
        margin-right: 0;
        flex-shrink: 0;
    }

    body.sidebar-collapsed .logo-text,
    body.sidebar-collapsed .menu-title,
    body.sidebar-collapsed .menu-item > span:last-child,
    body.sidebar-collapsed .sidebar-footer {
        display: none;
    }

    body.sidebar-collapsed .sidebar-menu {
        padding: 20px 8px;
    }

    body.sidebar-collapsed .menu-item {
        justify-content: center;
        padding: 0;
    }

    body.sidebar-collapsed .menu-icon {
        width: auto;
        margin-right: 0;
        font-size: 19px;
    }
}

/* TABLET DAN HP */
@media (max-width: 768px) {

    .sidebar {
        width: 250px;
        transform: translateX(-100%);
        z-index: 1051;
    }

    .main-area {
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 6px;
        background: rgba(255,255,255,.1);
        color: #fff;
        cursor: pointer;
    }

    .sidebar-logo {
        padding: 0 15px;
    }

    .top-header {
        height: 62px;
        padding: 0 15px;
    }

    .page-title {
        font-size: 15px;
    }

    .content {
        padding: 15px;
        min-width: 0;
    }

    .main-footer {
        padding: 10px 15px;
    }
}

/* ==========================================
   PERBAIKAN POSISI TOMBOL X SIDEBAR HP
========================================== */

@media (max-width: 768px) {

    .sidebar-logo {
        position: relative;
        padding: 0 48px 0 15px;
    }

    .sidebar-close-btn {
        position: absolute;
        top: 12px;
        right: 10px;
        margin: 0;
        width: 28px;
        height: 28px;
        z-index: 2;
    }

    .sidebar-logo .logo-text {
        min-width: 0;
    }

    .sidebar-logo .logo-text strong {
        font-size: 14px;
        white-space: nowrap;
    }
}

/* LOGO ASLI IMS NETWORK */
.sidebar-logo .logo-icon {
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-logo .ims-logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* LOGO BRANDING IMS NETWORK */
.brand-logo {
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* BACKGROUND LOGO IMS NETWORK - DAFTAR */
.brand-panel .brand-content .brand-logo {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-panel .brand-content .brand-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}


/* =========================================================
   LOGIN & REGISTER - MOVED FROM INLINE STYLES
   ========================================================= */

/* ===== AUTH AUTH-LOGIN ===== */
body.auth-login * {
box-sizing: border-box;
}

body.auth-login {
margin: 0;
            min-height: 100%;
            font-family: "Segoe UI", Arial, sans-serif;
            color: #17213b;
            background: #ffffff;
}

body.auth-login .login-wrapper {
display: flex;
            min-height: 100vh;
}

body.auth-login .login-panel {
width: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px 28px;
            background: #ffffff;
}

body.auth-login .login-content {
width: 100%;
            max-width: 435px;
}

body.auth-login .login-title {
font-size: 25px;
            font-weight: 700;
            text-align: center;
            color: #101936;
            margin-bottom: 8px;
}

body.auth-login .login-subtitle {
text-align: center;
            color: #8290aa;
            font-size: 13px;
            margin-bottom: 30px;
}

body.auth-login .form-group {
margin-bottom: 19px;
}

body.auth-login .form-label {
font-size: 13px;
            color: #33415c;
            margin-bottom: 7px;
}

body.auth-login .form-control {
min-height: 45px;
            border: 1px solid #d7dfeb;
            border-radius: 7px;
            padding: 10px 13px;
            font-size: 13px;
}

body.auth-login .form-control:focus {
border-color: #2780f5;
            box-shadow: 0 0 0 3px rgba(39, 128, 245, .12);
}

body.auth-login .form-control::placeholder {
color: #9aa6bd;
}

body.auth-login .password-wrap {
position: relative;
}

body.auth-login .password-wrap .form-control {
padding-right: 65px;
}

body.auth-login .toggle-password {
position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            border: 0;
            background: transparent;
            color: #64748b;
            font-size: 12px;
            cursor: pointer;
}

body.auth-login .btn-login {
min-height: 45px;
            width: 100%;
            background: #247df0;
            border: 1px solid #247df0;
            border-radius: 7px;
            color: #ffffff;
            font-size: 14px;
            font-weight: 600;
            margin-top: 7px;
}

body.auth-login .btn-login:hover {
background: #1468d6;
            border-color: #1468d6;
            color: #ffffff;
}

body.auth-login .register-link {
text-align: center;
            margin-top: 23px;
            color: #8290aa;
            font-size: 13px;
}

body.auth-login .text-link {
color: #1477f8;
            text-decoration: none;
}

body.auth-login .text-link:hover {
text-decoration: underline;
}

body.auth-login .brand-panel {
width: 50%;
            min-height: 100vh;
            padding: 45px;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: #ffffff;
            background: linear-gradient(135deg,
                    #123b70 0%,
                    #1765aa 55%,
                    #2563eb 100%);
}

body.auth-login .brand-content {
max-width: 530px;
}

body.auth-login .brand-logo {
width: 100px;
            height: 100px;
            margin: 0 auto 25px;
            border-radius: 25px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #247df0;
            background: #ffffff;
            font-size: 33px;
            font-weight: 800;
            letter-spacing: -2px;
}

body.auth-login .brand-title {
font-size: 28px;
            font-weight: 750;
            margin-bottom: 15px;
}

body.auth-login .brand-description {
color: #e0edff;
            font-size: 13px;
            line-height: 1.8;
}

body.auth-login .alert {
font-size: 13px;
            border-radius: 7px;
}

@media (max-width: 850px) {
body.auth-login .login-panel {
width: 100%;
                padding: 30px 22px;
}

body.auth-login .brand-panel {
display: none;
}

body.auth-login .login-content {
max-width: 480px;
}
}

/* ===== AUTH AUTH-REGISTER ===== */
body.auth-register * {
box-sizing: border-box;
}

body.auth-register {
margin: 0;
            min-height: 100%;
            font-family: "Segoe UI", Arial, sans-serif;
            color: #17213b;
            background: #ffffff;
}

body.auth-register .register-wrapper {
display: flex;
            min-height: 100vh;
}

body.auth-register .register-panel {
width: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 35px 28px;
            background: #ffffff;
}

body.auth-register .register-content {
width: 100%;
            max-width: 435px;
}

body.auth-register .register-title {
font-size: 27px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 32px;
            color: #101936;
}

body.auth-register .form-label {
font-size: 14px;
            color: #33415c;
            margin-bottom: 7px;
}

body.auth-register .form-control {
min-height: 45px;
            border: 1px solid #d7dfeb;
            border-radius: 7px;
            padding: 8px 10px;
            font-size: 13px;
}

body.auth-register .form-control:focus {
border-color: #2780f5;
            box-shadow: 0 0 0 3px rgba(39, 128, 245, .12);
}

body.auth-register .form-control::placeholder {
color: #9aa6bd;
}

body.auth-register .form-group {
margin-bottom: 10px;
}

body.auth-register .password-wrap {
position: relative;
}

body.auth-register .password-wrap .form-control {
padding-right: 72px;
}

body.auth-register .toggle-password {
position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            border: 0;
            background: transparent;
            color: #64748b;
            font-size: 12px;
            cursor: pointer;
}

body.auth-register .password-help {
color: #8290aa;
            font-size: 12px;
            line-height: 1.5;
            margin-top: 5px;
}

body.auth-register .form-check {
margin: 22px 0;
}

body.auth-register .form-check-input {
width: 19px;
            height: 19px;
            margin-top: 3px;
            cursor: pointer;
}

body.auth-register .form-check-label {
font-size: 13px;
            line-height: 1.65;
            padding-left: 5px;
            color: #35435f;
}

body.auth-register .text-link {
color: #1477f8;
            text-decoration: none;
}

body.auth-register .text-link:hover {
text-decoration: underline;
}

body.auth-register .btn-register {
min-height: 46px;
            width: 100%;
            color: #ffffff;
            background: #247df0;
            border: 1px solid #247df0;
            border-radius: 7px;
            font-weight: 600;
}

body.auth-register .btn-register:hover {
background: #1468d6;
            color: #ffffff;
}

body.auth-register .login-link {
text-align: center;
            margin-top: 22px;
            color: #8290aa;
            font-size: 14px;
}

body.auth-register .brand-panel {
width: 50%;
            min-height: 100vh;
            padding: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: #ffffff;
            background:
                radial-gradient(circle at 90% 10%,
                    rgba(53, 69, 105, .30),
                    transparent 35%),
                #171722;
}

body.auth-register .brand-content {
max-width: 530px;
}

body.auth-register .brand-logo {
width: 105px;
            height: 105px;
            margin: 0 auto 28px;
            border-radius: 26px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #ffffff;
            background: #ffffff;
            font-weight: 800;
            font-size: 35px;
            letter-spacing: -2px;
            box-shadow: 0 12px 40px rgba(36, 125, 240, .22);
}

body.auth-register .brand-title {
font-size: 31px;
            font-weight: 750;
            margin-bottom: 17px;
}

body.auth-register .brand-description {
color: #d4d7e2;
            font-size: 14px;
            line-height: 1.8;
}

body.auth-register .alert {
font-size: 13px;
            border-radius: 7px;
}

@media (max-width: 850px) {
body.auth-register .register-panel {
width: 100%;
                padding: 30px 22px;
}

body.auth-register .brand-panel {
display: none;
}

body.auth-register .register-content {
max-width: 480px;
}
}

body.auth-register .register-title {
font-size: 22px;
            margin-bottom: 14px;
}

body.auth-register .form-label {
font-size: 13px;
            margin-bottom: 3px;
}

body.auth-register .form-control {
font-size: 13px;
            min-height: 43px;
}

body.auth-register .password-help {
font-size: 11px;
}

body.auth-register .form-check-label {
font-size: 12px;
            line-height: 1.6;
}

body.auth-register .login-link {
font-size: 13px;
}

body.auth-register .brand-panel {
background: linear-gradient(135deg,
                    #123b70 0%,
                    #1765aa 55%,
                    #2563eb 100%);
}

body.auth-register .brand-title {
font-size: 27px;
}

body.auth-register .brand-description {
font-size: 13px;
line-height: 1.7;
}


/* Dropdown Manajemen Layanan */
.sidebar-dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.sidebar-dropdown > summary::-webkit-details-marker {
    display: none;
}

.sidebar-dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sidebar-dropdown[open] .sidebar-dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    margin: 4px 0 8px 20px;
    padding-left: 15px;
    border-left: 1px solid rgba(148, 163, 184, 0.25);
}

.sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-submenu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}


/* Active submenu Manajemen Layanan */
.sidebar-submenu-item.active {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    font-weight: 600;
}

.sidebar-submenu-item.active i {
    color: #60a5fa;
}


/* =========================================================
   BRAND CONSISTENCY & SIDEBAR ADMIN DIVIDER
   ========================================================= */
.sidebar-dropdown {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 10px;
    padding-top: 10px;
}

/* =========================================================
   LOGIN V2 - SHARED STYLES (MOVED FROM LOGIN VIEW)
   Scoped to body.auth-login.ims-login-v2
   ========================================================= */
/* Khusus login baru; tidak mengubah halaman lain. */
body.auth-login.ims-login-v2 {

    margin: 0;

    min-height: 100vh;

    background: #f3f7fc;

    color: #172c48;

    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;

}

body.auth-login.ims-login-v2 .ims-shell {

    min-height: 100vh;

    display: grid;

    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);

}

body.auth-login.ims-login-v2 .ims-hero {

    position: relative;

    overflow: hidden;

    padding: clamp(32px, 5vw, 80px);

    background: linear-gradient(145deg, #082e60 0%, #0a5591 62%, #117cb5 100%);

    color: #fff;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    gap: 45px;

}

body.auth-login.ims-login-v2 .ims-hero:before {

    content: "";

    position: absolute;

    width: 540px;

    height: 540px;

    border: 1px solid rgba(255, 255, 255, .16);

    border-radius: 50%;

    right: -240px;

    top: 9%;

    box-shadow: 0 0 0 85px rgba(255, 255, 255, .035), 0 0 0 170px rgba(255, 255, 255, .025);

    pointer-events: none;

}

body.auth-login.ims-login-v2 .ims-hero:after {

    content: "";

    position: absolute;

    width: 330px;

    height: 330px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .055);

    bottom: -180px;

    left: -90px;

    pointer-events: none;

}

body.auth-login.ims-login-v2 .ims-hero>* {

    position: relative;

    z-index: 1;

}

body.auth-login.ims-login-v2 .ims-identity {

    display: flex;

    align-items: center;

    gap: 14px;

}

body.auth-login.ims-login-v2 .ims-logo {

    width: 66px;

    height: 66px;

    object-fit: contain;

    background: #fff;

    border-radius: 18px;

    padding: 9px;

}

body.auth-login.ims-login-v2 .ims-product {

    font-size: 26px;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -.6px;

}

body.auth-login.ims-login-v2 .ims-product-sub {

    color: #c7e6ff;

    font-size: 13px;

    margin-top: 5px;

}

body.auth-login.ims-login-v2 .ims-eyebrow {

    text-transform: uppercase;

    letter-spacing: 2.5px;

    color: #9dd7ff;

    font-weight: 700;

    font-size: 12px;

}

body.auth-login.ims-login-v2 .ims-headline {

    font-size: clamp(34px, 3.6vw, 58px);

    font-weight: 600;

    line-height: 1.17;

    letter-spacing: -1.2px;

    max-width: 650px;

    margin: 18px 0;

}

body.auth-login.ims-login-v2 .ims-hero-description {

    color: #d6e9f9;

    max-width: 540px;

    font-size: 16px;

    line-height: 1.8;

}

body.auth-login.ims-login-v2 .ims-features {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    max-width: 560px;

    margin-top: 28px;

}

body.auth-login.ims-login-v2 .ims-feature {

    padding: 15px 17px;

    border: 1px solid rgba(255, 255, 255, .2);

    border-radius: 14px;

    background: rgba(255, 255, 255, .085);

    font-size: 14px;

    font-weight: 600;

}

body.auth-login.ims-login-v2 .ims-feature span {

    display: block;

    color: #a8d9fa;

    font-size: 11px;

    font-weight: 500;

    margin-top: 5px;

}

body.auth-login.ims-login-v2 .ims-hero-credit {

    font-size: 12px;

    color: #d0e6f8;

}

body.auth-login.ims-login-v2 .ims-form-side {

    padding: 35px clamp(25px, 6vw, 90px);

    display: flex;

    align-items: center;

    justify-content: center;

}

body.auth-login.ims-login-v2 .ims-form-card {

    width: 100%;

    max-width: 430px;

}

body.auth-login.ims-login-v2 .ims-lock {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    background: #e4f0fd;

    color: #15588f;

    padding: 9px 13px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 700;

}

body.auth-login.ims-login-v2 .login-title {

    font-size: 35px;

    font-weight: 800;

    letter-spacing: -.8px;

    margin: 22px 0 8px;

    color: #15314f;

}

body.auth-login.ims-login-v2 .login-subtitle {

    color: #687d93;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 28px;

}

body.auth-login.ims-login-v2 .form-group {

    margin-bottom: 20px;

}

body.auth-login.ims-login-v2 .form-label {

    display: block;

    font-size: 13px;

    font-weight: 700;

    color: #284460;

    margin-bottom: 9px;

}

body.auth-login.ims-login-v2 .form-control {

    height: 50px;

    border: 1px solid #d5e0eb;

    border-radius: 12px;

    background: #fff;

    padding: 12px 15px;

    color: #172c48;

    box-shadow: none;

}

body.auth-login.ims-login-v2 .form-control:focus {

    border-color: #2786c9;

    box-shadow: 0 0 0 3px rgba(39, 134, 201, .12);

}

body.auth-login.ims-login-v2 .password-wrap {

    position: relative;

}

body.auth-login.ims-login-v2 .password-wrap .form-control {

    padding-right: 105px;

}

body.auth-login.ims-login-v2 .toggle-password {

    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    background: transparent;

    border: 0;

    color: #1466a0;

    font-weight: 700;

    font-size: 12px;

    padding: 10px;

    cursor: pointer;

}

body.auth-login.ims-login-v2 .form-check {

    margin: 7px 0 24px;

}

body.auth-login.ims-login-v2 .form-check-label {

    font-size: 13px;

    color: #50677f;

}

body.auth-login.ims-login-v2 .btn-login {

    display: block;

    width: 100%;

    padding: 13px;

    border-radius: 12px;

    color: #fff;

    background: linear-gradient(100deg, #1167ae, #0d89be);

    border: 0;

    font-size: 15px;

    font-weight: 700;

}

body.auth-login.ims-login-v2 .btn-login:hover {

    color: #fff;

    background: linear-gradient(100deg, #0b5594, #0875a6);

}

body.auth-login.ims-login-v2 .ims-notice {

    margin-top: 22px;

    border: 1px solid #dce7f1;

    background: #eef4fa;

    color: #55718a;

    border-radius: 12px;

    padding: 14px;

    font-size: 12px;

    line-height: 1.6;

}

body.auth-login.ims-login-v2 .ims-footer {

    text-align: center;

    font-size: 12px;

    color: #8192a5;

    margin-top: 38px;

}
/* Laptop 1366x768: rapatkan jarak agar seluruh konten muat tanpa scroll. */
@media (min-width:901px) and (max-height:800px) {

    body.auth-login.ims-login-v2 .ims-hero {

        padding: 30px clamp(30px, 5.2vw, 72px);

        gap: 16px;

    }

    body.auth-login.ims-login-v2 .ims-logo {

        width: 60px;

        height: 60px;

    }

    body.auth-login.ims-login-v2 .ims-product {

        font-size: 24px;

    }

    body.auth-login.ims-login-v2 .ims-headline {

        font-size: clamp(32px, 3.2vw, 38px);

        margin: 12px 0;

        line-height: 1.13;

    }

    body.auth-login.ims-login-v2 .ims-hero-description {

        font-size: 14px;

        line-height: 1.55;

        margin-bottom: 0;

    }

    body.auth-login.ims-login-v2 .ims-features {

        margin-top: 18px;

        gap: 10px;

    }

    body.auth-login.ims-login-v2 .ims-feature {

        padding: 11px 14px;

    }

    body.auth-login.ims-login-v2 .ims-form-side {

        padding: 22px clamp(25px, 5vw, 70px);

    }

    body.auth-login.ims-login-v2 .login-title {

        font-size: 30px;

        margin: 16px 0 5px;

    }

    body.auth-login.ims-login-v2 .login-subtitle {

        margin-bottom: 20px;

    }

    body.auth-login.ims-login-v2 .form-group {

        margin-bottom: 15px;

    }

    body.auth-login.ims-login-v2 .form-control {

        height: 46px;

    }

    body.auth-login.ims-login-v2 .form-check {

        margin: 5px 0 16px;

    }

    body.auth-login.ims-login-v2 .btn-login {

        padding: 11px;

    }

    body.auth-login.ims-login-v2 .ims-notice {

        margin-top: 15px;

        padding: 11px 13px;

    }

    body.auth-login.ims-login-v2 .ims-footer {

        margin-top: 18px;

    }

}

@media(max-width:900px) {

    body.auth-login.ims-login-v2 .ims-shell {

        grid-template-columns: 1fr;

    }

    body.auth-login.ims-login-v2 .ims-hero {

        padding: 30px 25px;

        gap: 18px;

    }

    body.auth-login.ims-login-v2 .ims-headline {

        font-size: 29px;

        margin: 10px 0;

    }

    body.auth-login.ims-login-v2 .ims-hero-description {

        font-size: 14px;

    }

    body.auth-login.ims-login-v2 .ims-features,

    body.auth-login.ims-login-v2 .ims-hero-credit {

        display: none;

    }

    body.auth-login.ims-login-v2 .ims-form-side {

        padding: 35px 22px 45px;

    }

}

@media(max-width:480px) {

    body.auth-login.ims-login-v2 .ims-logo {

        width: 52px;

        height: 52px;

    }

    body.auth-login.ims-login-v2 .ims-product {
        font-size: 22px;
    }

    body.auth-login.ims-login-v2 .login-title {
        font-size: 30px;
    }

}
