/* Dodati na kraj sass/main.css */
.min-w-0 {
    min-width: 0;
}

.fsro-top-header .navbar {
    gap: 1rem;
    padding-right: 2rem;
    border-bottom: 1px solid rgba(90, 105, 125, 0.12);
    box-shadow: 0 4px 18px rgba(31, 45, 61, 0.055);
}

.fsro-header-context {
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--bs-body-color);
}

.fsro-header-context-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #1958ae;
}

.fsro-header-context-separator {
    width: 1px;
    height: 24px;
    background: var(--bs-border-color);
}

.fsro-header-context-title {
    max-width: 360px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.fsro-header-actions {
    min-width: 0;
    margin-right: 0.15rem;
}

.fsro-header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--bs-body-color);
}

.fsro-header-icon-btn:hover,
.fsro-header-icon-btn:focus,
.fsro-header-icon-btn.show {
    color: #1958ae;
    background: rgba(25, 88, 174, 0.08);
    border-color: rgba(25, 88, 174, 0.12);
}

/* Važno: poništava generički width:45px sa .nav-right-links .nav-link */
.fsro-user-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: auto !important;
    min-width: 0;
    max-width: 290px;
    height: 52px;
    padding: 0.35rem 0.55rem 0.35rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--bs-body-color);
    text-align: left;
}

.fsro-user-profile:hover,
.fsro-user-profile:focus,
.fsro-user-profile.show {
    color: var(--bs-body-color);
    background: rgba(25, 88, 174, 0.07);
    border-color: rgba(25, 88, 174, 0.12);
}

.fsro-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #174d98, #2670d1);
    box-shadow: 0 5px 13px rgba(25, 88, 174, 0.23);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.fsro-user-avatar-lg {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.fsro-user-copy {
    flex-direction: column;
    min-width: 0;
    max-width: 175px;
    line-height: 1.15;
}

.fsro-user-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.fsro-user-role {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.fsro-user-chevron {
    flex: 0 0 auto;
    font-size: 20px;
    color: var(--bs-secondary-color);
}

.fsro-header-dropdown {
    min-width: 220px;
    padding: 0.55rem;
    border: 1px solid var(--bs-border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 38px rgba(31, 45, 61, 0.15) !important;
}

.fsro-header-dropdown::after {
    display: none !important;
}

.fsro-header-dropdown .dropdown-item {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
}

.fsro-user-menu {
    min-width: 270px;
}

.fsro-user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.55rem;
}

@media (max-width: 767.98px) {
    .fsro-top-header .navbar {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
    }

    .fsro-user-profile {
        height: 44px;
        padding: 0.2rem;
        border-radius: 12px;
    }

    .fsro-user-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}
