/* ============================================================
   Global Theme - matches Asset Lookup UI
   Add this at the bottom of site.css
   ============================================================ */

:root {
    --al-primary: #2563eb;
    --al-primary-2: #1d4ed8;
    --al-bg: #f6f8fb;
    --al-card: #ffffff;
    --al-card-2: #f8fafc;
    --al-border: rgba(15, 23, 42, 0.10);
    --al-text: #0f172a;
    --al-muted: #64748b;
    --al-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
    --al-shadow-hover: 0 18px 44px rgba(2, 6, 23, 0.12);
    --al-radius: 16px;
    --al-radius-sm: 12px;
}

/* Optional auto dark mode to match your Asset Lookup page */
@media (prefers-color-scheme: dark) {
    :root {
        --al-bg: #0b1220;
        --al-card: #0f172a;
        --al-card-2: #111c33;
        --al-border: rgba(226, 232, 240, 0.10);
        --al-text: #e5e7eb;
        --al-muted: #a3b0c2;
        --al-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        --al-shadow-hover: 0 22px 54px rgba(0, 0, 0, 0.42);
    }
}

/* Make the overall page background match */
body {
    background: var(--al-bg);
    color: var(--al-text);
}

/* Better focus color (matches theme) */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .15rem rgba(255,255,255,0.25), 0 0 0 .35rem rgba(37, 99, 235, 0.20);
}

/* ============================================================
   NAVBAR - Professional theme + hover + icons + animation
   ============================================================ */

.al-navbar {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--al-border);
    box-shadow: 0 10px 22px rgba(2,6,23,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 220ms ease;
    animation: alNavDrop 420ms ease-out both;
}

@keyframes alNavDrop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* On scroll: slightly smaller, darker border/shadow */
.al-navbar.al-navbar-scrolled {
    background: rgba(255,255,255,0.86);
    box-shadow: 0 14px 34px rgba(2,6,23,0.10);
}

/* Dark mode navbar */
@media (prefers-color-scheme: dark) {
    .al-navbar {
        background: rgba(15,23,42,0.72);
        border-bottom: 1px solid var(--al-border);
    }

        .al-navbar.al-navbar-scrolled {
            background: rgba(15,23,42,0.86);
        }
}

/* Brand */
.al-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--al-text) !important;
    text-decoration: none;
    transition: transform 180ms ease, opacity 180ms ease;
}

    .al-brand:hover {
        transform: translateY(-1px);
        opacity: 0.95;
    }

.al-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--al-primary), var(--al-primary-2));
    box-shadow: 0 10px 18px rgba(37,99,235,0.25);
}

.al-brand-text {
    font-size: 0.98rem;
}

/* Links container */
.al-nav-links {
    gap: 0.25rem;
}

/* Nav link */
.al-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem !important;
    border-radius: 12px;
    color: rgba(15,23,42,0.88) !important;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
    position: relative;
    overflow: hidden;
}

/* Dark mode link text */
@media (prefers-color-scheme: dark) {
    .al-nav-link {
        color: rgba(226,232,240,0.88) !important;
    }
}

/* Hover effect: soft lift + glow */
.al-nav-link:hover {
    background: rgba(37,99,235,0.10);
    color: var(--al-text) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37,99,235,0.15);
}

/* Active route highlight (Bootstrap sets .active sometimes) */
.al-nav-link.active,
.al-nav-link[aria-current="page"] {
    background: rgba(37,99,235,0.14);
    color: var(--al-text) !important;
}

/* Animated underline on hover */
.al-nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--al-primary), var(--al-primary-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
    opacity: 0.95;
}

.al-nav-link:hover::after {
    transform: scaleX(1);
}

/* Toggler */
.al-toggler {
    border-radius: 12px;
    border: 1px solid var(--al-border) !important;
    padding: 0.5rem 0.7rem;
    transition: transform 140ms ease, box-shadow 160ms ease;
}

    .al-toggler:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(2,6,23,0.10);
    }

/* Optional navbar button */
.al-nav-btn {
    border-radius: 12px;
    border: 1px solid var(--al-border);
    background: rgba(255,255,255,0.65);
    font-weight: 800;
    transition: transform 140ms ease, box-shadow 160ms ease;
}

    .al-nav-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 20px rgba(2,6,23,0.12);
    }

/* ============================================================
   Footer styling to match
   ============================================================ */
.al-footer {
    border-top: 1px solid var(--al-border);
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    color: var(--al-muted);
}

    .al-footer a {
        color: var(--al-primary);
        text-decoration: none;
        font-weight: 700;
    }

        .al-footer a:hover {
            text-decoration: underline;
        }
