﻿
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden !important;
    overflow-y: auto;
}

body {
    padding-top: 48px;
}

/* --- Top Navbar --- */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 48px;
    z-index: 1100;
    background: #000 !important;
    border-bottom: 1px solid #000 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.75) !important;
    display: flex;
    align-items: center;
    padding: 3px 1rem 0 1rem !important;
}

    .navbar .navbar-brand {
        font-size: 1.25rem;
        line-height: 1;
        margin-bottom: 8px;
        margin-top: 2px;
        padding: 0;
    }

    .navbar .btn-link {
        font-weight: 300;
        text-decoration: none;
        color: #fff;
        display: flex;
        align-items: center;
    }

        .navbar .btn-link i, .navbar .bi-chat-dots {
            font-size: 1.6rem;
        }

    .navbar .ms-auto.d-flex.align-items-center {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
        height: 56px;
    }

.navbar-toggler {
    border: none;
    color: #fff;
}

    .navbar-toggler:hover .bi-list {
        color: #2196f3 !important;
        transform: scale(1.1);
    }

/* --- Offcanvas Menu --- */
.offcanvas {
    background: #121212;
    color: #fff;
}

    .offcanvas a.nav-link {
        color: #fff;
    }

        .offcanvas a.nav-link:hover {
            color: #90caf9;
        }

    .offcanvas .btn-close {
        filter: invert(1);
    }

::placeholder {
    font-style: italic;
    color: #999;
}

/* --- Chat Icon Badge --- */
.navbar .bi-chat-dots {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 0.95em;
    min-width: 18px;
    height: 18px;
    line-height: 17px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e53935;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px #0003;
    z-index: 10;
    text-align: center;
    font-weight: 600;
}

/* --- Profile image --- */
.profile-img, .navbar .profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
    box-shadow: 0 1px 6px #0002;
    display: block;
    transition: box-shadow 0.2s, border 0.2s;
}

    .profile-img:hover, .navbar .profile-img:hover {
        box-shadow: 0 0 6px #2196f3;
        border: 1px solid #2196f3;
    }

/* --- Sticky footer --- */
footer.vm-sticky-footer {
    position: sticky;
    top: 100vh;
}

    footer.vm-sticky-footer a,
    footer.vm-sticky-footer a:visited {
        color: #0a58ca;
        text-decoration: none;
    }

        footer.vm-sticky-footer a:hover,
        footer.vm-sticky-footer a:focus-visible {
            color: #084298;
            text-decoration: underline;
        }

    footer.vm-sticky-footer .text-body-secondary,
    footer.vm-sticky-footer .text-muted {
        color: #495057 !important;
    }
