html, body {
    overscroll-behavior: none;
    touch-action: pan-x pan-y; /* 줌 금지 */

    /* 마우스 드래그 방지*/
    -webkit-user-select: none; /* 크롬, 사파리 */
    -moz-user-select: none;    /* 파이어폭스 */
    -ms-user-select: none;     /* 엣지 */
    user-select: none;
}

@media (max-width: 991.98px) {
    .auth-dropdown .auth-btn,
    .auth-btn {
        width: 100%;
        justify-content: center;
    }
    .auth-dropdown .dropdown-menu {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .auth-dropdown .dropdown-menu {
        right: 0;
        left: auto;
    }

    .nav-dropdown > .dropdown-menu {
        top: 100%;
        left: 0;
        margin-top: 0.125rem;
    }

    .nav-dropdown:hover > .dropdown-menu {
        display: block;
    }

    .sidebar-col {
        flex: 0 0 22%;
        max-width: 22%;
    }

    .content-col {
        flex: 0 0 78%;
        max-width: 78%;
    }

    .sidebar-panel {
        font-size: 0.9rem;
    }
}

.sidebar-panel {
    background: #3c4147;
}

.no-scrollbar {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

body > .container-fluid {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar .navbar-toggler:focus{
    box-shadow: none;
}

.t-mark{
    background: linear-gradient(135deg, #c96bff 0%, #7a2bf2 48%, #35a8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(153, 91, 255, 0.35);
}

/* sidebar menu active */
.nav-link.active {
    background-color: #2b3035;
    font-weight: 600;
    border-radius: 0.375rem;
}

.global-back-to-top {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.88);
    color: rgba(248, 250, 252, 0.95);
    touch-action: manipulation;
    cursor: pointer;
}

.global-back-to-top.is-visible {
    display: flex;
}

.global-back-to-top:hover {
    background: rgba(15, 23, 42, 0.96);
}

/* Prevent iOS/Safari auto-detected links (email/phone/address) from forced underline/color */
a[x-apple-data-detectors],
a[href^="x-apple-data-detectors://"] {
    color: inherit !important;
    text-decoration: none !important;
}
