:root{
    --topbar-h: 64px;
    --sidebar-w: 292px;
    --brand-grad: linear-gradient(90deg,#111 0%, #0b5ed7 35%, #20c997 70%, #111 100%);
}

/* Topbar */
.topbar .navbar { min-height: var(--topbar-h); }

/* Brand gradient text */
.brand-gradient{
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-hero{
    letter-spacing: .5px;
    background: linear-gradient(90deg,#111,#0b5ed7,#20c997,#111);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 0 rgba(0,0,0,0);
}

/* App shell & sidebar */
.app-shell { min-height: calc(100vh - var(--topbar-h) - 72px); } /* footer approx */

.sidebar{
    width: var(--sidebar-w);
    background-color: #fff;
}
.sidebar .sidebar-inner{
    max-height: calc(100vh - var(--topbar-h));
    overflow: auto;
    padding-bottom: 1rem;
}

/* Sidebar links */
.sidebar-link{
    border: 0;
    background: transparent;
    text-align: left;
    padding: .5rem .75rem;
    border-radius: .5rem;
    color: #333;
    width: 100%;
}
.sidebar-link:hover{ background: rgba(13,110,253,.08); }
.sidebar-link.active{
    background: rgba(13,110,253,.12);
    color: #0b5ed7;
    font-weight: 600;
}
.sidebar-nav .nav-item .bi{ opacity:.75; }

/* Collapses */
.sidebar .collapse{ padding-left: .25rem; }

/* Mobile offcanvas uses same inner wrapper */
.offcanvas .sidebar-inner{ padding: .75rem; }

/* Long text truncation in sidebar */
.sidebar .text-truncate{ max-width: 200px; }

/* Background canvas */
#bg-vertices{
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1200px 800px at 10% -10%, rgba(13,110,253,.15), transparent 40%),
        radial-gradient(1000px 700px at 90% 110%, rgba(32,201,151,.12), transparent 45%),
        linear-gradient(180deg, #f8f9fa, #ffffff);
}

/* Make landing content sit above background */
#bg-vertices + section{ position: relative; z-index: 1; }

.min-vh-75{ min-height: 75vh; }

/* Small screens: no fixed sidebar, offcanvas instead */
@media (max-width: 991.98px){
    .sidebar{ display:none; }
}

/* style-beat animation */
@keyframes style-beat {
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.style-beat {
    animation: style-beat 1s ease infinite;
    display: inline-block;
}

/* Optional customization */
.style-beat.fast {
    animation-duration: 0.6s;
}

.style-beat.slow {
    animation-duration: 1.5s;
}
