/* RLC Online Notary — Portal Layout & Navigation Styles */

/* ── Global Transitions ──────────────────────────────────────────────────── */
.nav-link,
.btn {
    transition: all 0.2s ease-in-out;
}

/* ── Mobile Top Bar ──────────────────────────────────────────────────────── */
.portal-mobile-bar {
    background: #061a21;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    height: 56px;
    padding: 0 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 767.98px) {
    body {
        padding-top: 56px !important;
    }
}

/* ── Sidebar (Desktop & Offcanvas) ────────────────────────────────────────── */
.sidebar {
    background: #061a21;
}

.sidebar .nav-link {
    color: #a0aec0;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #a9865c;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 4px;
}

/* Sidebar specifically for desktop */
nav.sidebar {
    min-height: 100vh;
}

/* ── Shared Utilities ────────────────────────────────────────────────────── */
.text-muted-link {
    color: #a0aec0 !important;
    text-decoration: none;
}

.text-muted-link:hover {
    color: #a9865c !important;
}

.brand-heading {
    font-family: Verdana, Geneva, sans-serif;
    color: #a9865c;
}

.stat-card {
    border-left: 4px solid #a9865c;
}

.action-card {
    border-left: 4px solid #f59e0b;
}

/* ── Mobile Offcanvas Adjustments ───────────────────────────────────────── */
.offcanvas {
    color: #fff;
}

.offcanvas-header {
    border-bottom: 1px solid #2d3748;
}

/* ── Mobile Nav Toggle Button ───────────────────────────────────────────── */
.mobile-nav-toggle {
    background: rgba(201, 168, 76, 0.15) !important;
    color: #a9865c !important;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle span {
    font-size: 1.4rem;
}

/* Ensure offcanvas has correct dark background and width */
.offcanvas.d-md-none {
    background: #061a21 !important;
    max-width: 290px;
    width: 85vw;
}

/* ── Floating WhatsApp Button ───────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1050;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #fff;
}
.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}