/**
 * Nav & sidebar — background SOLID + drawer UI
 */

/* ——— Drawer panel (struktur utama) ——— */
#right-column {
    position: fixed;
    top: 0;
    right: -500px;
    z-index: 1049;
    width: min(82%, 320px);
    max-width: 320px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    color: #fff;
    font-size: 14px;
    text-transform: capitalize;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.55);
    transition: right 0.35s ease, visibility 0.35s ease;
    -webkit-overflow-scrolling: touch;
}

#right-column.active {
    right: 0;
    visibility: visible;
}

#right-column,
#right-column.active {
    background-color: var(--secondary-color, #0a120d) !important;
    background-image: linear-gradient(
        180deg,
        var(--tertiary-color, #13261a) 0%,
        var(--secondary-color, #0a120d) 100%
    ) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#right-column .closebtn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    color: #fff;
    cursor: pointer;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.show-opt {
    display: block !important;
    background: linear-gradient(to right, var(--theme-icon-muted-bg, rgba(255,255,255,0.06)), #101010);
}

.arrow-show-opt {
    transform: rotate(90deg);
}

.member-drawer-submenu,
.riwayat-opt,
.pengecekan-opt.member-drawer-submenu {
    display: none;
    padding: 0 12px;
}

.member-drawer-submenu.show,
.riwayat-opt.show,
.pengecekan-opt.show {
    display: block !important;
}

#right-column .member-drawer-link,
#right-column .riwayat-menu,
#right-column .pengecekan-menu,
#right-column .closebtn {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

#right-column .closebtn {
    width: 36px;
    height: 36px;
    line-height: 32px;
    text-align: center;
    top: 8px;
    right: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    font-size: 28px;
    font-weight: 300;
}

#right-column .member-drawer-body {
    padding-bottom: 24px;
}

/* ——— Guest (belum login) ——— */
#right-column .member-drawer-guest {
    padding: 56px 16px 16px;
    text-transform: none;
}

#right-column .member-drawer-welcome {
    text-align: center;
    margin-bottom: 18px;
}

#right-column .member-drawer-welcome-icon {
    font-size: 52px;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

#right-column .member-drawer-welcome-title {
    font-family: Teko-SemiBold, 'Nunito', sans-serif;
    font-size: 26px;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    line-height: 1.1;
    text-transform: none;
}

#right-column .member-drawer-welcome-sub {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
    text-transform: none;
}

#right-column .member-drawer-login-card {
    background-color: var(--tertiary-color, #13261a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#right-column .member-drawer-login-heading {
    font-family: Teko-SemiBold, 'Nunito', sans-serif;
    font-size: 22px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 12px;
}

#right-column .member-drawer-label {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
    margin-top: 8px;
}

#right-column .member-drawer-label:first-of-type {
    margin-top: 0;
}

#right-column .member-drawer-field {
    position: relative;
}

#right-column .member-drawer-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 14px;
    pointer-events: none;
}

#right-column .member-drawer-input {
    background-color: #0d0d0d !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    width: 100%;
    border-radius: 8px;
    padding: 11px 14px 11px 40px;
    margin-bottom: 0;
    font-size: 14px;
    box-sizing: border-box;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#right-column .member-drawer-input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px var(--theme-accent-soft, rgba(34, 197, 94, 0.15));
}

#right-column .member-drawer-error {
    color: #ff6b6b;
    font-size: 11px;
    min-height: 14px;
    margin-top: 4px;
}

#right-column .error-check-mobile:not(:empty) {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff8a8a;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

#right-column .member-drawer-btn-login {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 11px 0;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #fff !important;
    background-image: var(--theme-glow-gradient) !important;
    cursor: pointer;
}

#right-column .member-drawer-btn-outline {
    display: none;
}

#right-column .member-drawer-register-hint {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 14px;
}

#right-column .member-drawer-register-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
    margin-left: 4px;
}

#right-column .member-drawer-guest-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    text-transform: none;
}

/* ——— Logged-in header ——— */
.member-drawer-head-user {
    padding: 56px 16px 16px !important;
    background-color: var(--tertiary-color, #13261a) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.member-drawer-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-drawer-user-avatar {
    font-size: 52px;
    color: var(--primary-color);
    background-color: var(--theme-icon-muted-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.member-drawer-user-greet {
    font-size: 11px;
    opacity: 0.7;
}

.member-drawer-user-name {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}

.member-drawer-user-saldo {
    font-size: 13px;
    margin-top: 2px;
}

.member-drawer-user-saldo .saldoUser {
    color: var(--primary-color);
    font-weight: bold;
}

.member-drawer-logout-wrap {
    margin-top: 12px;
    text-align: center;
}

.member-drawer-btn-logout {
    display: inline-block;
    padding: 7px 28px;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    background-image: var(--theme-glow-gradient);
}

/* ——— Menu links (guest & member) ——— */
.member-drawer-link-wrap {
    padding: 0 12px;
}

.member-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.15s ease;
}

.member-drawer-link:hover,
.member-drawer-link:active {
    background-color: rgba(255, 255, 255, 0.06);
}

.member-drawer-link-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.member-drawer-link-toggle {
    cursor: pointer;
}

.member-drawer-chevron {
    margin-left: auto !important;
    transition: transform 0.3s;
    opacity: 0.6;
    font-size: 12px;
}

.member-drawer-link-sub {
    padding-left: 46px !important;
}

.member-drawer-link-sub span {
    font-size: 13px;
    opacity: 0.9;
}

.riwayat-opt .member-drawer-link,
.pengecekan-opt .member-drawer-link {
    padding-left: 46px;
}

/* ——— Nav bars solid ——— */
.member-nav-top,
.member-nav-bottom,
.member-nav-desktop-main {
    background-color: var(--secondary-color, #0a120d) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.member-nav-desktop-fixed {
    background-color: var(--secondary-color, #0a120d) !important;
}

.member-nav-desktop-bar {
    background-color: var(--tertiary-color, #13261a) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.main-menu-outer-container,
.active-menu-scroll,
.main-menu-outer-container.active-menu-scroll {
    background-color: var(--secondary-color, #0a120d) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.profile-card {
    background-color: var(--secondary-color, #0a120d) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.main-menu-outer-container,
.main-menu-outer-container.active-menu-scroll {
    position: sticky;
    top: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.main-menu-outer-container > main {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 4px;
    padding: 0 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-menu-outer-container > main::-webkit-scrollbar {
    display: none;
}

.main-menu-outer-container > main > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 4px;
    color: var(--primary-color, #22c55e) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.main-menu-outer-container > main > a > img {
    display: block;
    margin-bottom: 4px;
}

.main-menu-outer-container > i {
    flex-shrink: 0;
    padding: 8px 6px;
    color: var(--primary-color, #22c55e);
    cursor: pointer;
}

.profile-form .form-control {
    background-color: #1a1a1a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
