﻿.sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1045;
    background-color: #212529;
}

    .sidebar.show {
        transform: translateX(0);
    }

@media (min-width: 768px) {
    .sidebar {
        transform: none !important;
    }

    .main-content {
        margin-left: 250px;
    }
}

.main-content {
    padding: 1rem;
}

.nav-link.active,
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.bi {
    transition: transform 0.2s ease;
}




.gray-card {
    background-color: #f7f8fa;
    border-radius: 0.5rem;
}

.gray-table th,
.gray-table td {
    word-wrap: break-word;
    white-space: normal;
    vertical-align: middle;
}

.sidebar {
    width: 260px;
    background-color: #212529;
    transition: transform 0.3s ease-in-out;
    z-index: 1045;
}

@media (max-width: 1399px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    body.sidebar-open {
        overflow: hidden;
    }
}

/* Subtle mobile card shadow & spacing */
.course-card {
    background: #fff;
}

@media (min-width: 768px) {
    .course-card {
        box-shadow: none !important;
    }
}




.has-search .form-control {
    padding-left: 2.25rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
    top: 50%;
    transform: translateY(-50%);
    left: .25rem;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(13,110,253,.25);
}

.bordered-checkbox {
    border: 1px solid #ced4da;
    border-radius: .35rem;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.big-check {
    width: 1.25rem;
    height: 1.25rem;
}

.selectable-row {
    cursor: pointer;
}

.table-active {
    --bs-table-accent-bg: #e9f2ff;
}

.table-responsive thead th {
    position: sticky;
    top: -1px;
    background: #f8f9fa;
}

/* Fixed mobile bar + spacer */
.mobile-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: .5rem .75rem;
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
    z-index: 2147483000;
    pointer-events: auto;
}

.mobile-actionbar-spacer {
    height: 64px;
}

/* Tighten table spacing on mobile */
@media (max-width: 576.98px) {
    .table td, .table th {
        padding: .5rem .5rem;
        vertical-align: middle;
        word-wrap: anywhere;
        white-space: normal;
    }
}



/* === Uniform page top spacing, no matter what the first child is === */
:root {
    --page-top-pad-mobile: 16px;
    --page-top-pad-desktop: 24px;
    --sidebar-w: 280px; /* keep in sync with your NavMenu */
    --content-gap: 24px; /* sidebar ↔ content gap on desktop */
}



/* Colorful bell chip */
.ann-bell-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff; /* bell icon color */
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
    background: conic-gradient( from 180deg at 50% 50%, #ffd54f, #ff9800, #ef476f, #7c4dff, #29b6f6, #66bb6a, #ffd54f );
}

    /* soft glow/pulse (optional—remove if you don’t want animation) */
    .ann-bell-chip::after {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: inherit;
        filter: blur(10px);
        opacity: .15;
        animation: annPulse 2.8s ease-in-out infinite;
    }

@keyframes annPulse {
    0% {
        transform: scale(.95);
        opacity: .15;
    }

    60% {
        transform: scale(1.05);
        opacity: .05;
    }

    100% {
        transform: scale(.95);
        opacity: .15;
    }
}




:root {
    /* fallback if theme.js hasn't run yet */
    --brand: var(--bs-primary, #0d6efd);
    --brand-rgb: var(--bs-primary-rgb, 13,110,253);
}

/* Outline primary should match brand */
.btn-outline-primary {
    color: var(--brand) !important;
    border-color: var(--brand) !important;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background-color: var(--brand) !important;
        color: #fff !important;
        border-color: var(--brand) !important;
    }

/* Focus rings */
.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .25) !important;
}

/* Accent underlines */
.section-accent {
    border-bottom: 2px solid var(--brand);
}

/* Links */
a {
    color: var(--brand);
}

    a:hover {
        color: var(--brand);
        opacity: .9;
    }




.app-content {
    display: flow-root;
    padding-top: 0 !important; 
}

@media (min-width:768px) {
    .app-content {
        padding-top: 0 !important; 
        margin-left: calc(var(--sidebar-w) + var(--content-gap));
    }
}

#app-content > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Kill any top spacing inside the main content area */
#app-content {
    display: flow-root; /* stops margin-collapsing */
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: 1px solid transparent; /* extra guard for some browsers */
}

    /* First real block (container/row/etc.) can’t push down the page */
    #app-content > :first-child,
    #app-content > .container:first-child,
    #app-content > .container-fluid:first-child,
    #app-content > .row:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }




/* Mobile toggle should not push content */
#menuToggle {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2001;
    margin: 0 !important;
}

/* Belt-and-suspenders: kill any first-child top spacing in main */
#app-content > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* 1) Absolutely zero top spacing anywhere in the stack */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.app-shell {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2) Main content must not have any top space */
main#app-content {
    display: flow-root; /* prevents margin-collapsing */
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

    /* 3) First real child (your container) also cannot add top space */
    main#app-content > .container,
    main#app-content > .container-fluid,
    main#app-content > :first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

/* 4) Kill fixed-navbar compensation if any (Bootstrap examples add this) */
body {
    padding-top: 0 !important;
}

/* 5) Headings inside the first container should not re-introduce space */
main#app-content h1,
main#app-content h2,
main#app-content h3,
main#app-content h4 {
    margin-top: 0 !important;
}

/* 6) That mobile menu toggle must NOT push layout (even if present) */
#menuToggle {
    position: fixed !important;
    top: 8px;
    left: 8px;
    z-index: 2001;
    margin: 0 !important;
}



.app-shell {
    position: relative;
}

.sidebar {
    position: fixed;
}
/* you already have this */





:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13,110,253;
    --brand: #0d6efd;
    --brand-rgb: 13,110,253;
}
