@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --li-blue: #0a66c2;
    --li-blue-hover: #004182;
    --li-blue-soft: #e8f3ff;
    --li-ink: #191919;
    --li-mute: #666666;
    --li-line: #e0dfdc;
    --li-bg: #f4f2ee;
    --li-card: #ffffff;

    --pj-accent: var(--li-blue);
    --pj-accent-deep: var(--li-blue-hover);
    --pj-ink: var(--li-ink);
    --pj-paper: var(--li-bg);
    --pj-mist: #ebe9e6;
    --pj-line: var(--li-line);
    --pj-mute: var(--li-mute);

    --primary-red: var(--li-blue);
    --dark-black: var(--li-ink);
    --light-bg: var(--li-bg);
}

body {
    margin: 0;
    padding: 0;
    background: var(--li-bg);
    color: var(--li-ink);
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
}

.main-content {
    min-height: 60vh;
}

/* ==========================
   LINKEDIN-STYLE HEADER
========================== */
.li-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    border-bottom: 1px solid var(--li-line);
}

.li-navbar {
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
}

.li-navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1128px;
    min-height: 52px;
}

.li-brand {
    width: 108px;
    flex-shrink: 0;
    margin: 0;
    padding: 6px 0;
}

.li-brand img {
    width: 100%;
    height: auto;
    display: block;
}

.li-navbar__collapse {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-grow: 1;
}

.li-nav {
    display: flex;
    align-items: stretch;
    gap: 2px !important;
    margin: 0 auto !important;
}

.li-nav__link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 72px;
    min-height: 52px;
    padding: 4px 10px 2px !important;
    color: #666 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.li-nav__link i {
    font-size: 18px;
    line-height: 1;
}

.li-nav__link:hover {
    color: #191919 !important;
}

.li-nav__link.active {
    color: #191919 !important;
    border-bottom-color: #191919;
    font-weight: 600 !important;
}

.li-nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--li-line);
    min-height: 52px;
}

.li-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.li-header-btn--ghost {
    color: var(--li-blue);
    border-color: var(--li-blue);
    background: transparent;
}

.li-header-btn--ghost:hover {
    background: var(--li-blue-soft);
    color: var(--li-blue);
}

.li-header-btn--primary {
    background: var(--li-blue);
    color: #fff;
}

.li-header-btn--primary:hover {
    background: var(--li-blue-hover);
    color: #fff;
}

.li-me__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 0;
    padding: 4px 8px;
    color: #666;
    font-size: 12px;
    line-height: 1.1;
}

.li-me__btn::after {
    display: none;
}

.li-me__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dce6f1;
    color: var(--li-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.li-me__label {
    font-weight: 400;
}

.li-me__btn:hover,
.li-me__btn:focus {
    color: #191919;
}

.li-dropdown {
    min-width: 240px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    margin-top: 4px !important;
}

.li-dropdown__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 10px;
}

.li-dropdown__user .li-me__avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.li-dropdown__user strong {
    display: block;
    font-size: 14px;
    color: #191919;
}

.li-dropdown__user small {
    color: #666;
    font-size: 12px;
}

.li-dropdown .dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
    color: #191919;
}

.li-dropdown .dropdown-item:hover {
    background: #f3f3f3;
}

.li-dropdown__logout {
    color: #666 !important;
}

.dropdown-hover-wrapper {
    position: relative;
}

.dropdown-hover-wrapper:hover .dropdown-menu {
    display: block;
}

.li-toggler {
    border: none;
    background: #f3f2ef;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: none !important;
}

.li-toggler:focus {
    box-shadow: none !important;
}

/* Legacy button aliases used across pages */
.btn-danger,
.btn-primary {
    background: var(--li-blue) !important;
    border-color: var(--li-blue) !important;
}

.btn-danger:hover,
.btn-primary:hover {
    background: var(--li-blue-hover) !important;
    border-color: var(--li-blue-hover) !important;
}

.btn-outline-danger {
    color: var(--li-blue) !important;
    border-color: var(--li-blue) !important;
}

.btn-outline-danger:hover {
    background: var(--li-blue) !important;
    color: #fff !important;
}

.btn-dark {
    background: var(--li-ink) !important;
    border-color: var(--li-ink) !important;
}

.text-danger {
    color: var(--li-blue) !important;
}

.btn-dark,
.btn-danger,
.btn-outline-danger {
    border-radius: 24px;
}

/* ==========================
   MOBILE HEADER
========================== */
@media (max-width: 991px) {
    .li-brand {
        width: 92px;
    }

    .li-navbar__collapse {
        margin-top: 8px;
        background: #fff;
        border: 1px solid var(--li-line);
        border-radius: 8px;
        padding: 8px 0 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .li-nav {
        flex-direction: column !important;
        width: 100%;
        gap: 0 !important;
    }

    .li-nav__link {
        flex-direction: row !important;
        justify-content: flex-start;
        gap: 12px;
        min-height: 44px;
        padding: 10px 16px !important;
        border-bottom: 0 !important;
        border-left: 3px solid transparent;
        font-size: 14px !important;
    }

    .li-nav__link.active {
        background: #f3f2ef;
        border-left-color: #191919;
    }

    .li-nav__actions {
        margin: 8px 12px 0;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid var(--li-line);
        width: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .li-header-btn,
    .li-me__btn {
        width: 100%;
    }

    .li-me__btn {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 8px 4px;
        font-size: 14px;
    }
}

/* Font Awesome fallback removed — using fa-layer-group */
