﻿/* ===== Modern Top Navigation ===== */
/* tokens.css (or keep at top of quality.css) */
:root {
    /* Brand */
    --primary: #004489;
    --primary-hover: #003766;
    --primary-soft: #e6edf5;
    /* Neutrals */
    --bg: #f7f8fa;
    --surface: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    /* Semantic */
    --success-bg: #e6f4ea;
    --success-fg: #1f7a4a;
    --warning-bg: #fef3c7;
    --warning-fg: #92400e;
    --danger-bg: #fee2e2;
    --danger-fg: #991b1b;
    /* Shape + depth */
    --radius: 10px;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-2: 0 8px 24px rgba(0,0,0,0.08);
}
/* quality.css */
.navbar {
    padding: 0.6rem 1.25rem;
    box-shadow: var(--shadow-1);
}

.bg-primary {
    background: var(--primary) !important; /* ditch the double gradient */
}

.navbar-brand {
    font-weight: 650;
    letter-spacing: 0.2px;
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.82);
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: #fff;
        background-color: rgba(255,255,255,0.12);
    }

.navbar-dark .navbar-nav .nav-item.active .nav-link {
    background-color: rgba(255,255,255,0.18);
    color: #fff;
}


/* Active link */
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.18);
}

/* Profile menu */
#navProfile {
    font-weight: 500;
}

/* Profile dropdown */
.profile-subnav {
    position: absolute;
    right: 1.5rem;
    top: 64px;
    background: #ffffff;
    border-radius: 10px;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    display: none;
    z-index: 1050;
    overflow: hidden;
}

    /* Profile dropdown items */
    .profile-subnav .nav-item {
        padding: 0.65rem 1rem;
        cursor: pointer;
        font-size: 0.9rem;
        color: #343a40;
        transition: background-color 0.15s ease;
    }

        .profile-subnav .nav-item:hover {
            background-color: #f1f5f8;
        }

/* Icons */
a {
    color: var(--primary);
}

    a:hover {
        color: var(--primary-hover);
    }

.navbar a,
.navbar a:hover {
    color: inherit; /* navbar controls its own link color */
}

.icon {
    color: var(--primary);
}
/* Mobile tweak */
@media (max-width: 768px) {
    .profile-subnav {
        right: 0.75rem;
    }
}
