body {
    overflow-x: hidden;
}

/* Menu toggle */
.navbar-toggle-sidebar {

    font-size: 0.75rem !important;
    color: #cbd5e1 !important;
}

/* Sidebar */
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #1e293b;
    color: white;
    padding-top: 20px;
}

.sidebar a {
    color: #cbd5e1;
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 15px;
}

.sidebar a:hover {
    background: #334155;
    color: #fff;
}

.sidebar .active-link {
    background: #0d6efd;
    color: white;
}

/* Content */
.content {
    margin-left: 240px;
    padding: 20px;
}

/* Topbar (mobile) */
.topbar {
    display: none;
    background: #1e293b;
    color: white;
    padding: 10px;
}




/* Mobile */
@media (max-width: 991.98px) {

    .sidebar {
        position: fixed;
        left: -240px;
        transition: 0.3s;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0;
    }

    .topbar {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-btn {
        font-size: 2.8rem;
        cursor: pointer;
    }

    .sidebar a {
        font-size: 1.2rem;
        padding: 16px;
    }
}




/* Mobile */
@media (max-width: 768px) {

    .mobile-link {
        font-size: 1.2rem;
        padding: 12px 10px;
    }

    .mobile-menu .nav-item {
        border-bottom: 1px solid #eee;
    }

    .navbar-toggler {
        border: none;
    }
}



/* MOBILE MENU IMPROVEMENTS */
@media (max-width: 991.98px) {



    .navbar-toggler {
        padding: 10px 14px !important;
        border: 1px solid #ccc !important;
    }

    /* Bigger hamburger icon */
    .navbar-toggler-icon {
        width: 3rem !important;
        height: 3rem !important;
    }

    /* Make menu items large and easy to tap */
    .navbar-nav .nav-link,
    .navbar-nav .btn {
        display: block !important;
        width: 100% !important;
        font-size: 1.45rem !important;
        padding: 16px 14px !important;
        text-align: left !important;
    }

    /* Add spacing between items */
    .navbar-nav .nav-item {
        border-bottom: 1px solid #eee;
    }

    /* Make menu take full width */
    .navbar-collapse {
        background: #fff;
        padding: 12px;
        border-top: 1px solid #ddd;
        margin-top: 10px;
    }


    /* Default nav links */
    .navbar-nav .nav-link {
        font-weight: 500;
        color: #333;
    }

    /* Hover effect */
    .navbar-nav .nav-link:hover {
        color: #0d6efd;
        background: #f2f6ff;
        border-radius: 6px;
    }

    /* ACTIVE LINK */
    .active-link {
        color: #fff !important;
        background: #0d6efd !important;
        border-radius: 6px;
        font-weight: 600;
    }

    /* Mobile keeps it strong */
    @media (max-width: 991.98px) {
        .active-link {
            background: #0d6efd !important;
            color: white !important;
        }
    }

    /* Menu toggle */
    .navbar-toggle {
        font-weight: 100 !important;
        margin-left: 0px !important;
        padding-top: 0em !important;
        font-size: 0.25rem !important;
        color: #333 !important;
    }


}




/* Floating Scan Button */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 65px;
    background: #ffc107;
    color: #000;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: 0.2s;
    width: auto;
    padding: 0 18px;
    border-radius: 30px;
    gap: 8px;
}

.fab-text {
    font-size: 14px;
    font-weight: 600;
}

.fab:hover {
    background: #ffca2c;
    transform: scale(1.1);
}

/* Smaller on desktop (optional) */
@media (min-width: 992px) {
    .fab {
        width: auto;
        height: 55px;
        font-size: 22px;
    }
}





/* SaaS-style look for Top menu to make the UI softer: rounded links, subtle shadows, pill-style 
active menu, cleaner cards, and better mobile spacing. */

body {
    background: #f6f8fb;
}

.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #0f172a !important;
}

.navbar .nav-link {
    font-weight: 500;
    color: #475569 !important;
    border-radius: 999px;
    padding: 8px 14px !important;
    margin-right: 4px;
    transition: all 0.15s ease-in-out;
}

.navbar .nav-link:hover {
    background: #eef4ff;
    color: #0d6efd !important;
}

.navbar .active-link {
    background: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 700;
}

.navbar .active-link:hover {
    background: #0d6efd !important;
    color: #ffdd00 !important;
    font-weight: 700;
}

.navbar-toggler {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.btn {
    border-radius: 10px;
    font-weight: 500;
}

.table {
    background: #ffffff;
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 991.98px) {
    .navbar .nav-link {
        border-radius: 10px;
        margin-bottom: 6px;
        padding: 14px 16px !important;
        font-size: 1.1rem;
    }
}





/* Gradually reduce font size and padding for nav links and buttons as screen gets smaller */
@media (max-width: 1480px) {
    .navbar .nav-link {
        font-size: 0.95rem;
    }

    .btn {
        padding: 4px 8px;
        font-size: 0.95rem;
    }
}

@media (max-width: 1400px) {
    .navbar .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px !important;
    }
}

@media (max-width: 1280px) {
    .navbar .nav-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 1200px) {
    .navbar .nav-link {
        font-size: 0.75rem;
        padding: 3px 6px !important;
    }
}

@media (max-width: 1060px) {
    .navbar .nav-link {
        font-size: 0.7rem;
        padding: 3px 6px !important;
    }
}